function checkSearchA() {
	if (document.getElementById("searchString")) {
		if (document.getElementById("searchString").value == "Search") {
			document.getElementById("searchString").value = "";
			document.getElementById("searchString").style.color = "#000000";
		}
	}
}
function checkSearchB() {
	if (document.getElementById("searchString")) {
		if (document.getElementById("searchString").value == "") {
			document.getElementById("searchString").value = "Search";
			document.getElementById("searchString").style.color = "#5b9482";
		}
	}
}

function validateForm() {
	Qty = document.orderForm.Qty;
	BillTo_First_Name = document.orderForm.BillTo_First_Name;
	BillTo_Last_Name = document.orderForm.BillTo_Last_Name;
	BillTo_Address = document.orderForm.BillTo_Address;
	BillTo_City = document.orderForm.BillTo_City;
	BillTo_State = document.orderForm.BillTo_State;
	BillTo_Zip_Code = document.orderForm.BillTo_Zip_Code;
	BillTo_Phone_Number = document.orderForm.BillTo_Phone_Number;
	BillTo_Email_Address = document.orderForm.BillTo_Email_Address;
	Credit_Card_Number = document.orderForm.Credit_Card_Number;
	Credit_Card_Expire_Month = document.orderForm.Credit_Card_Expire_Month;
	Credit_Card_Expire_Year = document.orderForm.Credit_Card_Expire_Year;
	Credit_Card_Code = document.orderForm.Credit_Card_Code;
	

	if (Credit_Card_Code.value == "") {
		document.getElementById("Credit_Card_Code").style.backgroundColor = "#736a93";
		document.getElementById("Credit_Card_Code").style.color = "#ffffff";
		errorMessage = "yes";
		Credit_Card_Code.focus();
	} else {
		document.getElementById("Credit_Card_Code").style.backgroundColor = "#ffffff";
		document.getElementById("Credit_Card_Code").style.color = "#000000";
	}
	
	if (Credit_Card_Number.value == "") {
		document.getElementById("Credit_Card_Number").style.backgroundColor = "#736a93";
		document.getElementById("Credit_Card_Number").style.color = "#ffffff";
		errorMessage = "yes";
		Credit_Card_Number.focus();
	} else {
		document.getElementById("Credit_Card_Number").style.backgroundColor = "#ffffff";
		document.getElementById("Credit_Card_Number").style.color = "#000000";
	}
	
	if (BillTo_Email_Address.value == "") {
		document.getElementById("BillTo_Email_Address").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_Email_Address").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_Email_Address.focus();
	} else {
		document.getElementById("BillTo_Email_Address").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_Email_Address").style.color = "#000000";
	}
	
	if (BillTo_Phone_Number.value == "") {
		document.getElementById("BillTo_Phone_Number").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_Phone_Number").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_Phone_Number.focus();
	} else {
		document.getElementById("BillTo_Phone_Number").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_Phone_Number").style.color = "#000000";
	}
	
	if (BillTo_Zip_Code.value == "") {
		document.getElementById("BillTo_Zip_Code").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_Zip_Code").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_Zip_Code.focus();
	} else {
		document.getElementById("BillTo_Zip_Code").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_Zip_Code").style.color = "#000000";
	}
	
	if (BillTo_State.value == "") {
		document.getElementById("BillTo_State").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_State").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_State.focus();
	} else {
		document.getElementById("BillTo_State").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_State").style.color = "#000000";
	}
	
	if (BillTo_City.value == "") {
		document.getElementById("BillTo_City").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_City").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_City.focus();
	} else {
		document.getElementById("BillTo_City").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_City").style.color = "#000000";
	}
	
	if (BillTo_Address.value == "") {
		document.getElementById("BillTo_Address").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_Address").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_Address.focus();
	} else {
		document.getElementById("BillTo_Address").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_Address").style.color = "#000000";
	}
	
	if (BillTo_Last_Name.value == "") {
		document.getElementById("BillTo_Last_Name").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_Last_Name").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_Last_Name.focus();
	} else {
		document.getElementById("BillTo_Last_Name").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_Last_Name").style.color = "#000000";
	}
	
	if (BillTo_First_Name.value == "") {
		document.getElementById("BillTo_First_Name").style.backgroundColor = "#736a93";
		document.getElementById("BillTo_First_Name").style.color = "#ffffff";
		errorMessage = "yes";
		BillTo_First_Name.focus();
	} else {
		document.getElementById("BillTo_First_Name").style.backgroundColor = "#ffffff";
		document.getElementById("BillTo_First_Name").style.color = "#000000";
	}
	
	if (errorMessage != "") {
		alert("Please fill in all required fields.");
		errorMessage = "";
		return false;
	}
}



function validateTalk() {
	name_first = document.talkForm.name_first;
	email_address = document.talkForm.email_address;
	city = document.talkForm.city;
	
	if (name_first.value == "") {
		document.getElementById("name_first").style.backgroundColor = "#736a93";
		document.getElementById("name_first").style.color = "#ffffff";
		errorMessage = "yes";
		name_first.focus();
	} else {
		document.getElementById("name_first").style.backgroundColor = "#ffffff";
		document.getElementById("name_first").style.color = "#000000";
	}
	if (email_address.value == "") {
		document.getElementById("email_address").style.backgroundColor = "#736a93";
		document.getElementById("email_address").style.color = "#ffffff";
		errorMessage = "yes";
		email_address.focus();
	} else {
		document.getElementById("email_address").style.backgroundColor = "#ffffff";
		document.getElementById("email_address").style.color = "#000000";
	}
	if (city.value == "") {
		document.getElementById("city").style.backgroundColor = "#736a93";
		document.getElementById("city").style.color = "#ffffff";
		errorMessage = "yes";
		city.focus();
	} else {
		document.getElementById("city").style.backgroundColor = "#ffffff";
		document.getElementById("city").style.color = "#000000";
	}
	if (errorMessage != "") {
		alert("Please fill in all required fields.");
		errorMessage = "";
		return false;
	}
}
