function checkForm(formid) { 


var sendform = true;


if (document.getElementById('login').value == '') {
alert("Inserisci il tuo Login");

document.getElementById('login').focus();
var sendform = false;

}

if (document.getElementById('password').value == '') {
alert("Inserisci la tua Password");

document.getElementById('password').focus();
var sendform = false;

}

if (sendform){
document.getElementById('action_login').blur();
document.getElementById('action_login').disabled = true;
//document.getElementById('loginarea').style.display="none";
document.getElementById(formid).submit();

}


} 