﻿function confirm_delete() 
	{  
		if (confirm("Are you sure you want to delete this record?")==true) 
		return true; 
		else 
		return false; 
	}
	function confirm_delete_item(item) 
	{ 
		if (confirm("Are you sure you want to delete '" + item + "'?")==true) 
		return true; 
		else 
		return false; 
	}

	function NewWindow(mypage, myname, w, h, scroll) {
	 if (navigator.appName.indexOf ("Microsoft") != -1) {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
				winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars=yes,resizable=yes,alwaysRaised=yes";
		win = window.open(mypage, myname, winprops);
	 }
	 else
	 {
		var winl = (screen.width - w) / 2;
		var wint = (screen.height - h) / 2;
		winprops = "height="+h+",width="+w+",top="+wint+",left="+winl+",scrollbars=yes,resizable=no,alwaysRaised=yes";
		win = window.open(mypage, myname, winprops);
		if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	 }
	}
	
	function CloseWindow()
	{
	   window.close(); 
	   window.opener.location.href=window.opener.document.location.href;
	}
	function CloseWindowNoRefresh()
	{
	   window.close(); 
	}
	function CloseReturnImage(Image)
	{
	   	    window.opener.document.forms[0].ctl00$ContentPlaceHolder1$tbThumbnailURL.value = Image;
	    	    window.close();
	}
	
	
// resizes window to occupy all available screen real estate
function Maximize() {
    window.moveTo(0,0)
    window.resizeTo(screen.availWidth, screen.availHeight)
}


