function ow_sc (url, w, h, nev) {
  var leftpos
  var toppos
  w = w + 20
  h = h + 20;
  leftpos = (screen.availWidth / 2) - (w / 2);
  toppos = (screen.availHeight / 2) - (h / 2);
  popupwindow =  window.open (url, nev, 'height=' + h + ',width=' + w + ',left=' + leftpos + ',scrollbars=yes,top=' + toppos);
  popupwindow.focus ();
}

function ow (url, w, h, nev) {
  var leftpos
  var toppos 
  w = w + 20
  h = h + 20;
  leftpos = (screen.availWidth / 2) - (w / 2);
  toppos = (screen.availHeight / 2) - (h / 2);
  popupwindow = window.open (url, nev, 'height=' + h + ',width=' + w + ',left=' + leftpos + ',scrollbars=no,top=' + toppos);
  popupwindow.focus ();
}

function ow_sct (url, w, h, nev) {
  var leftpos
  var toppos
  w = w + 20
  h = h + 20;
  leftpos = (screen.availWidth / 2) - (w / 2);
  toppos = (screen.availHeight / 2) - (h / 2);
  popupwindow = window.open (url, nev, 'height=' + h + ',width=' + w + ',left=' + leftpos + ',scrollbars=yes,toolbar=yes,top=' + toppos);
  popupwindow.focus ();
}

function ape_search () {
  // Google
  if (document.forms['form_search'].search_type['1'].checked)
    {
      window.open ("http://www.google.com/search?q=" + document.forms['form_search'].search_text.value,  "google_search", "");
    }
  else
    {
      document.forms['form_search'].submit ();
    }
}

