function pWin() {
	window.open("http://qa.massachusetts.edu/umassonline/china_survey.cfm?survey=56", "UMassOnline","height=650,width=650,toolbar=0,titlebar=1,location=0,status=0,directories=0,menubar=0,scrollbars=1,resizable=0,fullscreen=yes");
 }
 
 function pW(page) {
	var url = "http://" + getURL() + "/";
	// if it not be able to find /release/ patern,
	// then it will make an attempt to replase dev with register

    url = url.replace(/release/, "register");
    url = url.replace(/dev/, "register");
    url = url.replace(/backyard/, "register31");
    // temp fix
    url = "http://mci2.webkinz.com";
    if(screen.height == 768)
    {
   		if(navigator.userAgent.toLowerCase().indexOf('aol')>0 && navigator.userAgent.toLowerCase().indexOf('netscape')<0) {
    		window.open(url+"/loader4.php?go="+page+"&aol=1&fs=0", "webkinz", "height=680,width=1000,toolbar=0,titlebar=1,location=0,status=0,directories=0,menubar=0,scrollbars=0,resizable=0,fullscreen=yes");
   		} else  {
    		window.open(url+"/loader4.php?go="+page+"&aol=0&fs=1", "webkinz", "height=680,width=1000,toolbar=0,titlebar=1,location=0,status=0,directories=0,menubar=0,scrollbars=0,resizable=0,fullscreen=yes");
   		}
  	} else {
   		window.open(url+"/loader4.php?go="+page+"&aol=0&fs=0", "webkinz", "left="+(screen.width-1000)/2+",top="+(screen.height-680)/2+",height=680,width=1000,toolbar=0,titlebar=1,location=0,status=0,directories=0,menubar=0,scrollbars=0,resizable=0");
  	}
}


