function LoginForm()	{
			var theForm = document.loginPage;
			if (theForm.username.value == "")
  {
    alert('' + "You must enter your login name to enter Webmail on jakbankitalia.it" + '');
    theForm.username.focus();
    return (false);
  }
  if (theForm.password.value == "")
  {
    alert('' + "Please enter your password" + '');
    theForm.username.focus();
    return (false);
  }
			if (!theForm.username.value || !theForm.pop3host.value || !theForm.password.value || !theForm.MailServer.value) return false;
	atmailroot = document.location.href;
	atmailroot = atmailroot.replace(/index\.php.*/, '');
WebMailLoginReq = createXMLHttpRequest();
WebMailLoginReq.onreadystatechange = WebMailLoginReqChange;
var POSTString = "ajax=1&username=" + encodeURIComponent(theForm.username.value) + "&password=" + encodeURIComponent(theForm.password.value) + "&MailServer=" + encodeURIComponent(theForm.MailServer.value) + "&pop3host=" + encodeURIComponent(theForm.pop3host.value) + "&MailType=" + encodeURIComponent(theForm.MailType.value) + "&Language=" + "&LoginType=ajax";
	
	WebMailLoginReq.open("POST", "http://www.jakbankitalia.it/wmail/atmail.php", true);
	WebMailLoginReq.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
	WebMailLoginReq.send(POSTString);
	
}
function createXMLHttpRequest() {
	try { return new ActiveXObject("Msxml2.XMLHTTP"); } catch (e) {}
	try { return new ActiveXObject("Microsoft.XMLHTTP"); } catch (e) {}
	try { return new XMLHttpRequest(); } catch(e) {}
	alert("XMLHttpRequest not supported");
	return null;
}
function WebMailLoginReqChange() {  
	               location.href = '/wmail/parse.php?file=html/LANG/simple/showmail_interface.html&ajax=1&func=Inbox&&To=';
				        }
       



