function ChangeImage(strPath) {	
	window.document.forms[0].imgItemImage.src = strPath.replace('\\','/');
}

function RunLogin() {
	window.document.forms[0].submit();
}

function RunCustomerSave()
{
	if(window.document.forms[0].CustomerUsername.value == "") {
		alert("Please provide a username so you can log in again later.");
		window.document.forms[0].CustomerUsername.focus();
	} else if(window.document.forms[0].CustomerPassword.value == "") {
		alert("Your password cannot be blank.");
		window.document.forms[0].CustomerPassword.focus();
	} else if(window.document.forms[0].CustomerPassword.value != window.document.forms[0].CustomerConfirm.value) {
		alert("The two passwords do not match.");
		window.document.forms[0].CustomerPassword.focus();
	} else if(window.document.forms[0].CustomerEmail.value == "" && window.document.forms[0].CustomerPhone.value == "") {
		alert("Please provide either your phone number or email so we can contact you.");
	} else {
		window.document.forms[0].submit();
	}
}




function ChangeEventType(intType, strDate, strPath) {

	window.location = strPath + "?event=" + intType + "&month=" + strDate;

}


function RunSubmitContactForm() {

	window.document.forms[0].action = window.document.forms[0].action + "&contactformsubmit=1";
	window.document.forms[0].submit();

}


function runSearchCheck() {

	var objSearch = window.document.getElementById("CW_Search_All_Site_Content");
	
	if(objSearch.value == "Search Entire Site")
	{
		objSearch.value = "";
	}	
}

function RunSiteWideSearch() {

	var objSearch = window.document.getElementById("CW_Search_All_Button");
	
	objSearch.value = "Search Site";
	window.document.forms[0].submit();
	
}