			
/*disables right click and or gives copy write message over images */

function disableclick(e) {
	if (document.all) { // required for IE 6 and lower
		if (event.button == 2 || event.button == 3) {
			if (event.srcElement.tagName=="IMG"){
				alert("\nSorry, No Right Click is allowed over Copyright Protected Images.\n");
				return false;
			}
		}
	}
	else if (document.getElementById){
		if (e.which == 3 && e.target.tagName == "IMG"){
			alert("\n Images on this site are Copyright Protected.\nPlease do not duplicate without authorization.");
			return false;
		};
	}
}

function associateimages(){
	for(i=0;i<document.images.length;i++) { 
		document.images[i].onmousedown=disableclick;
	};
}

if (document.all) { // required for IE 6 and lower
	document.onmousedown=disableclick;		
}
else if (document.getElementById) { // activates upon start of page in firefox
	document.onmouseup=disableclick;

};

function ValidateForm() {	
	var txtMessage = document.getElementById("txtMessage");
	var txtContactInfo = document.getElementById("txtContactInfo");
	if (txtMessage.value === "") {
		alert("Please let us know what you are contacting us about so we can best respond to you.");
		txtMessage.focus();
		return false;
	}
	if (txtContactInfo.value === "") {
		alert("You must enter an email or phone number so we can respond to your question.");
		txtContactInfo.focus();
		return false;
	}
	return true;
}
