function chkwebmail(f){
	var erro = '';
	if( !erro && f.usremail.value.length < 1 ) erro = 'Digite o login/E-mail corretamente!';
	if( !erro && f.pass.value.length < 1 ) erro = 'Preencha a senha corretamente!';
	if( erro ) { alert( erro ); return false; }
	//f.imapuser.value = f.usrmail.value+'.portodesantos';
   //	f.usremail.value = "";
   //	f.pass.value = "";
	return true;
}


 function changeMail(stremail,id){
            var el = $('#'+id);
            strval = new String(stremail);
            if (strval.search("\\@porto")>=0){
                 var strval2 = strval.substr(0,strval.search("\\@porto"));
                    return el.attr('value',strval2+".portodesantos");
            }
            else {
                   return el.attr('value',strval);
            }
}
