// Search Box

function formVooDoo(myField)
{
	if(myField.defaultValue==myField.value)
	myField.value='';
	myField.className='text user-input';
}

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

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

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);
  }

  clearForm();

}

function register(theform)
{
	if (document.forms[theform].email.defaultValue == document.forms[theform].email.value)
	{
		alert("Please enter your email address.");
		document.forms[theform].email.focus();
		return (false);
	}
}

function OpenMonitor(name)
{
	nname=navigator.userAgent;
	features = "toolbar=1,location=0,directories=0,status=0,menubar=1,scrollbars=1,copyhistory=0,width=795,height=530,top=20,left=0,resizable=1";
	nversion=navigator.appVersion.substring(0,1);
	if ((nname.lastIndexOf("MSIE")==-1) || (nversion!=4))
	{
		myWindow = window.open(name,"my_jobsite_sub_window",features);
		myWindow.focus();
	}
	else // IE 4 (but not 3 or 5) throws a security exception
	{    // when focusing on a window on another domain
	     //
		myWindow = window.open(name,"my_jobsite_sub_window",features);
	}
}
