function check1(theForm)
{
 
 
 


if(theForm.fname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.fname.focus();
    return (false);
  }
  
  if(theForm.lname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.lname.focus();
    return (false);
  }
  

  if (theForm.email.value == "")
  {
    alert("Please enter a value for the Email field.");
    theForm.email.focus();
    return (false);
  }	

if (theForm.email.value.indexOf ("@") == -1)
           {
                alert("Please input valid E-mail")
                theForm.email.focus();
		return (false);
           }
 
if (theForm.email.value.indexOf (".") == -1)
           {
                alert("Please input valid E-mail")
                theForm.email.focus();
		return (false);
           }
	
  

	
var checkOK = "0123456789-,";
  var checkStr = theForm.phone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;i < checkStr.length;i++)
  {
    ch = checkStr.charAt(i);
    for (j=0;j<checkOK.length;j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \Phone No. field");
    theForm.phone.focus();
    return (false);
  }
 
  if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \Phone No. field");
    theForm.phone.focus();
    return (false);
  }
	   



	
      if(theForm.address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.address.focus();
    return (false);
  }	
	
/*	      if(theForm.icname.value == "")
  {
    alert("Please enter a value for the \"Institute/College\" field.");
    theForm.icname.focus();
    return (false);
  }	*/
	
	
		      if(theForm.cperson.value == "")
  {
    alert("Please enter a value for the \"Contact Person\" field.");
    theForm.cperson.focus();
    return (false);
  }	
	
	
	

	var checkOK = "0123456789-,";
  var checkStr = theForm.phone2.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;i < checkStr.length;i++)
  {
    ch = checkStr.charAt(i);
    for (j=0;j<checkOK.length;j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \Phone No. field");
    theForm.phone2.focus();
    return (false);
  }
 
  if (theForm.phone2.value == "")
  {
    alert("Please enter a value for the \Phone No. field");
    theForm.phone2.focus();
    return (false);
  }
	
	
	
	
	
		
      if(theForm.address2.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.address2.focus();
    return (false);
  }	
	
	
	
}