function findJobs(str,defValue) {

    var frm = document.getElementById("searchForm");
    if(str == "zip") {
      var curValue = frm["zip"].value;
      if(curValue != "" && curValue != defValue) {
            frm["city"].value = "";                        
            frm["state"].selectedIndex = 0;            
            frm.submit();
      }
    } else if(str == "city") {
       var curValue = frm["city"].value;
       if(curValue != "" && curValue != defValue) {
            //frm["city"].value = escape(curValue);
            frm["zip"].value = "";                        
            frm["state"].selectedIndex = 0;
            frm["expand"].value = "true";
            frm.submit();
       }
    } else if(str == "state") {     
        frm["zip"].value = "";                        
        frm["city"].value = "";
        frm["expand"].value = "true";
        frm.submit();  
    } 
}

function findJobsByCatChoice() {
    
    var choice = "";
    var frmChoice = document.forms['frmCatChoice'];
    
    for(i = 0; i < frmChoice.catchk.length; i++) {
        if(frmChoice.catchk[i].checked) {        
            choice += frmChoice.catchk[i].value + "/";   
        }
    }
    
    document.forms['frmCatSearch'].catlist.value = choice;
    document.forms['frmCatSearch'].submit();
}

function expandSearch(val) {
    if(val == 0) {
        document.getElementById('form_row_hidden_container').style.display='block';
        document.getElementById('open_link').style.display='none'; 
    } else {
        document.getElementById('open_link').style.display='block';
        document.getElementById('form_row_hidden_container').style.display='none';
    }
    return false;
}

function toggleClass(id, cssClass) {
	
	var id = document.getElementById(id);
	if (id.className == cssClass) {
		id.className = '';
	} else {
		id.className = cssClass;
	}
	
}