Hover = function() {
	var LIs = document.getElementById("theform").getElementsByTagName("LI");
	for (var i=0; i<LIs.length; i++) {
		LIs[i].onmouseover=function() {
			this.className+=" hover";
		}
		LIs[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
	var LABELs = document.getElementById("theform").getElementsByTagName("LABEL");
	for (var i=0; i<LABELs.length; i++) {
		LABELs[i].onmouseover=function() {
			this.className+=" hover";
		}
		LABELs[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" hover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", Hover);

function search_form_check(theform)
	{
		empList = this.channel_code_atleast;
		emp_mkt_total = empList.length;
		selTotal = 0;
				
		for (i = 0; i < emp_mkt_total; i++)
			{
				if (empList[i].checked)
				{
				selTotal++;
				}
			}
		
		if (selTotal > 4)
			{
				alert("Please select 4 or fewer disciplines");
				return false;
			}
		
		if ((selTotal == 0) )
			{
				alert("Please enter some search criteria");
				return false;
			}
		
		return true;
}
function uncheck_all_jobtypes(the_form)
{
    var jobtype_total = the_form.jobtype.length;

    for (i = 0; i < jobtype_total; i++)
    {
	if (the_form.jobtype[i].value != "E")
        {
	    the_form.jobtype[i].checked = false;
	}
    }
}

function uncheck_jobtype_all(the_form)
{
    var jobtype_total = the_form.jobtype.length;

    for (i = 0; i < jobtype_total; i++)
    {
	if (the_form.jobtype[i].value == "E")
        {
	    the_form.jobtype[i].checked = false;
        }
    }
}
