/*********************************************************************************************************************
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,1,1);
**********************************************************************************************************************/
var newWindow = '';
function newWinNew (url_js,name_js,winWidth,winHeight,scrollbar,toolbar,menubar,resizable,location) {
	var winl = 0, wint = 0;
	if(typeof scrollbar == 'undefined'){scrollbar = 0;}
	if(typeof toolbar == 'undefined'){toolbar = 0;}
	if(typeof menubar == 'undefined'){menubar = 0;}
	if(typeof resizable == 'undefined'){resizable = 1;}
	if(typeof location == 'undefined'){location = 0;}
	if(typeof winWidth == 'undefined' || winWidth == -1) winl = 0; else winl = (screen.width - winWidth) / 2;
	if(typeof winHeight == 'undefined' || winHeight == -1) wint = 0; else wint = (screen.height - winHeight) / 2;
	if(name_js == '') name_js = 'newwin';
	//alert(typeof newWindow);
	//if(newWindow !='') newWindow.close();
	newWindow=window.open(url_js,name_js,'width=' +winWidth+',height=' +winHeight+',top='+wint+',left='+winl+',toolbar='+toolbar+',location='+location+',directories=0,status=0,fullscreen=0,channelmode=0,menubar='+menubar+',scrollbars='+scrollbar+',resizable='+resizable)
}	