function verifyEmailFunc(aamir)
{
	
	var email1=aamir.email.value;

   if((email1=="") || (email1==" ") || (email1=="  ") || (email1=="   "))
   {
    	alert("Please enter your email address");
    	aamir.email.focus();
    	return false;
   }

   Position=(email1).indexOf("@",1);
   if(Position==-1) // If no @ found
   {
    	alert("Invalid email address. There should be atleast one \'@\' in the email address");
//    	aamir.email="";
    	aamir.email.focus();
    	return false;
   }

	// Make sure there is only only one @ sign by adding the result we got to one and
	// comparing with -1. It true the answer will not be -1, else it will be.
  if((email1).indexOf("@",Position+1)!=-1)
   {
   	alert("Invalid Email address. There should be only one \'@\' in the email address");
    	//aamir.email="";
    	aamir.email.focus();
   	return false;
   }
  
	Period=(email1).indexOf(".",1);
	if(Period==-1)
	{
	 	alert("Invalid email address, please modify and try again");
	 	aamir.email.focus();
 		return false;
	}	
	
   return true;
}
