//<SCRIPT LANGUAGE=javascript>
//<!--
	window.moveTo(screen.width/2-381,screen.height/2-275);

	function CheckLogin(){	
//	DEBUG=true;		
		if (!RuleTest(EmailAddressRule,$$('UserName').value,$$('UserName'))) return false;
		if (!RuleTest(Password_Rule,$$('Password').value,$$('Password'))) return false;   
		
		setProcedureCallParameter(xmlLoginCheck.XMLDocument,"UserName",$$('UserName').value);
		setProcedureCallParameter(xmlLoginCheck.XMLDocument,"Password",$$('Password').value);
				
		var IsErr=ShowXMLMessage(CallWebServiceSynchronous(WEBSERVICE_BASEURL_En,"Unicorn_LoginCheck.asp?SiteType="+SiteType,xmlLoginCheck.XMLDocument),true);
			
		if (IsErr==true){		  
			window.open('/unicorn_en/welcome.htm?SiteType='+SiteType,'','width=750,height=550, toolbar=no, menubar=no, scrollbars=no, resizable=yes,location=no, status=no');
		//  window.location.href="welcome.htm?SiteType="+SiteType;		  
		}
	return true;
		
	}
	
	function UnicornRegister(){
		sUrl='UnicornRegister.htm?SiteType='+SiteType;
		sParams='DialogWidth:640px;DialogHeight:420px;status:no;resize:yes;center:yes;help:no'
		sTitle='Register';
		OpenIFrameDialog(sUrl,'',sParams,sTitle);
		//location.href='UnicornRegister.htm?SiteType='+SiteType;
	}
	
	function UnicornForgetPassword(){
	
		sUrl='frmForgetPassword.htm?SiteType='+SiteType;
		sParams='DialogWidth:400px;DialogHeight:220px;status:no;resize:yes;center:yes;help:no'
		sTitle='ForgetPassword'
		OpenIFrameDialog(sUrl,'',sParams,sTitle);
	
	//	window.open('frmForgetPassword.htm?SiteType='+SiteType,'','width=400,height=220, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=no, status=no');
	}
//-->
//</SCRIPT>