var showValidator = false;

var validatorHTML = "<p><a href=\"http://validator.w3.org/check" +
  "?uri=referer\"><img\n" +
	"  src=\"http://www.w3.org/Icons/valid-xhtml10\"\n" +
	"  alt=\"Valid XHTML 1.0!\" height=\"31\" width=\"88\" /></a></p>\n\n";

/**
 *  Display browser-specific information about bookmarks (fixed broken version
 *  inherited from Yahoo!)
 *
 *  @param string id    ID attribute of image element to change
 *  @param object img   image object
 *
 *  @return int If object external exists then return 1 else return 0.
 */
function yg_bookmark()
{
  var sn = "Please hit Control-D to bookmark this page.";   //NS, Gecko
  var ss= "Please hit Apple-D to bookmark this page.";  //Safari
  var so = "Please click on the \"Bookmarks\" menu item and select " +
    "\"Add page here...\"";   //Opera

  if (typeof window.external != "undefined" && 
      typeof window.external.AddFavorite != "undefined") {
    window.external.AddFavorite(location.href, document.title);
    return 1
  }
  else {
    var b = navigator.userAgent;

    if (b.indexOf("Netscape") != -1 || 
        b.indexOf("Mozilla") != -1 && 
        b.indexOf("Gecko") != -1) {
      window.alert(sn);
    }
    else if (b.indexOf("Safari") != -1 ||
        b.indexOf("MSIE 5.23") != -1) {
      window.alert(ss);
    }
    else if(b.indexOf("Opera") != -1) {
      window.alert(so);
    }
    return 0;
  }
}

function openWindow(url)
{
  var features = "width=640,height=480,resizable," +
    "location,menubar,scrollbars,status,toolbar";

  window.open(url, "", features);
}
