// JavaScript Document
 var newWindow
  function makeNewWindow(urladdr,het,wid){
    var cw=0,ch=0
    if(window.screen){
    wid = Math.floor(screen.availWidth/2);
    het = Math.floor(screen.availHeight/2);
	/* put newWindow in the middle of the screen
    cw = Math.floor((screen.availWidth-wid)/2);
    ch = Math.floor((screen.availHeight-het)/2);*/
	cw=0;
	ch=0;
	}
    
	 if(newWindow) {
	    newWindow.close()
		newWindow=null
		}
	/* if (navigator.appName == 'Netscape') {
        wid = wid + 20;
        het = het + 20;
    }
    else {
        wid = wid + 60;
        het = het + 100;
    }*/
	
	 newWindow=window.open(urladdr,"","scrollbars,resizable,Height="+het+",Width="+wid+",top="+ch+",left="+cw)
	 
  }
  function closeNewWindow(){
     if(newWindow) {
	    newWindow.close()
		newWindow=null
	 }
}

//END GLOBAL FUNCTIONS