/*********************************************************************************************************************
Autor Ricardo M. Vögeli car4you 06.12.2002
Example:
1) load script on browser: <script language="JavaScript" type="text/javascript" src="/jscripts/winOpener.js"></script>
2) call function and send parameters: newWinNew('file.cfm','name',800,600,1,1);
**********************************************************************************************************************/

function newWin (url_js,name_js){
var winl = (screen.width - 320) / 2;
var wint = (screen.height - 400) / 2;
newWindow=window.open(url_js,'name_js','width=305,height=325,top='+wint+',left='+winl+',toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=auto,resizable=0')
}

var newWindow = '';

	function newWinNew (url_js,name_js,winWidth,winHeight,resizableWin,toolbar) {
		if(typeof resizableWin == 'undefined'){resizableWin = 0;}
		if(typeof toolbar == 'undefined'){toolbar = 0;}
		var winl = (screen.width - winWidth) / 2;
		var wint = (screen.height - winHeight) / 2;
		//if(newWindow !='') newWindow.close();
		newWindow=window.open(url_js,name_js,'width=' +winWidth+',height=' +winHeight+',top='+wint+',left='+winl+',toolbar='+toolbar+',location=0,directories=0,status=0,menuBar=0,scrollBars='+resizableWin+',resizable=1')
	}	
