function gpblogin(website) {
	
	var email = document.getElementById('login_email').value;
	var password = document.getElementById('login_password').value;
	
	var url = website + 'loginCheck.cfm';	
	var params = 'email=' + escape(email) + '&password=' + escape(password);
	
	var result = '';	
	http.open("GET", url+"?"+params, false);	
	http.send(null);
	result = http.responseText;
	
	if (result.length > 2) {
		document.getElementById('login-incorrect').className = '';
		document.getElementById('login_email').value = '';
		document.getElementById('login_password').value = '';
		window.open(result,'GPBEvaluation','width=1016,height=660,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,copyhistory=0,resizable=0');
	}
	else {
		document.getElementById('login-incorrect').className = 'login-error';
	}
	return false;
}

function gpbclearError() {
	document.getElementById('login-incorrect').className = '';
}

function getHttpRes() {
  if (http.readyState == 4) { 
    res = http.responseText;  // These following lines get the response and update the page
  }
}

function getXHTTP() {
  var xhttp;
   try {   // The following "try" blocks get the XMLHTTP object for various browsers…
      xhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e2) {
 		 // This block handles Mozilla/Firefox browsers...
	    try {
	      xhttp = new XMLHttpRequest();
	    } catch (e3) {
	      xhttp = false;
	    }
      }
    }
  return xhttp; // Return the XMLHTTP object
}
var http = getXHTTP(); // This executes when the page first loads.