function validate_signup(doc)
{
  
 function blank(doc)
  {  
   str = "";                 
	  if(doc.name.value == "")
	    {
	      str += "Please enter Your Full Name \n"            
	    }
             if(doc.email.value == "")
	    {
	        str += "Please enter the Email Address \n"	     
	    }
           if(doc.country.value == "")
	   {
	       str += "Please enter the Country \n"	     
	   }	
          
           if(doc.phone.value == "")
	    {
	      str += "Please enter your Phone No. \n"            
	    }

	  if(doc.profession.value == "")
	   {
	     str += "Please enter your Profession \n"	     
	   }	
          
          if(doc.qualification.value == "")
	   {
	      str += "Please enter your Qualification \n"	     
	   }	
          
          
          if(doc.interest.value == "")
	   {
	       str += "Please enter your Interests \n"	     
	   }	
	   
	  
	  if(doc.aboutyou.value == "")
	   {
	       str += "Please write something about you \n"	     
	   }           
        

	 if(str)
	  {
	    alert(str);
	    return false
                 }
	  else
	  {	 
            return true;
                }
  }
  
  function email(doc)
   {
    if(doc.email.value != "")
    	{    	  
    		if (!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(doc.email.value))) 
    		   {
    			alert("Please enter valid Email address");    		
          		return false;    		
    		   }	   
	}
	
    
	
       return true;
     }
    
  function india(doc)
   {
    if(doc.country.value == "india")
    	{    	  
    		alert("Sorry! We have closed Distributorship for India.");    		
          		return false;    		    		     
	}  	
   if(doc.country.value == "India")
    	{    	  
    		alert("Sorry! We have closed Distributorship for India.");    		
          		return false;    		    		     
	}  
   if(doc.country.value == "INDIA")
    	{    	  
    		alert("Sorry! We have closed Distributorship for India.");    		
          		return false;    		    		     
	}  
       return true;
     }
      
   if(!blank(doc))
   {
    return false;
   }
   if(!email(doc))
   {
     return false;
   }
     if(!india(doc))
   {
     return false;
   }
  
 } 
 
 function GoBack()
 {
//  alert("aaa");
   history.go(-1);
 }

 
 function resetForm(fname)
 {
      eval('window.document.' + fname + '.reset()'); 
      return false;
   
 }
