	function winCenterScroll(winUrl, winName, winWidth, winHeight) 
	{
 
	var winFeatures = "width=" + winWidth + ",height=" + winHeight + ",toolbar=no,menubar=no,statusbar=no,scrollbars=yes,resizable=yes";
	
 	//do math to center window
 	var screenH = screen.availHeight;
 	var screenW = screen.availWidth;
 	
 	var moveX = ((screenW - winWidth)/2)-15;
 	var moveY = ((screenH - winHeight)/2)-14;
	masterWindowOpen(winUrl, winName, winFeatures, moveX, moveY);
	}
	
		function masterWindowOpen(mstURL, mstName, mstFeatures, mstX, mstY,thisQuerystring) {
		var mstFeatures = mstFeatures + ",left=" + mstX + ",top=" + mstY;
			//alert("mstURL = " + mstURL);
		var openWindow = window.open(mstURL, mstName, mstFeatures);
		//openWindow.document.write("");
		openWindow.focus();
		//document.close();
			return openWindow;
	}
	
	function Reference(showThis) {
		var MyWin = open(showThis, "displayWindow", "height=450,width=400,toolbar=no,menubar=no,statusbar=no");
	}

		
       function PopUp2(ref2)
	{	
		var strFeatures2="toolbar=no,status=no,menubar=no,location=no"
		strFeatures2=strFeatures2+",scrollbars=yes,resizable=yes,height=600,width=800"
	
		newWin2 = window.open(ref2,"TellObj2",strFeatures2);
       		newWin2.opener = top;
	}




	
	if(top.location != self.location){
		top.location.replace(self.location)
	}

