	
function makeNewWindow(Emsg) {
	var newWindow;
	if (!newWindow || newWindow.closed) {
		newWindow = window.open("","newWindow","resizable,scrollbars,status,height=200,width=500,left=70,top=150")
		if (!newWindow.opener) {
			newWindow.opener = window;
		}
		// begins content for new Window
		//newWindow.document.write("<script lanaguage=\"javascript\" src=\"include/swapimage.js\"></script>")
		/*
		newWindow.document.write("<html><head><title>Wannamakeabet.com</title></head><body MARGINWIDTH=1 MARGINHEIGHT=1 TOPMARGIN=1 LEFTMARGIN=1>\n");
		newWindow.document.write("<div align='center'>");
		newWindow.document.write("<font SIZE=\"2\" color=\"black\" FACE=\"ARIAL, HELVETICA\"><b><br>Following fields have to be filled out before proceeding:</div></font><br>\n");
		newWindow.document.write("<font SIZE=\"2\" color=\"red\" FACE=\"ARIAL, HELVETICA\"><center>")
		newWindow.document.write(Emsg);
		newWindow.document.write("</center></font></b>")
		newWindow.document.write("<br><br><div align='center'><a href='javascript:self.close()'><img src=images/close2.gif border=0></a></div>\n");
		newWindow.document.write("</body></html>\n");
		*/
		newWindow.document.location.href="/include/errors.asp?emsg=" + Emsg;
		// write html to new Window Document
		newWindow.document.close();
		newWindow.focus();
		Emsg1 = "";
		Emsg2 = "";
		Emsg3 = "";
	} else {
		// window's already open; bring to front
		newWindow.focus();
	}
}



	
	function validatePasswords(form){
		var errstr;
		var passlen = (form.password.value).length,HasNum = false;
		var pass = form.password.value;

		if(form.password.value != form.con_password.value && form.password.value != ""){
			return "Your passwords don't match, please try again.";

		}
		else if(Trim(form.password.value) == ""){
			return 'Please enter password';
		}
		return '';
	}
	