// Check all checkboxes
	function checkAll(field)
	{
		for (i = 0; i < field.length; i++)
			field[i].checked = true ;
	}

// Uncheck all checkboxes
	function uncheckAll(field)
	{
		for (i = 0; i < field.length; i++)
			field[i].checked = false ;
	}

// Confirm any deletions
	function confirmDelete(msg)
	{
		var choice = confirm(msg);
		if(choice)
			return true;
		else
			return false;
	}
	
function confirmResumeUpload(frm)
{
	if(frm.file.value == '')
	{
		alert('You must browse for your resume to upload before you can continue.');
		return false;
	}
}

// Slideshow preferrences - speed & fade duration
	var slideShowSpeed = 5000 // (milliseconds)
	var crossFadeDuration = 5 // (seconds)

// Specify the image files to add more images, just continue the pattern, adding to the array below
	var Pic = new Array()
	Pic[0] = 'images/officepeople.jpg'
	Pic[1] = 'images/admin.jpg'
	Pic[2] = 'images/box.jpg'
	Pic[3] = 'images/mailroom.jpg'

// =======================================
// do not edit anything below this line
// =======================================
	var timer
	var j = 0
	var pictureCount = Pic.length
	
	var preLoad = new Array()
	for (i = 0; i < pictureCount; i++)
	{
		preLoad[i] = new Image()
		preLoad[i].src = Pic[i]
	}

	function runSlideShow()
	{
		if (document.all)
		{
			document.images.SlideShow.style.filter="blendTrans(duration=2)"
			document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
			document.images.SlideShow.filters.blendTrans.Apply()      
		}
		document.images.SlideShow.src = preLoad[j].src
		if (document.all)
		{
			document.images.SlideShow.filters.blendTrans.Play()
		}
		j += 1
		if (j > (pictureCount-1)) j=0
		timer = setTimeout('runSlideShow()', slideShowSpeed)
	}

function validateContactUs(theForm){

	if (theForm.FirstName.value == ""){
		alert("Please enter your First Name!");
		theForm.FirstName.focus();
		return false;
	}

	if (theForm.LastName.value == ""){
		alert("Please enter your Last Name!");
		theForm.LastName.focus();
		return false;
	}

	if(theForm.email.value == ""){
		alert("Please enter your email address.");
		theForm.email.focus();
		return false;
	}

	if(!chkForEmail(theForm.email.value)){
		alert("Please enter a valid email address.");
		theForm.email.focus();
		return false;
	}

}

