function checkSubmit(){
	
	var pass=true;
	//alert('in check');
	//alert(document.frmSearch.JobSector.value);
	if (document.frmSearch.JobSector.value=='Job Sector...') {
		//alert("failed job sector");
		if (document.frmSearch.JobLocation.value=='Location...') {
			//alert("failed Location");
			if (document.frmSearch.JobSalRange.value=='c:' | document.frmSearch.JobSalRange.value=='p:' | document.frmSearch.JobSalRange.value==':') {
				//alert("failed Salary");
				if (document.frmSearch.JobVacType.value=='Job Type...') {
					//alert("failed Vacancy");
					pass=false;
				}
				else {
					pass=true;
				}
			}
			else {
					pass=true;
			}
		}
		else {
					pass=true;
		}
	}
	else {
		pass=true;
	}
	if (!pass) {
		alert("please select a search criteria");
		return false;
		}
	else {
		document.frmSearch.submit();
		
	}
}

var rowColor;

function row_over (obj) {
	rowColor = obj.style.backgroundColor;
	obj.style.backgroundColor = "#f0ebf5"
}

function row_out (obj) {
	obj.style.backgroundColor = rowColor;
}
