function Funny_WindowOpen(StrURL,x,y,width,height,WinName,scrollbars){
	var bFunnyBrowser=false;
	try
	{
		bFunnyBrowser=external.IsFunnyBrowser()	
	}
	catch (ex)
	{
		;
	}
	if (scrollbars=="no")  
		scrollbars="no";
	else 
		scrollbars="yes";
			
	if (bFunnyBrowser){
		//alert("funnybrowser");
		external.Var_Save("SYS.Browser.New","1");
		external.Var_Save("SYS.Browser.Left",x);
		external.Var_Save("SYS.Browser.Top",y);
		external.Var_Save("SYS.Browser.Width",width);
		external.Var_Save("SYS.Browser.Height",height);
		external.Var_Save("SYS.Browser.ScrollBars",scrollbars);
		window.open(StrURL,WinName);
	}
	else{
		

		//alert("notfunnybrowser");
		window.open(StrURL,WinName, 'height='
		+height+',width='+width
		+',top='+y+',left='+x
		+',toolbar=no, menubar=no,scrollbars='+scrollbars+', resizable=yes,location=no,status=no');
	}
}

function xCenter(Width) {
	return (screen.width-Width)/2;
}
function yCenter(Height) {
	return (screen.height-Height)/2;
}
