// JavaScript Document


 function launchwin(winurl,winname,winfeatures)
 {
	 
 //This launches a new window and then
 //focuses it if window.focus() is supported.
 newwin = window.open(winurl,winname,winfeatures);

 //delay a bit here because IE4 encounters errors
 //when trying to focus a recently opened window
 setTimeout('newwin.focus();',250);
 
 
 
 }
 
 
 function PopupOpen(theURL,winName,width,height,features) 
	{ 
		var availW = screen.availWidth;
		var availH = screen.availHeight;
		var popup = null;
		features+=',width=' + width + ',height=' + height;
		if (navigator.appName.indexOf('Microsoft') >= 0) 
			{
			features+=',left=' + ((availW - width - 10) * .5) + ',top=' + ((availH- height - 30) * .5);
			}
		else
			{
			features+=',screenX=' + ((screen.availWidth - width - 10) * .5)+ ',screenY=' + ((screen.availHeight- height - 30) * .5);
			}
		popup = window.open(theURL,winName,features);
		popup.focus();
    }