function openContactForm(){
document.getElementById("userEntryFormDIV").style.display = 'block';
}

function closeContactForm(){
document.getElementById("userEntryFormDIV").style.display = 'none';
}

function sendMathMomEmail(visitor, visitormail, comments)
{
  var url = "send_math_mom_email.php?";
  var params = "visitor="+visitor+"&visitormail="+visitormail+"&comments="+comments+"&agent=unknown";

  GDownloadUrl(url, function(data, responseCode) 
    {
      if(responseCode == -1) {
	   alert("Unable to deliver email.  You are experiencing internet connection interruptions.");
	return;
      } else if(responseCode != 200){ 
	 alert("Unable to deliver email.");
	return;
	}

	 if (data.length > 1) 
	{
	  var resp = data;
	   alert(resp);
	   if (resp.search("success") != -1)
	    {
	      document.userEntry.reset();
	      closeContactForm();
	      }
	      }
	      }, params);
}


