function CheckPlugin(plugin, theURL, altURL, IEGoesToURL) {
  if ((navigator.plugins && navigator.plugins[plugin]) ||
      (IEGoesToURL &&
       navigator.appName.indexOf('Microsoft') != -1 &&
       navigator.appVersion.indexOf('Mac') == -1 &&
       navigator.appVersion.indexOf('3.1') == -1)) {
    if (theURL.length>2) window.location = theURL;
  } else {
    if (altURL.length>2) window.location = altURL;
  }
  document.ReturnValue = false;
}

function OpenWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function OpenURL() {
  for (var i=0; i< (OpenURL.arguments.length - 1); i+=2)
    eval(OpenURL.arguments[i]+".location='"+OpenURL.arguments[i+1]+"'");
  document.ReturnValue = false;
}
