// constants
_blank = "_blank"

// redirect browser to the selected value from the List (where you must set: onchange="GoToValue(this)")
function GoToValue(List){
  if (List.selectedIndex >= 0){var ValueURL = List.options[List.selectedIndex].value;
    if (ValueURL){top.location.href=ValueURL;return true;}
}}

// Change the content of the tag with entered id to the string str
function ChangeInnerHTML (id, str){
  if (document.all) {document.all(id).innerHTML = str;}
  else if (document.getElementById) {document.getElementById(id).innerHTML = str;}
}

function AddParam (form){
  // if the jobref have the right prefix
  if (is_prefix(form.q.value.substr(0,4))){				
    // change the SC param value to 1
		form.sc.value = 1;
  }
  else form.sc.value = 0;
}


