function validate_signup(doc)
{
  
 function blank(doc)
  {  
   str = "";                 
	  if(doc.name.value == "")
	    {
	      str += "Please enter Your Name \n"            
	    }
          
          if(doc.dob.value == "")
	   {
	     str += "Please select the Date \n"	     
           }	
          
           if(doc.month.value == "")
	    {
	      str += "Please select the Month \n"            
	    }

	  if(doc.year.value == "")
	   {
	     str += "Please select the Year \n"	     
	   }	
          
          if(doc.place.value == "")
	   {
	      str += "Please enter the Place \n"	     
	   }	
          
          
          if(doc.country.value == "")
	   {
	       str += "Please enter the Country \n"	     
	   }	
	   
	  
	  if(doc.tob.value == "")
	   {
	       str += "Please enter the Time of birth \n"	     
	   }	
	  
                  
              if(doc.cres.value == "")
	   {
	       str += "Please enter the Country residing in \n"	     
	   }	
	   	   if(doc.email.value == "")
	    {
	        str += "Please enter the Email Address \n"	     
	    }


	  if(doc.budget.value == "Select your budget")
	   {
	       str += "Please enter your Budget \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;
     }
    
      
   if(!blank(doc))
   {
    return false;
   }
   if(!email(doc))
   {
     return false;
   }
    
  
 } 
 
 function GoBack()
 {
  alert("aaa");
   history.go(-1);
 }

 
 function resetForm(fname)
 {
     //alert(fname);
      eval('window.document.' + fname + '.reset()'); 
      return false;
   
 }

 function budget()
{
window.open("budget.htm","Budget",'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=400,height=310,left = 200,top =50');
}
