<!-- //
function add(id){
 var sUrl = "/bag/bag.php?a=add&id="+id;
 window.open(sUrl, "", "height=300,width=500,location=no,menubar=no,resizable=no,scrollbars=no,status=yes,toolbar=no");
}

function view(){
 window.open("/bag/bag.php?a=price", "", "height=600,width=800,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
}

function buy(){
 window.open("/bag/buy.php", "", "height=600,width=800,location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no");
}

function closeIt(){
 close();
}

 var IE = document.all?true:false

 if (!IE) document.captureEvents(Event.MOUSEMOVE)
  document.onmousemove = getMouseXY;

 var tempX = 0
 var tempY = 0

 function getMouseXY(e) {
  if (IE) 
   { // grab the x-y pos.s if browser is IE
    tempX = event.clientX + document.body.scrollLeft
    tempY = event.clientY + document.body.scrollTop
   }
  else
   {  // grab the x-y pos.s if browser is NS
    tempX = e.pageX
    tempY = e.pageY
   }  
  // catch possible negative values in NS4
  if (tempX < 0){tempX = 0}
  if (tempY < 0){tempY = 0}  
  return true
  }

// -->