var winbkt;

function Win(win,bar,w,h) {
if (winbkt && !winbkt.closed) winbkt.close();
winbkt=window.open(win,"winVbs","left=10,top=10,toolbar=no,location=0,directories=0,status=0,menubar=no,scrollbars=" + bar + ",resizable=no,Width=" + w + ",Height=" + h);
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 = "#FFCC00";
  } else if (document.getElementById) {
    document.getElementById(id).style.borderColor = "#FFCC00";
  }
}
function off(id) {
  if (document.all) {
    document.all.item(id).style.borderColor = "#C1C1C1";
  } else if (document.getElementById) {
    document.getElementById(id).style.borderColor = "#C1C1C1";
  }
}

function offI(id) {
  if (document.all) {
    document.all.item(id).style.borderColor = "#777777";
  } else if (document.getElementById) {
    document.getElementById(id).style.borderColor = "#777777";
  }
}
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/top/btnArw-over.gif");
preloadFlag = true;
}
}
