function p(m)
{
var pa = document.getElementById("passwd").value;
if(pa=="dalwallinu43halibut")
{
parent.location.href='http://latibiz.com/downloads/latitude9010.html';
return false;
} else if(pa=="whangarei06gemsbok1") {
parent.location.href='http://latibiz.com/downloads/latitudesqupdate.html';
return false;

}

else if(pa=="Lati03Install") {
parent.location.href='http://latibiz.com/downloads/access-2003-runtime.html';
return false;

}
else if(pa=="ouachita14echidna") {
//document.location.href='http://www.latibiz.com/downloads/software/latitude9210.html';
self.location='http://www.latibiz.com/downloads/software/latitude9210.html';
//parent.location.href='http://www.latibiz.com/downloads/software/latitude9210.html';
return false;

}

else if(pa=="paparoa63duiker") {
parent.location.href='http://latibiz.com/downloads/software/latitudesq9210.html';
return false;

}


else if(pa=="darkinjung23roroa") {
parent.location.href='http://www.latibiz.com/downloads/advanced-update.html';
return false;

}

else {
alert('Invalid download password\nPlease Contact Latitude Customer Support');
return false;
}



}

function gatekeeper() {
//alert('aa');
			ae_prompt(gatekeeper_cb, "Enter password:", "", "Latitude");
document.getElementById('passwd').focus();
		}
		function gatekeeper_cb(p) {
			if (p != null) {
			var passkey = p;
				var myDate = new Date();
			var location = "authenticate.asp?" + myDate.getMilliseconds() + myDate.getDay() + myDate.getSeconds() + myDate.getMonth() + myDate.getMinutes() + "=" + passkey + "&crypt=";
					
				this.location.href = location;
			}
		}
		

		function filekeeper() {
			ae_prompt(filekeeper_cb, "Enter the file name:", "", "Latitude");
		}	
		function filekeeper_cb(filename) {
			if (filename != null) {
			var location = "f_" + filename;
				this.location.href = location;
			}
		}
var ae_cb = null;
function ae$(a) { return document.getElementById(a); } 
function ae_prompt(cb, q, a, title) {
ae_cb = cb;
//ae$('aep_t').innerHTML = title;
//ae$('aep_prompt').innerHTML = q;
//ae$('aep_text').value = a; 
ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = ''; 
//ae$('passwd').focus(); 
//ae$('passwd').select();
}
function ae_clk(m) {
ae$('aep_ovrl').style.display = ae$('aep_ww').style.display = 'none';
if(m==0) ae_cb(null);
else if (m==1)ae_cb(ae$('aep_text').value);
else this.location.href= 'default.htm';
}
