// JavaScript Document
function OpenWin(path,descr,width,height,status,resize) {
	window.open(path , descr, 'toolbar=no, location=no, directories=no, status='+status+', menubar=no, scrollbars=yes, resizable='+resize+', width='+width+', height='+height);
}

function RefreshOpener() {
	window.opener.location=window.opener.location;
}

//Delete confirmation, GET method
function ConfirmDeleteGET(message, url) {
	if (confirm(message)) {
		document.location = url;
	}
}

function ConfirmDeletePOST(message) {
	if (confirm(message) == false) {
		return false;
	}
}
function ConfirmDelete(message, func) {
	if (confirm(message)) {
		func();
	}
}
function CloseDiv(id) {
	Effect.SwitchOff($(id), { afterFinish: function() { $(id).remove() } });
}
