function validate1()

{

	

if(document.frm1.txtname.value == "")



  {



   alert("Please fill Your Name Field.")



   document.frm1.txtname.focus()



   return false;



   }
   
   if(document.frm1.txtemail.value.indexOf("@",0) < 0)



		{



		alert('Please enter a valid friends email address!');	



		document.frm1.txtemail.focus();	



		return false;



		}
   if(document.frm1.txtemail.value == "")



  {



   alert("Please fill Friend's Name Field.")



   document.frm1.txtemail.focus()



   return false;



   }





		if(document.frm1.txtemail.value.indexOf(".",0) < 0)



		{



		alert('Please enter a valid friends email address!');



		document.frm1.txtemail.focus();		



		return false;



		}



     /* if(document.frm1.txtemail.value.indexOf(" ",0) >= 0)



      {



      alert('Your Email cannot have spaces');  



      document.frm1.txtemail.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;

   }

