// Add to Login Landing
var xmlhttpL;
function showL(str) {
xmlhttpL = GetXmlHttpObjectL();
if (xmlhttpL == null) {
	alert ("Your browser is unable to do AJAX. Please update to the latest internet browser");
	return;
}
	
var Lurl = "loginlanding.asp?sid=" + Math.random();

xmlhttpL.onreadystatechange = stateChangedL;
xmlhttpL.open("GET", Lurl, true);
xmlhttpL.send(null);
}

function stateChangedL () {
if (xmlhttpL.readyState == 4) {
	document.getElementById("logme").innerHTML = xmlhttpL.responseText;
}
}

function GetXmlHttpObjectL () {
var xmlhttpL = null;
try {
	xmlhttpL = new XMLHttpRequest();
}
catch (e) {
	try {
		xmlhttpL = new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch (e) {
		try {
			xmlhttpL = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch (e) {
			alert ("Your browser is unable to do AJAX. Please update to the latest internet browser");
			return false
		}
	}
}
return xmlhttpL
}





function xmlhttpPostB(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepageB(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystringB());
}

function getquerystringB() {
    var form     = document.forms['f2'];
    var email = form.email.value;
	var passw = form.passw.value;
    qstr = 'email=' + escape(email) + '&passw=' + escape(passw);  // NOTE: no '?' before querystring
    return qstr;
}

function updatepageB(str){
    document.getElementById("logme").innerHTML = str;
}

function xmlhttpPostC(strURL) {
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', strURL, true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            updatepageC(self.xmlHttpReq.responseText);
        }
    }
    self.xmlHttpReq.send(getquerystringC());
}

function getquerystringC() {
    var form     = document.forms['f3'];
    var myemail = form.myemail.value;
    qstr = 'myemail=' + escape(myemail);  // NOTE: no '?' before querystring
    return qstr;
}

function updatepageC(str){
    document.getElementById("logme").innerHTML = str;
}



