function Validacadastro(theform)
{
     if (theform.cmp_login.value == "")
     {
       alert("E-mail não Informado!");
	   theform.cmp_login.focus();
       return false;
     }
     else if (theform.cmp_pwd.value == "")
     {
       alert("Senha não informada!");
	   theform.cmp_pwd.focus();
       return false;
     }
 return true;
}

function login(theForm){
 if (Validacadastro(theForm)) {theForm.submit();}
}
