function SubmitForm() 
{
	document.quickNav.submit();
}

function categoryRefresh() 
{
	document.quickSearch.submit();
}

function logoCategory() 
{
	document.category.submit();
}

function SubmitSearch() 
{
	document.results.submit();
}

function resultSubmit() 
{
	var themessage = "You are required to complete the following fields: "
	var error = "no";
	
	if (document.category.selectCategory.value == "") {
		themessage = themessage + " - Main Category";
		error = "yes";
	}
	
	if (error == "yes") {
		alert (themessage);
		return false;
	}
	
	document.resultForm.selectCategory.value = document.category.selectCategory.value;
	document.resultForm.subCategory.value = document.category.subCategory.value;
	
	document.resultForm.submit();
	return true;
}

// Add/Mod Users in Admin area
function userAdmin() 
{
	
	var themessage = "You are required to complete the following fields: "
	var error = "no";
	
	if (document.form.email.value == "") {
		themessage = themessage + " - Username";
		error = "yes";
	}
	
	if (document.form.password.value == "") {
		themessage = themessage + " - Password";
		error = "yes";
	}
	
	if (document.form.access_level.value == "") {
		themessage = themessage + " - Access Level";
		error = "yes";
	}
	
	if (error == "yes") {
		alert (themessage);
		return false;
	}

	document.form.submit();
	return true;
    
}

// Disable Right Click
function right(e) {
	if (navigator.appName == 'Netscape' &&
	(e.which == 3 || e.which == 2))
	return false;
else if (navigator.appName == 'Microsoft Internet Explorer' &&
	(event.button == 2 || event.button == 3)) {
	alert("I'm sorry, The Right click option on your mouse has been disabled to protect the images.");
	return false;
}
	return true;
} 
  
document.onmousedown=right;
document.onmouseup=right;
if (document.layers) window.captureEvents(Event.MOUSEDOWN);
if (document.layers) window.captureEvents(Event.MOUSEUP);
window.onmousedown=right;
window.onmouseup=right;
// END Disable Right Click

// Only on more_info.php
function moreInfo() 
{
	var themessage = "You are required to complete the following fields: "
	var error = "no";
	
	if (document.form.contact.value == "") {
		themessage = themessage + " - Contact Name";
		error = "yes";
	}
	
	if (document.form.phone.value == "") {
		themessage = themessage + " - Phone";
		error = "yes";
	}
	
	if (document.form.email.value == "") {
		themessage = themessage + " - Email";
		error = "yes";
	}
	
	if (error == "yes") {
		alert (themessage);
		return false;
	}
	
	document.form.submit();
	return true;
}