CSAg = window.navigator.userAgent;
function newpopup(pName,pUrl,theW,theH){
	scrolls=1; if(arguments[4]!=null) scrolls=1;
	ss=theW+theH;
	//theW+= (IsWin>=0)? 0:0;	theH+= (IsWin>=0)? 20:0;
	//theH-= (IsWin<0 && IsIe>=0)? 76:0;
	//theW-= (IsWin<0 && IsIe>=0)? 18:0;	
	cLow=CSAg.toLowerCase(); cMac=cLow.indexOf("mac");
	if(cMac>=0&&document.layers){ //theW=theW-50; theH=theH-100;	       
	}else if(document.layers){ //theH=theH-60; 
	}else{ if(cMac>=0){ //theW=theW+92; theH=theH+128; 
	}else{ theW=theW-0; } //theH=theH-58; 
	}
	lPos=(screen.availWidth/2)-(theW/2); tPos=(screen.availHeight/2)-(theH/2);
	var bob=window.open(pUrl,pName,"toolbar=0,location=0,directories=0,status=0,menubar=0,resizable=0,scrollbars="+scrolls+",width="+theW+",height="+theH+",top="+tPos+",left="+lPos);
    if( navigator.appName.substring(0,8)=="Netscape") bob.location=pUrl;
}
var bver=parseInt(navigator.appVersion);
var IsIe=navigator.appVersion.indexOf('MSIE');
var IsWin=navigator.appVersion.indexOf('Win');

function openBrowser(mypage)
{
 var myname = 'myBrowser';
 var myWin;
 
 var h = 640;
 var w = 362;
 
 winprops = 'height='+h+',width='+w+',scrollbars=no,resizable=no,toolbar=no'
 
  if ( !myWin || myWin.closed )
  { 
  myWin = window.open(mypage, myname, winprops)
  myWin.focus();
 }
 else
 {
    myWin.location.href = myPage;
    myWin.focus();
 }
}
