	function ajaxFileDelete(d) {
		$.post('../../__admin/content/common/doajaxfiledelete.php',
  		{ id: $("#_id").val(), div: d  },
  			function(data){
    			$("#is_upload").show();
					$("#is_image").hide();
//					alert($("#_id").val());
  			}
			);
	
		return false;
	}
	
	
	function ajaxFileUpload()
	{
		$("#loading")
		.ajaxStart(function(){
			$(this).show();
		})
		.ajaxComplete(function(){
			$(this).hide();
		});

		$.ajaxFileUpload
		(
			{
				url:'../../__admin/content/common/doajaxfileupload_site.php',
				secureuri:false,
				fileElementId:'fileToUpload',
				dataType: 'json',
				success: function (data, status)
				{
					if(typeof(data.error) != 'undefined')	{
						if(data.error != '')
						{
							alert(data.error);
						}else
						{
							
							$("#file_uploaded").show();
							$("#upload_label").hide();
							$("#fileToUpload").hide();
							$("#send_image").attr({ src: "./images/send.jpg", alt: "Send Form" });
							$("#buttonUpload").attr({ src: "./images/upload-file_un.jpg", alt: "File Uploaded" });
							$("#upload").attr({ onclick: ""});
						}
					}
				},
				error: function (data, status, e)
				{
					alert(e);
				}
			}
		)
		
		return false;
	}
	
	
	function file_on()
	{
		$("#send_image").attr({ src: "./images/send_un.jpg", alt: "Upload File First" });
		$("#buttonUpload").attr({ src: "./images/upload-file.jpg", alt: "Upload File" });
		return false;
	}		