var newwindow = '';

function popitupXL(url, scrl){
	var scrl = (scrl == null) ? "yes" : scrl;
	width=650;
	if(scrl=="yes") width+=20;
	popitup(url, 760, width, scrl);
}

function popitupXXL(url, scrl, h, w){
	var scrl = (scrl == null) ? "yes" : scrl;
	var h = (h == null) ? 760 : h;
	var w = (w == null) ? 800 : w;
	width=w;
	if(scrl=="yes") width+=20;
	popitup(url, h, width, scrl);
}

function popitupL(url, scrl){

	var scrl = (scrl == null) ? "yes" : scrl;
	width=650;
	
	if(scrl=="yes") width+=20;
	popitup(url, 460, width, scrl);
}

function popitupS(url, scrl){
	var scrl = (scrl == null) ? "yes" : scrl;
	width=450;
	if(scrl=="yes") width+=20;
	popitup(url, 360, width, scrl);
}

function popitupP(url, scrl){
	var scrl = (scrl == null) ? "yes" : scrl;
	width=840;
	if(scrl=="yes") width+=20;
	popitup(url, 600, width, scrl);
}

function popitup(url, height, width, scrl){
	leftVal = (screen.width - width) / 2;
	topVal = (screen.height - height) / 2;	
	if (!newwindow.closed && newwindow.location) {
		newwindow.location.href = url;
	}else{
		newwindow=window.open(url,'ise_tmp_window','dependent=yes,scrollbars='+scrl+',top='+topVal+',left='+leftVal+',height='+height+',width='+width+',menu=0');
		if (!newwindow.opener) newwindow.opener = self;
	}
	if (window.focus) {newwindow.focus();}
}

function ShowHideObj(sID, hide){
	document.getElementById(sID).style.display=hide;
}

