function ConfirmDelete(strQuestion) {
	if (confirm(strQuestion)) return true;
	else return false;
}

function Confirm(strQuestion) {
	if (confirm(strQuestion)) return true;
	else return false;
}

function OpenPopup(url, target, w, h, resize) {
	var Width = w;
	var Height = h;
	var Left = ( screen.width ) ? ( screen.width - Width ) / 2 : 100;
	var Top = ( screen.height ) ? ( screen.height - Height ) / 2 : 100;
	var Features = " menu = no, location = no, status = yes, scrollbars = yes, resizable = " + resize + ", width = " + Width + ", height = " + Height + ", left = " + Left + ", top = " + Top;
	var Win = window.open(url, target, Features);
	Win.focus();
}

function SwitchDiv(divName) {
	var objDiv = document.all(divName);
	if (objDiv.style.display == "none")
		objDiv.style.display = "block"; 
	else
		objDiv.style.display = "none";
}