function validate()
{
	
if(document.frm.name.value == "")

  {

   alert("Please fill in Your Name.")

   document.frm.name.focus()

   return false;

   }
if(document.frm.email.value == "")

  {

   alert("Please fill in your E-mail.")

   document.frm.email.focus()

   return false;

  } 



		if(document.frm.email.value.indexOf("@",0) < 0)

		{

		alert('Please enter a valid email address!');	

		document.frm.email.focus();	

		return false;

		}

		if(document.frm.email.value.indexOf(".",0) < 0)

		{

		alert('Please enter a valid email address!');

		document.frm.email.focus();		

		return false;

		}

      if(document.frm.email.value.indexOf(" ",0) >= 0)

      {

      alert('Your Email cannot have spaces');  

      document.frm.email.focus();    

      return false;

      }

if(document.frm.txtmail.value == "")

  {

   alert("Please fill in your Re-type E-mail.")

   document.frm.txtmail.focus()

   return false;

  } 



		if(document.frm.txtmail.value.indexOf("@",0) < 0)

		{

		alert('Please enter a valid email address!');	

		document.frm.txtmail.focus();	

		return false;

		}

		if(document.frm.txtmail.value.indexOf(".",0) < 0)

		{

		alert('Please enter a valid email address!');

		document.frm.txtmail.focus();		

		return false;

		}

      if(document.frm.txtmail.value.indexOf(" ",0) >= 0)

      {

      alert('Your Email cannot have spaces');  

      document.frm.txtmail.focus();    

      return false;

      }

if(document.frm.txtmail.value != document.frm.email.value)

{

alert("Email addresses do not match. Please check & Retype");

document.frm.txtmail.focus();    

return false;

}

if(document.frm.code.value == "")

  {

   alert("Please fill in Image Code.")

   document.frm.code.focus()

   return false;

   }
   
   if(document.frm.code.value !='8fe529')
  {
   alert("The Code you entered did not match.");
   document.frm.code.focus()
   return false;
  } 




  return true;

 }
