function verifyForm(form) {
	
    var userName = document.formemail.qname.value;
   var occupation = document.formemail.qoccupation.value;
   var phone = document.formemail.qphone.value;
   var purpose = document.formemail.qpurpose.value;
   
    var success = 1;
    if (!userName) {
       
        document.formemail.qname.style.backgroundColor = "#FFFFD7";
        document.formemail.qname.style.border = "1px red solid";
		document.getElementById("qname").style.color="#000000";
		document.formemail.qname.value="Insert the name";
          success =0
    }
   
	
	   if (!occupation) {
       
        document.formemail.qoccupation.style.backgroundColor = "#FFFFD7";
        document.formemail.qoccupation.style.border = "1px red solid";
		document.getElementById("qoccupation").style.color="#000000";
		document.formemail.qoccupation.value="Insert the Occupation";
           success =0
    }
   
	
   
       if (!phone) {
       
        document.formemail.qphone.style.backgroundColor = "#FFFFD7";
        document.formemail.qphone.style.border = "1px red solid";
		document.getElementById("qphone").style.color="#000000";
		document.formemail.qphone.value="Insert the Phone No.";
          success =0
    }
   
   
   
    if (!purpose) {
       
        document.formemail.qpurpose.style.backgroundColor = "#FFFFD7";
        document.formemail.qpurpose.style.border = "1px red solid";
		document.getElementById("qpurpose").style.color="#000000";
		document.formemail.qpurpose.value="Insert the purpose";
         success =0
    }
    
   
   
    if(!success) {
        alert("The form is incomplete.  Please check the error message(s).");
        return false;
    }
    else {
        alert("The form was submitted succesfully!");
        return true;
    }
}




  function clearUsernamePrompt() {
    var username = document.getElementById("qname");
	var occupation = document.getElementById("qoccupation");
		
	
    if (username.value == "Insert the name")
	{
      username.value = "";
	  document.getElementById("qname").style.border="1px #688AA5 solid";
	  document.getElementById("qname").style.backgroundColor="#5E7384";
	  document.getElementById("qname").style.color="#FFFFFF";

    }
	 
	  else
	  {
      username.value = "";
	  document.getElementById("qname").style.border="";
	  document.getElementById("qname").style.backgroundColor="";
	  document.getElementById("qname").style.color="";

    }
}
  
  
  
  function clearUsernamePrompt1() {
    
	var occupation = document.getElementById("qoccupation");
	
    	  if (occupation.value == "Insert the Occupation") {
      occupation.value = "";
	  document.getElementById("qoccupation").style.border="1px #688AA5 solid";
	  document.getElementById("qoccupation").style.backgroundColor="#5E7384";
	  document.getElementById("qoccupation").style.color="#FFFFFF";

    }
  }
  
  
    function clearUsernamePrompt2() {
    
	var phone = document.getElementById("qphone");
	
    	  if (phone.value == "Insert the Phone No.") {
      phone.value = "";
	  document.getElementById("qphone").style.border="1px #688AA5 solid";
	  document.getElementById("qphone").style.backgroundColor="#5E7384";
	  document.getElementById("qphone").style.color="#FFFFFF";

    }
  }
  
  
  
    function clearUsernamePrompt3() {
    
	var purpose = document.getElementById("qpurpose");
	
    	  if (purpose.value == "Insert the purpose") {
      purpose.value = "";
	  document.getElementById("qpurpose").style.border="1px #688AA5 solid";
	  document.getElementById("qpurpose").style.backgroundColor="#5E7384";
	  document.getElementById("qpurpose").style.color="#FFFFFF";
	 

    }
  }
// JavaScript Document


var xmlHttp;


function signin(str)
{ 
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="signin.asp";
url=url+"?q="+str;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged1;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged1() 
{ 
if (xmlHttp.readyState==4)
{ 

document.getElementById("signup_container").innerHTML=xmlHttp.responseText;


}
}


function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}// JavaScript Document