//***********************************************************//
//This function changes the images on mouseover in the top main menu
//***********************************************************//
function cImg(img, action){
	if(action == "over"){
		var str = img.src.substring(0, img.src.length - 4)
		var ext = img.src.substring(img.src.length-4, img.src.length)
		img.src = str + "over" + ext
	}else if(action == "normal"){
		var str = img.src.substring(0, img.src.length - 8)
		var ext = img.src.substring(img.src.length-8, img.src.length)
		ext = ext.substring(4, 8)
		img.src = str + ext
	}
}
//***********************************************************//
function ValidateJobSearch()
{
var valid="true"
 
	if (document.Search.JobTitles.options[document.Search.JobTitles.selectedIndex].text=="Choose a Job Title")
	{	
		window.alert("Please Select a Job Title")
		document.Search.JobTitles.focus()
		valid="false"
	}

	else if (document.Search.Locations.options[document.Search.Locations.selectedIndex].text=="Select a Location")
	{
		window.alert("Please Select a Location")
		document.Search.Locations.focus()
		valid="false"
	}
	
	else if (document.Search.Salarys.options[document.Search.Salarys.selectedIndex].text=="Minimum salary")
	{
		window.alert("Please select a minimum salary")
		document.Search.Salarys.focus()
		valid="false"
	}
	
	if(valid=="true")
	{
		document.Search.submit();
	}

}
function getObj(id){
	if(document.all)
		return document.all[id];
	else
		return document.getElementById(id);
}