var popWindowBackgroundColor = '#FFFFF0'; // pop up window background color (named or rgb).
var popWindowBorderStyle = 'solid'; // type of border for popup (solid,double,grooved,ridged,inset,outset).
var popWindowBorderWidth = '1'; // border thickness of popup window (must be at least 3 for double style).
var popWindowBorderColor = 'black'; // color of border (named or rgb).
var popWindowShadowColor = '#666666'; //drop shadow color, named or rgb - shows in IE5+ only. 'none'=no shadow.

	var ie=document.all
	var ns6=document.getElementById && !document.all
function showPopUp(url,width,height){
	document.getElementById('Mask').style.height=screen.height;
	document.getElementById('Mask').style.display='block';
	
	document.getElementById('pWinConfg').style.width=width;
	document.getElementById('pWinConfg').style.height=height;
	var top = (screen.height/2) - (height/2);
	var left = (screen.width/2) - (width/2);
	document.getElementById('pWinConfg').style.top=top;
	document.getElementById('pWinConfg').style.left=left;
	document.getElementById('ifrmPopup').src=url;
	document.getElementById('pWinConfg').style.display='block';
	
}
function hidePopUp(){
	document.getElementById('Mask').style.display='none';
    document.getElementById('pWinConfg').style.display='none';
	
    document.location.reload();
}   

var pWinConfg = "<style>.pWinConfg{\n";
pWinConfg += "position:absolute;\n";
pWinConfg += "background-color:"+popWindowBackgroundColor+";\n";
pWinConfg += "border-style:"+popWindowBorderStyle+";\n";
pWinConfg += "border-width:"+popWindowBorderWidth+";\n";
pWinConfg += "border-color:"+popWindowBorderColor+";\n";
pWinConfg += "display:none;\n";
if(popWindowShadowColor != 'none'){
pWinConfg += "@filter: progid:DXImageTransform.Microsoft.Shadow(color="+popWindowShadowColor+",direction=135);\n";
}
pWinConfg += "}<\/style>\n";
document.write(pWinConfg);