function OpenWindow(theURL,winName,winCenter,x,y,features)
  {
  var param = "width=" + x + ",height=" + y + ( features=="" ? "" : "," + features );
  var win = window.open(theURL,winName,param);

  if (theURL.indexOf('http://') == -1)
    {
    if (winCenter) win.moveTo((screen.width-x)/2,(screen.height-y)/2);
    win.focus();
    }
  }

function submitselected(affected_element)
  {
  if(affected_element.options[affected_element.selectedIndex].value!="-")
    {
    affected_element.form.submit();
    }
  }
