
// added correct  window opener script in here.
/*
var newWindow = null;

function closeWin(){
	if (newWindow != null){
		if(!newWindow.closed)
			newWindow.close();
	}
}

function popUpWin(url, type, strWidth, strHeight){
	

	var tools="";
	if (type == "standard" || type == "fullScreen") tools = "status=yes,resizable,toolbar=no,location=no,scrollbars=yes,menubar=no,width="+strWidth+",height="+strHeight;
	if (type == "console") tools = "status=yes,resizable,toolbar=no,location=no,scrollbars=yes,width="+strWidth+",height="+strHeight+",left=0,top=0";
	newWindow = window.open(url, 'newWin', tools);
	newWindow.focus();
}
*/

// old script?


	function windowOpener(url, name, args) 
	{
		if (typeof(popupWin) != "object")
		{
			popupWin = window.open(url,name,args);
		} 
		else 
		{
			if (!popupWin.closed)
			{ 
				popupWin.location.href = url;
			} 
			else 
			{
				popupWin = window.open(url,name,args);
			}
		}
		popupWin.focus();
	}
	