function trim(str) 
{	 
 	return str.replace(/^\s*|\s*$/,""); 
} 
function  submitLogin()
{
if(trim(document.login.email.value).length==0)
{
window.alert('!..please enter Login_id.');
document.login.email.focus();
}
else if(trim(document.login.loginpassword.value).length==0)
{
window.alert('!..please enter Password.');
document.login.loginpassword.focus();

}
else
{
document.login.submit();
}
}