// JavaScript Document
var theX = 800; // Width
var theY = 700; // Height
var myOp = navigator.platform;
var browser = navigator.appName;

function spawn(applicationPath) {
	if (myOp == 'MacPPC') {
		//window.open(applicationPath, "Flow", "toolbar=no,menubar=no,width="+x+",height="+y+",scrollbars=no,resizable=no,top=0,left=0,status=no,fullscreen");
		window.open(applicationPath, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=auto,resizable=no,center=yes,copyhistory=yes,width='+ theX +',height=' + theY);
	}
	else {
		
			if (browser == 'Netscape')	{
				//window.open(applicationPath,'Flow','width=600,height=700,top=0,left=0,scrollbars=no,resizable=no,titlebar=no,status=no,fullscreen,modal=yes');
				window.open(applicationPath, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=auto,resizable=no,center=yes,copyhistory=yes,width=' + theX + ',height=' + theY);
		 		myWindow.focus()
			}
			
			//else if(navigator.appVersion.indexOf("MSIE 5.0")!= -1 || navigator.appVersion.indexOf("MSIE 5.5")!= -1|| navigator.appVersion.indexOf("MSIE 6.0")!= -1) {	
			else {
				window.showModalDialog(applicationPath, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbar=auto,resizable=no,center=yes,copyhistory=yes,width=' + theX + ',height=' + theY);
			}
	}
}