	function ExecuteSearch(argSearchType){
		if (argSearchType == 'jobtitle'){
			if (document.frmMain.KeywordField.value == ''){
				alert ('Enter search criteria first!');
				return
			}
			document.frmMain.hiddencriteria.value = document.frmMain.KeywordField.value;
		}
		document.frmMain.submit();
	}

	function rollOver(thisRow, thisColour) {
		thisRow.style.backgroundColor = thisColour;
	}		

	function keyPresses(argsearchtype) {
		if (event.keyCode==13){
			if (document.frmMain.KeywordField.value == ''){
				alert ('Enter search criteria first!');
				return;
			}
			document.frmMain.hiddencriteria.value = document.frmMain.KeywordField.value;
		
			document.frmMain.submit();
		}	
	}

	function TypeChanged(){
		document.frmMain.submit();
	}
	
	function SectorChanged(){
		document.frmMain.submit();
	}
	
	function LocationChanged(){
		document.frmMain.submit();
	}
	
	function Trim(TRIM_VALUE){
        if(TRIM_VALUE.length < 1){
        	return"";
        }
        TRIM_VALUE = RTrim(TRIM_VALUE);
        TRIM_VALUE = LTrim(TRIM_VALUE);

     	if(TRIM_VALUE==""){
      		return "";
       	}
       	else {
        		return TRIM_VALUE;
	       	}
	}
