function Describe (term) {
    alert (term);
}

function Hint (term) {
    window.status = term;
    return true;
}

function ClearHint () {
    window.status = "";
    return true;
}

function ShowPic (image, auction, filename, desc, x, y) {
    var fpath;
    if (filename.search(/not_found/) != -1) {
      fpath = '/images/tn_large_not_found.gif';
      x = 384;
      y = 288;
    } else {
      fpath = '/images/' + auction + '/tn_large/' + filename;
    }
    image.src = fpath;
    image.width = x;
    image.height = y;
    image.alt = desc;
return;

    var w = 480, h = 340;

    if (document.all || document.layers) {
       w = screen.availWidth;
       h = screen.availHeight;
    }
    var popW = x+21, popH = y+27;

    var leftPos = (w-popW)/2, topPos = (h-popH)/2;

    var w = window.open ("/members/cyberlots/qscreen.mpl?aid=" + auction + "&filename=" + filename + "&title=" + desc, "Damage", "toolbar=no,location=no,directories=no,resizable=yes,width=" + (popW) + ",height=" + (popH) +",left=" + leftPos + ",top=" + topPos + ",screenX=" + leftPos + ",screenY=" + topPos);
    if (w.focus != null) {
        w.focus ();
    }
}

function ShowImage (imagename, desc) {
    var w = window.open (imagename, desc, "toolbar=no,location=no,directories=no,resizable=yes,width=405,height=315");
    if (w.focus != null) {
        w.focus ();
    }
}

function emailWindow () {
    window.open ('/email.mpl?', 'ManEmailWindow', 'Height=620, width=760, toolbar=no, scrollbars=yes, directories=no, resizable=yes, location=no, menubar=no');
}

function changeLocation () {
    top.location=document.PageSelector.SelectedPage.options[document.PageSelector.SelectedPage.selectedIndex].value;
}

function findLeft(width) {
    return Math.floor( screen.width / 2 - width / 2 );
}

function findTop(height) {
    return Math.floor( screen.height / 2 - height / 2 );
}

/********************************************************
 BEGIN - ECR
********************************************************/
var ecrPopup;
function ECRWindow(item) {
  var w = 650;
  var h = 480;
  ecrPopup = window.open(
    "../powersearch/ecr.mpl?item_id=" + escape(item),
    "ecr", "" +
    "width="  + w           + "," +
    "height=" + h           + "," +
    "left="   + findLeft(w) + "," +
    "top="    + findTop(h)  + "," +
    "resizable=yes,location=no,menubar=no,status=no,toolbar=yes,scrollbars=yes"
  );
}

function checkECRPopup() {
  if (ecrPopup) {
    if (!ecrPopup.closed) {
      ecrPopup.focus();
    }
  }
}

window.onfocus = checkECRPopup;

/********************************************************
 END - ECR
********************************************************/
