function SetChoice(uniqueCompany) {
   if (document.getElementById("AccountCode").value == "") {
			 alert("Invalid Login. You must enter your account code")
			 document.getElementById("AccountCode").focus()
			 return
	 }
	 if (document.getElementById("TrCity")) {
	   if (document.getElementById("TrCity").style.display == "")
	 	  	uniqueCompany = document.getElementById("City").value
	 }		
   window.open("/Validation.php?uniqueCompany="+uniqueCompany+
               "&AccountCode="+document.getElementById("AccountCode").value+
							 "&Password="+document.getElementById("Password").value+
							 "&Name="+document.getElementById("Name").value,
//							 "clientFrame");	
							 "_self");	
}


function SetChoiceMobile(uniqueCompany) {
   if (document.getElementById("AccountCode").value == "") {
			 alert("Invalid Login. You must enter your account code")
			 document.getElementById("AccountCode").focus()
			 return
	 }
	 if (document.getElementById("TrCity")) {
	   if (document.getElementById("TrCity").style.display == "")
	 	  	uniqueCompany = document.getElementById("City").value
	 }		

   window.open("../Validation.php?uniqueCompany="+uniqueCompany+
	 						 "&OpenPage=JobStatusMobile.php"+
               "&AccountCode="+document.getElementById("AccountCode").value+
							 "&Password="+document.getElementById("Password").value+
							 "&Name="+document.getElementById("Name").value,
							 "_top");							 	
}

/* The following function creates an XMLHttpRequest object... */

var statusOK = 200;		

function createRequestObject(){
	var request_o; //declare the variable to hold the object.
	if (window.XMLHttpRequest) {
		/* Create the object using other browser's method */
		request_o = new XMLHttpRequest();
	} else if (window.ActiveXObject) {
		/* Create the object using MSIE's method */
        	request_o = new ActiveXObject("Microsoft.XMLHTTP");
	} else {
		alert("There is no requestor");
	}
	return request_o; //return the object
}

/* The variable http will hold our new XMLHttpRequest object. */
var http = createRequestObject(); 
 
function setUserLoginTime(InternetID) {
	http.open("get", "../CustomerPHP/LoginUpdate.php?InternetID="+InternetID);
	http.send(null);	
} 

