function openWin(url,winName,w,h,attribs) { 
	var l = parseInt((screen.availWidth-w)/2); 
	var t = parseInt((screen.availHeight-h)/2); 
	attribs = 'width='+w+',height='+h+',left='+l+',top='+t+(attribs!=null ? ','+attribs : ''); 
	var win = window.open(url, winName, attribs); 
	win.focus(); 
	return false;
}

function flashpopup(url, width, height)
{
	var scrollbars = 0; 
  	if (height == "" || height == null) 
  	{ 
    	scrollbars = 0; 
     	height = 600; 
	 	width = 600;
    }	
}	

function closeWin(url) {
	window.close();
}

function printWin(  ) {
	window.print();
}
function closeWinRedirect (url){
	opener.document.location = url;
	window.close();
}

function closeWinOpen (url){
	//opener.document.location = url;
	openWin(url, 500, 500);
	window.close();
}

function centeredPopup(url, width, height)
{
	var top = 0;
	var left = 0;
	var position = "";

	top = (screen.height/2) - (height/2);
	left = (screen.width/2) - (width/2);
		
	if (document.all)
	{
		position = "left=" + left + ",top=" + top;
	}
	else
	{
		position = "screenX=" + left + ",screenY=" + top;
	}

	openWin = window.open(url, "pWindow", position + ",toolbar=0,location=0,status=0,scrollbars=1,menubar=0,resizable=0,WIDTH=" + width + ",HEIGHT=" + height);
}
function centeredPopupNoScroll(url, width, height)
{
	var top = 0;
	var left = 0;
	var position = "";

	top = (screen.height/2) - (height/2);
	left = (screen.width/2) - (width/2);
		
	if (document.all)
	{
		position = "left=" + left + ",top=" + top;
	}
	else
	{
		position = "screenX=" + left + ",screenY=" + top;
	}

	openWin = window.open(url, "pWindow", position + ",toolbar=0,location=0,status=0,scrollbars=0,menubar=0,resizable=0,WIDTH=" + width + ",HEIGHT=" + height);
}
function disclaimerpopup(url)
        {
		window.open(url,'disclaimer','toolbar=no,location=no,status=no,scrollbars=1,menubar=no,resizable=yes,WIDTH=612,HEIGHT=600,left = 550,top = 350');
        }