function show_price(){
   var coord=mousePageXY();
   window.status=coord[0]+'|'+coord[1]+'|'+document.getElementById('price_div').style.top;
   document.getElementById('price_div').style.display = "block";
   document.getElementById('price_div').style.top = coord[1];
   document.getElementById('price_div').style.left = coord[0];
}
function mousePageXY(e)
{  var x = 0, y = 0;
var coord=new Array();
  if (!e) e = window.event;
  if (e.pageX || e.pageY)
  { x = e.pageX;
    y = e.pageY;
  }
  else if (e.clientX || e.clientY)
  { x = e.clientX + (document.documentElement.scrollLeft || 
document.body.scrollLeft) - document.documentElement.clientLeft;
    y = e.clientY + (document.documentElement.scrollTop || 
document.body.scrollTop) - document.documentElement.clientTop;
  }
  coord[0]=x;coord[1]=y;
  return coord;
}
/************************** Zoom **************************/
// Mozilla = (navigator.userAgent.indexOf('Gecko') != -1) && (document.getElementById?true:false);
var Mozilla = (document.getElementById?true:false);
function zoom(img) {return zoomf('/images/docs/' + img, '');}
function zoomf(img, title) {
  if (!title) title = '';
  winID = Math.random() + ""; winID = winID.substr(2, 10); // random ID for IE 6-
  win = window.open("","win"+winID,"top=50,left=200,width=" + 300 + ",height=" + 300 + ",toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes");
  win.document.write(
    "<html>\n<head><title>" + title + "</title></head>" +
    "<body style=\"margin: 0; padding: 0\">" +
    "<a href=\"\#\" onclick=\"window.close()\"><img src=\""+ img +"\" border=\"0\" id=\"myimg\" onload=\" nws = document.getElementById('myimg'); if (" + Mozilla + ") {window.resizeTo(nws.width + 30, nws.height + 30); window.resizeTo(nws.width + 8, nws.height + 53);} else {window.resizeTo(nws.width,nws.height);}\" /></a>" +
    "</body>\n</html>"
  );
  win.document.close();
}

function redirectURL(redir) {
  var first = true
  for (var i = 0; i < document.forms['addmore'].elements.length; i++) {
    var item = document.forms['addmore'].elements[i]
    if (item.checked) {redir += (first ? '' : '-') + item.name; first = false}
  }
  this.location = redir + '.jsp'
  return false;
}


