var newwindow;
function popup(url)
{
    newwindow=window.open(url,'name','height=380, width=350, scrollbars=yes, toolbar=no, menubar=no, resizable=yes');
    if (window.focus) {newwindow.focus()}
}
function popuppic(url)
{
    newwindow=window.open(url,'name','height=380,width=350, scrollbars=no, toolbar=no, menubar=no, resizable=yes');
    if (window.focus) {newwindow.focus()}
}

// Bookmarking
function bookmark(url,title){
  if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4)) {
  window.external.AddFavorite(url,title);
  } else if (navigator.appName == "Netscape") {
    window.sidebar.addPanel(title,url,"");
  } else {
    alert("Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark");
  }
}