function WindowImage(obj, width, height) {

 new_window = window.open(obj,'',
                          'width=' + width + ',height=' + height + ',toolbar=no,location=no,' +
                          'directories=no,status=no,menubar=no,scrollbars=no,resizable=no');
}

function WindowsOpen(obj, width, height) {

 new_window = window.open(obj,'',
                          'width=' + width + ',height=' + height + ',toolbar=no,location=no,' +
                          'directories=no,status=no,menubar=no,scrollbars=yes,resizable=no');
}

function BasketWinPos(event) {

 winBasket = parent.document.getElementById("BasketWin1");

 winBasket.style.top = event.clientY + 'px';
 winBasket.style.left = event.clientX + 'px';
}

function BasketPreview(obj) {

 BasketPreviewFrame.document.location = obj;
}

function BasketRedraw() {

 document.getElementById("BasketPreviewDiv").innerHTML = BasketPreviewFrame.document.body.innerHTML;
}

function showOrder(orderID, event) {

 winOrder = document.getElementById("OrderWin" + orderID);

 posX = event.clientX;
 posY = event.clientY;

 if (winOrder.style.visibility == "hidden") {

  winOrder.style.top = posY + 'px';
  winOrder.style.left = posX + 'px';

  winOrder.style.display = "block";
  winOrder.style.visibility = "visible";

 } else {

  winOrder.style.display = "none";
  winOrder.style.visibility = "hidden";
 }
}

function setPointer(theRow, thePointerColor) {

 if (thePointerColor == '' || typeof(theRow.style) == 'undefined') { return false; }

 if (typeof(document.getElementsByTagName) != 'undefined') {

  var theCells = theRow.getElementsByTagName('td');

 } else if (typeof(theRow.cells) != 'undefined') {

  var theCells = theRow.cells;

 } else { return false; }

 var rowCellsCnt  = theCells.length;

 for (var c = 0; c < rowCellsCnt; c++) { theCells[c].style.backgroundColor = thePointerColor; }

 return true;
}

function showhideDiv(helpID, showIn) {

 if (document.getElementById) {

  winHelp = document.getElementById(helpID);

 } else if (document.all) {

  winHelp = document.all[helpID];

 } else if (document.layers) {

  winHelp = document.layers[helpID];
 }

 if (winHelp.style.display == "none") {

  winHelp.style.display = "block";

 } else { winHelp.style.display = "none"; }

 if (!showIn) { winHelp.style.display = "none"; }
}