	function validate()
	{
		

		var message = "Please complete the required fields.";
//		var card_message = "Improper credit card expiry date format. \n Please make sure the format is MM/YY";
	aStr = document.forms['landing_form'].email.value;
	count = aStr.length;
	count1 = 0;
	countdot1 = 0;
		//alert (document.forms['landing_form'].elements['FirstName'].value)

		with ( document.forms['landing_form'] )
	    {
		

			if ( name.value == "" )
			{
				alert("Please fill in the Name field");
				name.select();
				name.focus();
				return(false);				
			}
		
		    	if ( phone.value == "" )
			{
				alert("Please fill in the Phone field");
				phone.select();
				phone.focus();
				return(false);				
			}

			 	if ( email.value == "" )
                        {
                                alert("Please fill the email field");
                                email.select();
                                email.focus();
                                return(false);                          
                        }

        if ( aStr != "")
        {
                for(i = 0; i < count; i++)
                {
                        symbol = aStr.substr(i, 1);
                        if ( symbol == "@" )
                        {
                                count1++;
                        }
                        if ( symbol == "." )
                        {
                                countdot1++;
                        }
                }
                if ( count1 != 1 || countdot1 < 1)
                {
                        alert("Please enter a valid email address!");
                        email.focus();
                        email.select();
                        return false;                           
                }
        } 
			  
       if ( address.value == "" )
			{
				alert("Please fill the Address field");
				address.focus();
                address.select();
				return(false);				
			}
		
      if ( comments.value == "" )
			{
				alert("Please fill the Comments field");
				comments.focus();
                comments.select();
				return(false);				
			}
			
			if ( VC.value != "869" )
			{
				alert("Validator does not match. Enter 869");
				VC.focus();
                VC.select();
				return(false);				
			}
	}
}
