function validate()
{
	
if(document.frm.name.value == "")

  {

   alert("Please fill Name Field.")

   document.frm.name.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.remail.value == "")

  {

   alert("Please fill in your Re-type E-mail.")

   document.frm.remail.focus()

   return false;

  } 



		if(document.frm.remail.value.indexOf("@",0) < 0)

		{

		alert('Please enter a valid email address!');	

		document.frm.remail.focus();	

		return false;

		}

		if(document.frm.remail.value.indexOf(".",0) < 0)

		{

		alert('Please enter a valid email address!');

		document.frm.remail.focus();		

		return false;

		}

      if(document.frm.remail.value.indexOf(" ",0) >= 0)

      {

      alert('Your Email cannot have spaces');  

      document.frm.remail.focus();    

      return false;

      }

if(document.frm.remail.value != document.frm.email.value)

{

alert("Email addresses do not match. Please check & Retype");

document.frm.remail.focus();    

return false;

}*/



  return true;

 }
function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
   var strChar;
   var blnResult = true;

   if (strString.length == 0) return false;

   //  test strString consists of valid characters listed above
   for (i = 0; i < strString.length && blnResult == true; i++)
      {
      strChar = strString.charAt(i);
      if (strValidChars.indexOf(strChar) == -1)
         {
         blnResult = false;
         }
      }
   return blnResult;
   }
