function clear_form()
{
	document.getElementById("name").value="";
	document.getElementById("evening_phone").value="";
	document.getElementById("day_phone").value="";
	document.getElementById("email").value="";
	document.getElementById("location").selectedIndex=0;
	document.getElementById('comments').value = "";
}
			
function contact_us_form()
{
	var msg = "";
	
	if (document.getElementById("location").value=="")
		msg += " Select Location\n";	
	
	if (document.getElementById("name").value=="")
		msg += " Name\n";
	
	if (document.getElementById("email").value=="")
		msg += " Contact Email\n";
	
	if (document.getElementById("day_phone").value=="")
		msg += " Day Phone\n";			
	if (document.getElementById("evening_phone").value=="")
		msg += " Home Phone\n";
	if (document.getElementById("security_code").value=="")
		msg += " Security Code\n";
	
	if (msg!="")
	{
		alert("The following fields are required:\n\n"+msg+"\n");
		return false;
	} else
	{
		return true;
	}
}


function reset_form()
{
if ( confirm("Are you sure that you want to reset this form?") )
{
window.document.contact.reset();
}

else
{
window.document.contact.cname.focus();
}
}
