	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['contact_form'].Email.value;
	count = aStr.length;
	count1 = 0;
	countdot1 = 0;
//	alert (document.forms['Refill'].elements['FirstName'].value)

		with ( document.forms['contact_form'] )
	    {
		

			if ( Name.value == "" )
			{
				alert("Please fill in the Name field");
				Name.select();
				Name.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 ( Telephone.value == "" )
			{
				alert("Please fill the Telephone field");
				Telephone.focus();
                Telephone.select();
				return(false);				
			}
       			  
   		if ( Message.value == "" )
			{
				alert("Please type in your Message");
				Message.focus();
                Message.select();
				return(false);				
			}
			
			if ( Captcha.value != "24896" )
			{
				alert("Code Validator does not match. Enter 24896");
				Captcha.focus();
                Captcha.select();
				return(false);				
			}
	}
}
