  function Hilite(name,over)
  {
	  if(window.document.images) 
	  {
		  if (over)
			  window.document.images[name].src = "images/" + name + "a.gif";
		  else
			  window.document.images[name].src =  "images/" + name + ".gif";
	  }
  }
  
	/*validates the placeorder.asp page*/
	function validatePlaceOrder(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 (theForm.CompanyName.value == "")
		  {
		    alert("Please enter your company name.");
			theForm.CompanyName.focus();
			  return false;
		  }
		  
		  if (theForm.PositionTitle.value == "")
		  {
		  	alert("Please enter a position title.");
			theForm.PositionTitle.focus();
			  return false;
		  }
		  
		  if (theForm.StartDate.value == "")
		  {
		  	alert("Please enter a start date title.");
			theForm.StartDate.focus();
			  return false;
		  }
		   if (theForm.Description.value == "")
		  {
		  	alert("Please enter a job description.");
			theForm.Description.focus();
			  return false;
		  }
		  
	      if (theForm.Description.value.length > 1000) 
			{
	      alert('Please limit job description to 1000 characters or less. Please remove '+(theForm.Description.value.length - 1000)+ ' characters');
			theForm.Description.focus();
	      return false;
			}							
		}
		//-->
		
	/*validates the contactus.asp page*/
  	<!--
	function validateContactUs(theForm)
		{
		  if (theForm.topic.value == "")
			{
			  alert("Please select a topic.");
			theForm.topic.focus();
				return false;
			}
		  if (theForm.WhereToSend.value == "")
			{
			  alert("Please select a location to send your information.");
			theForm.WhereToSend.focus();
				return false;
			}
		  if (theForm.yourname.value == "")
			{
			  alert("Please enter your name.");
			theForm.yourname.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;
		}

		}
	//-->
	/* The code below is for default.asp in the job portal folder*/
	<!-- Begin
	function checkAll(field){
		//if only one checkbox exists, it is not an array
		if(typeof(field.length) == "undefined")
		{
			field.checked = true;
		}
		else
		{
			for (i = 0; i < field.length; i++)
				field[i].checked = true ;
		}
	}

	function uncheckAll(field){
		//if only one checkbox exists, it is not an array
		if(typeof(field.length) == "undefined")
		{
			field.checked = false;
		}
		else
		{
			for (i = 0; i < field.length; i++)
				field[i].checked = false ;
		}
	}

	function confirmSubmit() 
		{
			var agree=confirm("Are you sure you would like to delete these jobs?");
			if (agree)
				return true;
			else
				return false;
		}
	function confirmSubmit() 
		{
			var agree=confirm("Are you sure you would like to delete this job?");
			if (agree)
				return true;
			else
				return false;
		}		
		//-->
		
	<!--
	function validateJPPostjob(theForm)
	{
	  if ((theForm.SystemID.value == "") || (theForm.JobTitle.value == "") || (theForm.JobDescription.value == "") || (theForm.Compensation.value == "") || (theForm.Notes.value == ""))
	  {
	    alert("Please complete all fields.");
		  return false;
	  }
	  if ((theForm.Region.value == "0") || (theForm.JobType.value == "0") || (theForm.JobTerm.value == "0"))
	  {
		alert("Please answer each question.");
		  return false;
	  }										
      if (theForm.Notes.value.length > 500) 
	  {
        alert('Please limit notes to 500 characters or less. Please remove '+(theForm.Notes.value.length - 500)+ ' characters');
          return false;
	  }							
	}
	//-->
	function confirmDelete() 
	 {
		var agree=confirm("Are you sure you want to delete this candidate?");
		if (agree)
			return true ;
		else
			return false ;
	 }
		