<!--
function validation_quickjob()
{
	var x=document.postjob;
	if (x.txtjobTitle.value=="")
	{
		alert("Job Title can not be left blank.");
		x.txtjobTitle.focus();
		return false;
	}
	if(x.EmpType.value=="")
	{
		alert("Please select Job Type.");
		y.selectedIndex=-1;
		y.focus();
		return false;
	}

	if(x.location.value=="")
	{
		alert("Please select Location.");
		x.focus();
		return false;
	}

	y=document.forms[0].elements['cat[]'];
	if(y.selectedIndex==-1)
	{
		alert("Please select Job Category.");
		y.selectedIndex=-1;
		y.focus();
		return false;
	}
	if (x.contactname.value=="")
	{
		alert("Contact Name can not be left blank.");
		x.contactname.focus();
		return false;
	}
	if (x.email.value=="")
		{
			alert("Contact E-mail can not be left blank.");
			x.email.focus();
			return false;
		}
	if(x.email.value!="")
	{
		if (EmailCheckjs(x.email.value) == false)
		{
			alert("Invalid E-mail Address");
			x.email.focus ();
			return false;
		}
	}
	if(x.cemail.value=="")
	{
		alert("Confirm E-mail can not be left blank.");
		x.cemail.focus();
		return false;
	}
	if(x.cemail.value!=x.email.value)
	{
		alert ("Your E-mail doesn't match to your re-type E-mail")
		x.cemail.focus();
		return false;
	}

	return true;
}

function EmailCheckjs(argvalue)
		{
			if (argvalue.indexOf(" ") != -1)
			  return false;
			else if (argvalue.indexOf("@") == -1)
			  return false;
			else if (argvalue.indexOf("@") == 0)
			  return false;
			else if (argvalue.indexOf("@") == (argvalue.length-1))
			  return false;
			var arrayString = argvalue.split("@");
			if(arrayString.length > 2)
			  return false;
			if (arrayString[1].indexOf(".") == -1)
			  return false;
			else if (arrayString[1].indexOf(".") == 0)
			  return false;
			else if (arrayString[1].charAt(arrayString[1].length-1) == ".") {
			  return false;
			}
		  return true;
	}
	
	function employeeValidation()
	{
		var x=window.document.employerForm;
		if (x.lname.value=="")
		{
			alert("Enter the Login Name.");
			x.lname.focus();
			return false;
		}
		if (x.pass.value=="")
		{
			alert("Enter the Password.");
			x.pass.focus();
			return false;
		}
	}
	function jobseekerValidation()
		{
			var x=window.document.jobseekerForm;
			if (x.lname.value=="")
			{
				alert("Enter the Login Name.");
				x.lname.focus();
				return false;
			}
			if (x.pass.value=="")
			{
				alert("Enter the Password.");
				x.pass.focus();
				return false;
			}
	}
	function jobSearchValidation()
	{
		if (document.jobSearch.txtKeywords.value=="")
		{
			alert("Please enter Keyword.");
			document.jobSearch.txtKeywords.focus();
			return false;
		}
		else
		{
			document.jobSearch.submit();
		}
  }
	function jobCodeValidation()
	{
		if (document.jobCodeform.jobcode.value=="")
		{
			alert("Please enter the Job Code.");
			document.jobCodeform.jobcode.focus();
			return false;
		}
		else
		{
			var code=document.jobCodeform.jobcode.value;
			document.jobCodeform.action="jobsearch.php?code="+code;
			document.jobCodeform.submit();
		}
	}
	function resumeValidation()
	{
		if (document.resumeform.txtKeywords.value=="")
		{
			alert("Please enter the keyword(s).");
			document.resumeform.txtKeywords.focus();
			return false;
		}
		else
		{
			var code=document.jobCodeform.jobcode.value;
			document.jobCodeform.action="jobsearch.php?code="+code;
			document.jobCodeform.submit();
		}
	}
	
  function checkAtleastOne()
	{
			var atleastone=false;
			if(document.AdvanceJob.txtKeywords.value!="")
			{
				atleastone=true;
			}
			var y=document.forms[0].elements['locationCombo[]'];
			if(!(y.selectedIndex==-1))
			{
				atleastone=true;
			}
			if(document.AdvanceJob.specificlocationCombo.value!="")
			{
				atleastone=true;
			}
			y=document.forms[0].elements['cboIndustry[]'];
			if(!(y.selectedIndex==-1))
			{
				atleastone=true;
			}
			if(!(document.AdvanceJob.cboLevel.options[document.AdvanceJob.cboLevel.selectedIndex].value ==-1))
			{
				atleastone=true;
			}
			if(!(document.AdvanceJob.cboDegree.options[document.AdvanceJob.cboDegree.selectedIndex].value ==-1))
			{
				atleastone=true;
			}
			if(!(document.AdvanceJob.cboWorkExp1.options[document.AdvanceJob.cboWorkExp1.selectedIndex].value ==-1))
			{
				atleastone=true;
			}
			if(!(document.AdvanceJob.postWeek.options[document.AdvanceJob.postWeek.selectedIndex].value ==-1))
			{
				atleastone=true;
			}
      if(!(atleastone))
			{
				alert("Select atleast one parameter for your Job search");
			}
      document.AdvanceJob.action="jobsearch.php?search=advance"
      return atleastone;

	}
  function validation_search()
		{
			var xx = document.jobResultsForm;
			var flag=0;
			for (i=0;i<xx.length;i++)
			{
				var el = xx.elements[i];
					if (el.name == 'jobselect[]')
							if (el.checked == true)
				 		{
				 			flag=10;
				 		}
			}
			if (flag==0)
			{
				alert("Please select any Job");
				return false;
			}
			xx.submit();
	}
	function checkAll()
	{
		var xx = document.jobResultsForm;
		for (i=0;i<xx.length;i++)
		{
			var el = xx.elements[i].name;
			if (el.indexOf("job")!= -1)
			{
				xx.elements[i].checked=true;
			}
		}
	}
	function unCheckAll()
	{
		var xx = document.jobResultsForm;
		for (i=0;i<xx.length;i++)
		{
			var el = xx.elements[i].name;
			if (el.indexOf("job")!= -1)
			{
				xx.elements[i].checked=false;
			}
		}
	}
//-->