/**
 *	wasteaware.js
 *
 *	Waste aware JS functions, using JQuery.
 *
 *	@author: A.Surrey
 */
 
 $(document).ready(function()
	{
			
		/**
		 *	Highlight the contact form input fields ////////////////////////////
		 */
		$(".contact-input").focus(function()
			{
				//$(this).addClass("contact-input-focus");
				if($(this).val() == "Name" || $(this).val() == "E-mail Address" || $(this).val() == "Telephone number")
				{
					$(this).val("");
				}
			});
		
		$(".contact-input").blur(function()
			{
				//$(this).removeClass("contact-input-focus");
				if ($(this).val() == "")
				{
					switch( $(this).attr("name") )
					{
						case "contactName":
							$(this).val("Name");
							break;
					
						case "contactEmail":
							$(this).val("E-mail Address");
							break;
					
						case "contactTel":
							$(this).val("Telephone number");
							break;
					}//switch
				}//if
			});	
		
		$(".contact-input-text").focus(function()
			{
				//$(this).addClass("contact-input-focus");
				if( $(this).val() == "Enquiry" )
				{
					$(this).val("");
				}
			});
		
		$(".contact-input-text").blur(function()
			{
				//$(this).removeClass("contact-input-focus");
				if ($(this).val() == "")
				{
					$(this).val("Enquiry");
				}
			});	
		
		///////////////// Form Submission /////////////////////////
		
		$("#sendEnquiry").click(function()
			{
				//resetForm();
								
				//return validate(this):
				
			});
					
			
	});

/**
 *	Form Validation routines
 */
function validate(form)
{

}
