var winbkt;

function Win(win,bar,w,h) {
if (winbkt && !winbkt.closed) winbkt.close();
winbkt=window.open(win,"winVbs","top=5,left=5,toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=" + bar + ",resizable=no,Width=" + w + ",Height=" + h);
winbkt.focus();
}

function WinBkt(win) {
if (winbkt && !winbkt.closed) winbkt.close();
winbkt=window.open(win,"basket","toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=yes,resizable=yes,Width=550,Height=400");
winbkt.focus();
}

function winClose() {
if (winbkt && !winbkt.closed) winbkt.close();
}

function chgImg() {
if (document.images) {
document[chgImg.arguments[0]].src = chgImg.arguments[1];
}
return true;
}

function on(id) {
  if (document.all) {
    document.all.item(id).style.borderColor = "#CC0000";
  } else if (document.getElementById) {
    document.getElementById(id).style.borderColor = "#CC0000";
  }
}
function off(id) {
  if (document.all) {
    document.all.item(id).style.borderColor = "#FFFFFF";
  } else if (document.getElementById) {
    document.getElementById(id).style.borderColor = "#FFFFFF";
  }
}

function newImage(arg) {
if (document.images) {
rslt = new Image();
rslt.src = arg;
return rslt;
}
}

var preloadFlag = false;
function preloadImages() {
if (document.images) {
ar_over = newImage("/img/ar-o.gif");
tri_over = newImage("/img/tri-o.jpg");
preloadFlag = true;
}
}
