function Confirm_Delete()
{
	if(window.confirm('Are you sure want to delete?'))
		return true;
	else
		return false;
}

function popUp(URL,w,h) {
	id = "PopUp";
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",top=1');");
	
}

function popUp1(URL,w,h) {
	id = "PopUp1";
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",top=1');");
	
}


function popMain(URL,w,h) {
	id = "popmain";
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",top=1');");
	
}

function popEMain(URL,w,h) {
	id = "popEmain";
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width="+w+",height="+h+",top=1');");
	
}


function change_news(val) {
window.location="news_events.php?archCatid="+val;
}


function scaletofit()
{
var imgwidth = imgobj.width+50;
var imgheight = imgobj.height+150;
			if(	imgwidth < 350 ) { imgwidth=370;}	
			//if(	imgheight < 450 ) { imgheight=480;}	
			if(	imgheight > 830 ) { imgheight=800;}

var x = (screen.availWidth / 2) - (document.body.clientWidth / 2);
var y = ((screen.availHeight - 60) / 2) - (document.body.clientHeight / 2);
x = (x > 0) ? x : 0;
y = (y > 0) ? y : 0;

window.moveTo(x, y);
window.resizeTo(imgwidth,imgheight);
window.focus();
}
