
function edit (id,field,edit_text){
	alert (id);
	alert (field);
	alert (edit_text);
}

function top_search(zip){
	
	top_form.zip.value = zip;
	top_form.submit();
}



function submitIt(form) {					

		if (form.message.value == ""){
			alert("Please enter a Message.")
			form.message.focus()
			return false

		}

		if (form.email_from.value == ""){
			alert("Please enter a valid email address.")
			form.email_from.focus
			return false

		}

		var the_at_is_at = form.email_from.value;
		var theindex=the_at_is_at.indexOf("@");
		var theindex2=the_at_is_at.indexOf(".");

		if (theindex == -1 || theindex2==-1)

		{
		alert("Please enter a valid email address");
			form.email_from.focus
			return false
		}
}


// The below functions were added by KRB Design on 08/21/08
// Its purpose is to swap alternate images

function swap(newsrc)  {
	OriginalWidth = MainProductImage.width;
	OriginalSource = MainProductImage.src;
	MainProductImage.src = newsrc.src;
	MainProductImage.width = OriginalWidth;
	}

function swapback(newsrc)  {
	MainProductImage.src = OriginalSource;
}