function displayMsg() {
document.getElementById("promoMsg").style.display="block";
}

function clearMsg() {
document.getElementById("promoMsg").style.display="none";
}

function ajaxFunction()
{

var xmlHttp;

try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {  // Internet Explorer

  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    try
      {
      xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
      }
    catch (e)
      {
      alert("Your browser does not support AJAX!");
      return false;
      }
      }
      }
  xmlHttp.onreadystatechange=function()
    {
    if(xmlHttp.readyState==4 && xmlHttp.status == 200)
      {
      if(xmlHttp.responseText != 0) {
       document.getElementById("logindiv").style.display="none";
       document.getElementById("pptlink").innerHTML = xmlHttp.responseText;
      }
      else
       displayMsg();
    }
   }
var val = document.getElementById("pass").value;

var quote = "'";

 xmlHttp.open("GET","consortium/checkPromoCode.php?pwd="+quote+val+quote,true);
 xmlHttp.send(null);
  
  }
