<!--	//javascript


function confirmDelete (URL) {
        answer = confirm ("Are you sure you want to delete this record, this is permanent.");   
        if (answer) {           
                window.location.href = URL;                     
        }
}

function openWindow(URL,width,height) {
			
	//alert('Width is ' + width + ' and height is ' + height);
	newWindow=window.open(URL,"thenewwindow","width=" + width + ",height=" + height + ",toolbar=yes,location=no,status=yes,menubar=no,scrollbars=yes,resizable=yes");
	newWindow.opener.name= "main";
	newWindow.focus();
		 
			
}

function popUp(URL, winName, oOverride) {
	//
	//	SYNTAX: oProp = { width:150, height:128 };	popUp2('http://www.yahoo.com', oProp);
	//
	var oWin = { toolbar:1, location:'yes', status:'yes', menubar:'yes', scrollbars:'yes', resizable:'yes', width:460, height:400, top:0, left:0 };
	var str = '';
	for (prop in oOverride) { oWin[prop] = oOverride[prop]; }
	
	for (prop in oWin) {
		if (prop=='top') oWin['top'] = (screen.height/2) - (oWin['height']/2);
		if (prop=='left') oWin['left'] = (screen.width/2) - (oWin['width']/2);
		
		str += prop +'='+ oWin[prop] +',';
	}
	
	//alert(str);
	newWindow=window.open(URL, winName, str);
	newWindow.focus();
}

function PopWindow (url,w,h,scroll,resize,center,max) {
	if (navigator.appName.indexOf("Microsoft") != -1 && navigator.platform.indexOf("Mac") != -1) { w -= 30; h -= 30; }	
	if (center) { var winPos = ',top='+((screen.height - h) / 2)+',left='+((screen.width - w) / 2); }
	var scrollArg = (scroll == false) ? '' : ',scrollbars=1';
	var resizeArg = (resize == false) ? '' : ',resizable=1';
	flyout = window.open (url,"newin"+scroll+resize+center,"width=" + w + ",height=" + h + scrollArg + resizeArg + winPos);
	if (max == true) {
		flyout.moveTo(0,0);
		flyout.resizeTo(screen.availWidth,screen.availHeight);	}
	else { flyout.resizeTo(w,h); }
	flyout.focus();
}
//-->
