// 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 validForm()

{

	//alert("check");	

	//alert(document.frm.small.value);	 



 	if(document.form1.user.value == "" || document.form1.user.value =='Name')

	{

		alert("Please enter your  name"); 

		document.form1.user.focus();

		return false;

	}



	





	if(document.form1.email.value == "" || document.form1.email.value == "Email")

	{

		alert("Please enter email");

		document.form1.email.focus();

		return false;

	}
	
emailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/;
	 	 if (!(emailExp.test(document.form1.email.value)))
		{ 
			   alert("Invalid email address");
			   document.form1.email.focus();
			   return false;  
		} 
	/*else

	{

		emailExp= /^\w+(\-\w+)*(\.\w+(\-\w+)*)*@\w+(\-\w+)*(\.\w+(\-\w+)*)+$/;

	 	 if (!(emailExp.test(document.frm.email.value)))

		{ 

			   alert("Invalid Email Address");

			   document.frm.email.focus();

			   return false;  

		} 

	}*/

	

	

		





			

	







}






