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;
}

function CheckJob()
{
	var msg = "";



	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 += " Evening Phone\n";


	var location_check = 0;
	if (document.getElementById("location_burbank").checked) location_check++;
	if (document.getElementById("location_redondo").checked) location_check++;
	if (document.getElementById("location_santa_monica").checked) location_check++;
	if (document.getElementById("location_studio_city").checked) location_check++;
	if (document.getElementById("location_valencia").checked) location_check++;

	if (location_check == 0)
	{
		msg += " Location\n";
	}



	if (document.getElementById("position").value=="")
		msg += " Position\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.job.reset();
}

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