function EntradaPrivada() {
	var strTmp;
	if (document.extranet.login.value == ""){
		alert("enter login");
	} else if (document.extranet.password.value == "") {
		alert("enter password");		
	} else {
		//Entrar en la extranet correcta
		strTmp=document.extranet.login.value;
		if (strTmp.indexOf('@')==-1) {
			if (strTmp.substring(0,4)=='int_' || strTmp.substring(0,4)=='hot_' || strTmp.substring(0,4)=='afi_') {
				//pref. int_ -> Intermediari
				document.extranet.action = "http://www.barcelona-on-line.es/private_zone/login.aspx";
				if (strTmp.substring(0,4)=='int_'){
					//if (strTmp!='int_mol')
					//{alert("We are maintaining your private area. Sorry for the inconvenienceaaa.")
					//return false;
					//}
				}
			}else{
				//hotel
				document.extranet.action='https://www.barcelona-on-line.es/extranetI/entrada.asp?idioma=eng';
			}
		} else {
			//Email -> client
			document.extranet.action="https://www.barcelona-on-line.es/extranetClients_seg/entrada.asp";				
		}
		document.extranet.submit();
	}
}
