//---------------------------------------------------------------------------------------------------------------------//
// Copyright March 2009 by CobraFang Web Solutions Inc.                                                          //
// Use of this code without the expressed written consent of CobraFang Web Solutions Inc.   //
// is strictly prohibited.                                                                                                                      //
//---------------------------------------------------------------------------------------------------------------------//

function sendLogin()
{
 var eMail = document.getElementById("wsa_email").value;
 showDiv("wsa_loading_image");
 hideDiv("wsa_update_msg");
 var program = "core/sendlogin.php";
 var escEmail = "email="+escape(eMail);
 var escqueryString = escEmail;
 $.post(program, 
         escqueryString, 
         function(data)
         {
          document.getElementById("wsa_update_msg").innerHTML=data;
          showDiv("wsa_update_msg");
 		  hideDiv("wsa_loading_image");
         },"html");
}

function checkInput(e)
{
 if (e.keyCode==13)
 {
  sendLogin();
 }
}

function showDiv(divid)
{
 //document.getElementById(divid).style.visibility = "visible";
 document.getElementById(divid).style.display = "inline";
}

function hideDiv(divid)
{
 //document.getElementById(divid).style.visibility = "hidden";
 document.getElementById(divid).style.display = "none";
}