function pagePopup(thisurl) {
		//for debugging
		//openhousewindow = window.open(thisurl,'ohwindow','toolbar=no,resizable=yes,scrollbars=yes,width=780,height=500')
		openhousewindow = window.open(thisurl,'ohwindow','directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes,resizable=yes,scrollbars=yes,width=780,height=700')
		if (openhousewindow.opener == null) {
			openhousewindow.opener = window; 
			openhousewindow.opener.name = "opener";  
		}
		window.openhousewindow.focus();
   	}
	   
	   var winHandle = '';
function spawnWin(URL,width,height) {
    x = (640 - width)/2, y = (480 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
	if (screen.availWidth > 1800) { 
	x = ((screen.availWidth/2) - width)/2; 
    } 
    if (winHandle) {
	winHandle.close();	
    }	
	winHandle = window.open(URL,'popWin','toolbar=no,status=no,resizable=no,resize=no,menubar=no,scrollbars=no,width=680, height=385, screenX=25,screenY=50,left=220,top=180');
	winHandle.focus();
}

