

function showCatalog() {
  var u = 'http://catalog.worldpac.com/worldpac/year-make.jsp?partner=default';
  var f = 'screenX=190,screenY=0,width=640,height=480,scrollbars=yes';
  var catalogwin = window.open(u,'Catalog',f)
}

function popup(uri,w,h) {
  var ah = screen.availHeight;
  if ( (ah > 450) && (ah < h)) h = (ah * 0.9);
  var f = 'width=' + w + ',height=' + h + ',left=0,top=0,resizable,scrollbars';
  var popupwin = window.open(uri,'Popup', f);
}

function mypopup(qs,h) {
  var f = 'width=640,height=' + h + ',resizable,scrollbars';
  var seminarwin = window.open('/cgi-bin/seminars.cgi?' + qs,'Seminars', f);
}

function mypopupx(qs,h) {
  var f = 'width=580,height=' + h + ',resizable,scrollbars';

  var seminarwin = window.open('/cgi-bin/seminars_test.cgi?' + qs,'Seminars', f);
}

//function mypopupx(qs,h) {
//  alert("The online WTI Class registration system is undergoing maintenance. Please contact your WORLDPAC Sales Representative at: 1-800-888-9982 Ext. 5470");
//}

function registration() {//alert('reg');
//  var f = '"width=640,height=900,resizable,scrollbars"';
  var regwin = window.open("registration.html","title","width=640,height=900,resizable,scrollbars");
//  newWindow = window.open("someDoc.html","subWind","status,menubar,height=400,width=300");
regwin.focus();
}

function mapit(raw,zip) {
  //var u = 'http://maps.google.com/maps?q=' + raw + '%2C+' + zip;
  var u = 'http://maps.google.com/maps?q=' + raw;
  if (zip) u = u + '%2C+' + zip;
  window.open(u,'MapIT')
}

function maploc(raw) {
  window.open(raw,'Location')
}

function map_it(raw,zip) {
  var u = 'http://maps.yahoo.com/py/maps.py' +
          '?BFCat=&Pyt=Tmap&newFL=Use+Address+Below' +
          '&addr=' + raw + '&csz=' + zip + 
          '&country=us&Get%A0Map=Get+Map';
  window.open(u,'MapIT')
}


function mapus(adr,city,st,zip) {
  var u = 'http://maps.yahoo.com/py/maps.py' +
          '?BFCat=&Pyt=Tmap&newFL=Use+Address+Below' + 
          '&addr=' + escape(adr) + '&csz=' + escape(city) + 
          '%2C+' + st + '+' +  zip + '&country=us&Get%A0Map=Get+Map';
  window.open(u,'MapUS')
}

function mapca(adr,city,st,zip) {
  var u = 'http://ca.maps.yahoo.com/py/maps.py' +
          '?BFCat=&Pyt=Tmap&newFL=Use+Address+Below' +
          '&addr=' + escape(adr) + '&csz=' + escape(city) +
          '%2C+' + st + '%2C+' +  zip + '&country=ca&Get%A0Map=Get+Map';
  window.open(u,'MapCA')
}
