// #@(#)vacsearch.js	1.4 17:13:17,07/11/23 (yy/mm/dd)
function disallowPleaseSelect()
{
  if (document.keywordSearch.channel_page_code.options[document.keywordSearch.channel_page_code.selectedIndex].value == "")
  {
	alert("Please select a sector.");
        document.keywordSearch.channel_page_code.focus();
	return(false);
  }
}

function clearForm()
{
  if (document.Search.fp_skill_include.defaultValue == document.Search.fp_skill_include.value)
  {
    document.Search.fp_skill_include.value = '';
  }

  if (document.Search.location_include.defaultValue == document.Search.location_include.value)
  {
    document.Search.location_include.value = '';
  }
}

function OpenMonitor(uri)
{
    // toolbar=1  for back/forward buttons with FF & IE6
    // location=1 for back/forward buttons with IE7 
    // status=1   for IE6
    var options = "toolbar=1,location=1,directories=0,status=1,menubar=0,scrollbars=1,copyhistory=0,width=795,height=550,top=0,left=0";
    var myWindow = window.open(uri, "my_jobsite_sub_window", options);
    myWindow.focus();
}

function change_search_format(url)
{
   window.location = url;
}

// Used to clear the default (pre-filled) value of a text input box on a form - Added by JP on 11/01/2007
function formVooDoo(myField)
{
	if(myField.defaultValue==myField.value)
	myField.value='';
}

