// JavaScript Document

function IsNumeric(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   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;
   }

function Is(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   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;
   }
 
 
 function da(strString)
   //  check for valid numeric strings	
   {
   var strValidChars = "0123456789.-";
   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;
   }


function validateform3()
{

if (document.frm2.Name.value == "" )
  {
   document.frm2.Name.focus();

   alert ("Please Enter the Name");
   return false;
  }
if (document.frm2.Organization.value == "" )
  {
   document.frm2.Organization.focus();

   alert ("Please Enter the Organization Name");
   return false;
  }
if (document.frm2.Phone.value == 0) 
  {
      alert("Please Enter your Phone number");
	  document.frm2.Phone.focus();
	  return false;
} 
  
if (document.frm2.Email.value == "" )
 {
   document.frm2.Email.focus();
   alert ("Please Enter your Email");
   return false;
  }
  var str = document.frm2.Email.value;
  if (((str.indexOf(".") > 2) && (str.indexOf("@") > 0)) == false )
  {
   document.frm2.Email.focus();
   alert ("Please Enter a valid Email");
   return false;
}

if (document.frm2.ede.value == "Select" )
 {
   document.frm2.ede.focus();

   alert ("Please Select the Exam Date");
   return false;
 }

if (document.frm2.country.value == "" )
 {
   document.frm2.country.focus();

   alert ("Please Enter the Country");
   return false;
 }




    document.frm2.method="post";
	document.frm2.action="Thanks.asp"
	alert("Thanks for your submission.")
	document.frm2.submit();
}

function Clear()
{
	document.frm2.reset();
}
