// JavaScript Document
function getURL(url,target) {
	var url
	var target
	window.open (url,target);
}
function closeModal() {
	$.prettyPhoto.close();
}
function toggleField(sender,id) {
    var target = document.getElementById(id);
    target.disabled = !sender.checked;
}

$(function() {
	$(".deletefile").click(function() {
//		$('#load').fadeIn();
		var container = $(this).parent(); // parent (editThumb)
		var id = $(this).attr("id");
		var string = 'id='+ id ;
		$.ajax({
			type: "POST",
			url: "deletefile.php",
			data: string,
			cache: false,
			success: function(){
				container.slideUp('slow', function() {$(this).remove();});
//				$('#load').fadeOut();
			}
		});
	return false;
	});
});
