$(document).ready(function() {
						   
	$("#Search_Expand").toggle(
		function() {
			$("#Hidden_Search").slideDown(250);
			$("#Search_Expand").empty();
			$("#Search_Expand").append("[ basic search ]");
		},
		function() {
			$("#Hidden_Search").slideUp(250);
			$("#Search_Expand").empty();
			$("#Search_Expand").append("[ advanced search ]");
		}
	);
	
	
	
	
	
	
	
	
	
	
	
	$("#Search_Expand_Temptation").toggle(
		function() {
			$("#Hidden_Search_Temptation").slideDown(250);
			$("#Search_Expand_Temptation").empty();
			$("#Search_Expand_Temptation").append("Close");
			$("#PBS_Expand_Temptation").empty();
			$("#PBS_Expand_Temptation").append("Personal Boat Shopper");
		},
		function() {
			$("#Hidden_Search_Temptation").slideUp(250);
			$("#Search_Expand_Temptation").empty();
			$("#Search_Expand_Temptation").append("Search Yachts For Sale");
			$("#PBS_Expand_Temptation").empty();
			$("#PBS_Expand_Temptation").append("Personal Boat Shopper");
		}
	);
	
	$("#PBS_Expand_Temptation").toggle(
		function() {
			$("#Hidden_Search_Temptation").slideDown(250);
			$("#Search_Expand_Temptation").empty();
			$("#Search_Expand_Temptation").append("Close");
			$("#PBS_Expand_Temptation").empty();
			$("#PBS_Expand_Temptation").append("Personal Boat Shopper");
		},
		function() {
			$("#Hidden_Search_Temptation").slideUp(250);
			$("#Search_Expand_Temptation").empty();
			$("#Search_Expand_Temptation").append("Search Yachts For Sale");
			$("#PBS_Expand_Temptation").empty();
			$("#PBS_Expand_Temptation").append("Personal Boat Shopper");
		}
	);
	
});


function clearField(el){
	if(el.value == "Enter your message here ..." && el.name == "comments"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Details ..." && el.name == "comments"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Rigging, Anchors, Rode, Fenders, etc. ..." && el.name == "comments1"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Electronics (brands, models, condition) ..." && el.name == "comments2"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Upgrades/Repairs ..." && el.name == "comments3"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Boat Condition/Repairs Needed ..." && el.name == "comments4"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
	if(el.value == "Additional Comments ..." && el.name == "comments"){
		el.value = "";
		el.style.borderColor = "#000000";
		el.style.color = "#333333";
		el.style.fontStyle = "normal";
	}
};

function checkField(el){
	if(el.value == "" && el.name == "comments"){
		el.value = "Enter your message here ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments"){
		el.value = "Details ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments1"){
		el.value = "Rigging, Anchors, Rode, Fenders, etc. ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments2"){
		el.value = "Electronics (brands, models, condition) ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments3"){
		el.value = "Upgrades/Repairs ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments4"){
		el.value = "Boat Condition/Repairs Needed ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
	if(el.value == "" && el.name == "comments"){
		el.value = "Additional Comments ...";
		el.style.borderColor = "#959595";
		el.style.color = "#959595";
		el.style.fontStyle = "italic";
	}
};
