function new_window(theURL,winName,features) {
  fer = window.open(theURL,winName,features)
}


function js_in_array(the_needle, the_haystack){
  var key = -99;
  for (var i=0;i<the_haystack.length;i++) {
    if (the_haystack[i] == the_needle)  {
      key = i;
      return key;
    }
  }
  return key;
}
