/*
  Bid.js
  pbsauctions.com
  auction software by www.w3sys.com
  davidmc@w3sys.com
*/
var allDone = false;  var bidWin;
function showDetail(Id) {
var url="/itemDetail.cgi?Id=";
url+=Id;
var win = window.open(url,
"dtl",
"scrollbars=yes,resizable=yes,toolbar=no,titlebar=no,menubar=no,location=no,statusbar=no,width=650,height=550");
 if ( win && typeof(win.focus) != "undefined" )
 {
   scrnX = screen.availWidth;
   scrnY = screen.availHeight;
   winX = window.innerWidth?win.outerWidth:document.body.clientWidth;
   winY = window.innerWidth?win.outerHeight:document.body.clientHeight;
   win.moveTo(Math.round( (scrnX-winX)/2 ), Math.round( (scrnY-winY)/2 ) );
   win.focus();
 }} 
function Bid( BidNo )  {
var url = "/PlaceBid.cgi?BidNo=" + BidNo + "&ServerName=lakeshoreptv.pbsauctions.com";
var win = window.open(url,"_blank","height=350,width=400,titlebar=no");
 if ( win && typeof(win.focus) != "undefined" )
 {
   scrnX = screen.availWidth;
   scrnY = screen.availHeight;
   winX = window.innerWidth?win.outerWidth:document.body.clientWidth;
   winY = window.innerWidth?win.outerHeight:document.body.clientHeight;
   win.moveTo(Math.round( (scrnX-winX)/2 ), Math.round( (scrnY-winY)/2 ) );
   win.focus();
 }
}
function fini()  { 
startRefresh(); }
function showProducts(cat) {
var url = "Products.cgi?Cat=" + cat;
window.open(url,
"products",
"scrollbars=yes,resizable=yes,toolbar=no,titlebar=no,menubar=no,location=no,statusbar=no,width=550,height=400");
}
function searchProducts() {
var ctrl = hdoc.getElementById("qstring");if(ctrl){
var url = "/Products.cgi?Q=" + ctrl.value;
window.open(url,
"products",
"scrollbars=yes,resizable=yes,toolbar=no,titlebar=no,menubar=no,location=no,statusbar=no,width=550,height=400");
}}
