/*var isEmailValid="true";
function validateRegisteredEmail(){
	getEl('alert01').innerHTML = '';getEl('alert01').style.display = 'none';
	var url = 'is_email_valid.php?id='+ document.forms["loginform"].login.value;
	var x =  new RemoteProcedure(url,validateEmailResponse,showWait);
	isEmailValid =  xhrObj.responseText;
}
function validateEmailResponse(xhrObj){
	if(xhrObj.responseText == "false"){
		yo4yaAlert("alert01",yo4yaMessage.emailAlreadyRegistered ,"error");	
		setFieldError('login');			
		location.href="#anchor01";	
	}
}*/


function loginSubmit(){
	var tempFlag;
	var maxPasswordLen = 6;
 	tempFlag=isBlank(document.forms["loginform"].login.value);
	if(tempFlag==true){
		//window.location.href="#anchor01";
		location.href="#anchor01";
		yo4yaAlert("alert01",yo4yaMessage.enterEmail,"error");
		return false;
	} 	
	tempFlag=validateEmail(document.forms["loginform"].login);
	if(tempFlag==false){
		//window.location.href="#anchor01";
		location.href="#anchor01";	
		yo4yaAlert("alert01",yo4yaMessage.invalidEmail,"error");		
		return false;

	}
	tempFlag=isBlank(document.forms["loginform"].pwd.value);
	if(tempFlag==true){
		location.href="#anchor01";	
		yo4yaAlert("alert01",yo4yaMessage.enterPassword,"error");
		return false;
	}

	if(document.forms["loginform"].pwd.value.length<maxPasswordLen){
		location.href="#anchor01";		
		yo4yaAlert("alert01",yo4yaMessage.invalidPasswordLength,"error");
		return false;
	}

	tempFlag=checkSpecialchar(document.forms["loginform"].pwd.value);
	if(tempFlag==false){
		location.href="#anchor01";	
		yo4yaAlert("alert01",yo4yaMessage.invalidPassword,"error");
		return false;
	}
//	document.forms["loginform"].submit();
	
}

