	 var remote = null
	 var winCount = 0
	 var winName = "remote"
	 function openRemote(winURL, winWidth, winHeight, winFeatures){
	   LeftPosition = (screen.width) ? (screen.width-winWidth)/2 : 0;
	   TopPosition = (screen.height) ? (screen.height-winHeight)/2 : 0;
	   winName = "remote" + winCount++
	   closeRemote()           // close any previously opened pop-up window
	   if (openRemote.arguments.length == 4)  // number of additional features
	     winFeatures = "," + winFeatures
	   else
	     winFeatures = ""
	   remote = window.open(winURL, winName, "width=" + winWidth
	            + ",height=" + winHeight + "top=" + TopPosition + ",left=" + LeftPosition + winFeatures)
	 }
	 function closeRemote(){
	   if (navigator.appName != "Microsoft Internet Explorer"
	       || parseInt(navigator.appVersion) >=4)
	     if(remote != null) if(!remote.closed) remote.close()
	   }
	function closeme(who) {
		if(who){
			alert("Email has been successfully sent to " + who);
		}
		self.close();
	}