
function ChangeImage(strPath) {	
	window.document.forms[0].imgItemImage.src = strPath.replace('\\','/');
}

function RunLogin() {



	if(window.document.forms[0].login_password.value != "") {

		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 RunPrint() {
	
	objWindow = window.open();
	objWindow.document.write(window.document.getElementById('divPrint').innerHTML);
	
}

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 RunSiteWideSearch() {

	var objSearch = window.document.getElementById("CW_Search_All_Button");
	
	objSearch.value = "Search Site";
	window.document.forms[0].submit();
	
}


function ChangeMainGalleryImage(path) {

var imgGalleryMain = window.document.getElementById("imgGalleryMain");

imgGalleryMain.src = path;

}

