/**
 * @author Patrick
 */
jQuery(document).ready(function() {
								
								
	var searchBox = jQuery('#Form_Search_Form_Searchtext');
	var defaultValue = searchBox.val();
	searchBox.click(function() {
		if( this.value == defaultValue ) {
			jQuery(this).val("");
		}
	});
	searchBox.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(defaultValue);
		}
	});
	
	
	
	var nameBox = jQuery('#Form_Enquiry_Form_Name');
	var name_defaultValue = nameBox.val();
	nameBox.click(function() {
		if( this.value == name_defaultValue ) {
			jQuery(this).val("");
		}
	});
	nameBox.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(name_defaultValue);
		}
	});
	
	
	var snameBox = jQuery('#Form_Enquiry_Form_Surname');
	var sname_defaultValue = snameBox.val();
	snameBox.click(function() {
		if( this.value == sname_defaultValue ) {
			jQuery(this).val("");
		}
	});
	snameBox.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(sname_defaultValue);
		}
	});
	
	var emailBox = jQuery('#Form_Enquiry_Form_Email');
	var emailBox_defaultValue = emailBox.val();
	emailBox.click(function() {
		if( this.value == emailBox_defaultValue ) {
			jQuery(this).val("");
		}
	});
	emailBox.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(emailBox_defaultValue);
		}
	});
	
	
	var ContactNumber = jQuery('#Form_Enquiry_Form_ContactNumber');
	var ContactNumber_defaultValue = ContactNumber.val();
	ContactNumber.click(function() {
		if( this.value == ContactNumber_defaultValue ) {
			jQuery(this).val("");
		}
	});
	ContactNumber.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(ContactNumber_defaultValue);
		}
	});
	
	
	var Enquiry = jQuery('#Form_Enquiry_Form_Enquiry');
	var Enquiry_defaultValue = Enquiry.val();
	Enquiry.click(function() {
		if( this.value == Enquiry_defaultValue ) {
			jQuery(this).val("");
		}
	});
	Enquiry.blur(function() {
		if(jQuery.trim(this.value) == "") {
			jQuery(this).val(Enquiry_defaultValue);
		}
	});
	
	
	
}); 

