// aztacos.js

function PreLoadImages()
{
	img11=new Image();
	img12=new Image();
	img13=new Image();
	img21=new Image();
	img22=new Image();
	img23=new Image();
	img31=new Image();
	img32=new Image();
	img33=new Image();
	img41=new Image();
	img42=new Image();
	img43=new Image();
	img51=new Image();
	img52=new Image();
	img53=new Image();

	img11.src="./img/about_us_u.gif";
	img12.src="./img/about_us_s.gif";
	img13.src="./img/about_us_d.gif";
	img21.src="./img/careers_u.gif";
	img22.src="./img/carerrs_s.gif";
	img23.src="./img/carerrs_d.gif";
	img31.src="./img/locations_u.gif";
	img32.src="./img/locations_s.gif";
	img33.src="./img/locations_d.gif";
	img41.src="./img/menu_u.gif";
	img42.src="./img/menu_s.gif";
	img43.src="./img/menu_d.gif";
	img51.src="./img/employee_login_u.gif";
	img52.src="./img/employee_login_s.gif";
	img53.src="./img/employee_login_d.gif";
}

function ShowToolTip(id,parent)
{
	// Make sure they have a description to display
	if(document.getElementById(id).innerHTML.length==0)
	{
		return;
	}
	
	document.getElementById(id).style.display='block';
	document.getElementById(parent).style.zIndex=25;
}

function HideToolTip(id,parent)
{
	document.getElementById(id).style.display='none';
	document.getElementById(parent).style.zIndex=24;
}

// Used in apply.php
function CheckInputs()
{
	if(document.getElementById('name').value.length == 0 ||
		document.getElementById('contact').value.length == 0 ||
		document.getElementById('avail').value.length == 0 ||
		document.getElementById('last').value.length == 0)
	{
		alert('ERROR : All items are required.');
		return false;
	}

	return true;
}