function isUndefined(v) {
    var undef;
    return v===undef;
}
function newwindow2(url, target, features) {
    if (isUndefined(features)) features = _NEWWINDOW_FEATURES;
    if (isUndefined(target  )) target   = '_stm';
    var theWindow = window.open(url, target, features);
    theWindow.focus();
    return theWindow;
}
function newwindow1(src, features) {
    return newwindow2(src.getAttribute('href'), src.getAttribute('target') || '_stm', features);
}

var _NEWWINDOW_FEATURES='location=0,statusbar=0,menubar=0,width=700,height=500,scrollbars=1,resizable=yes';

function linkOnClick() {
  var th = this.href;
  var thaction = true;

  if (th.indexOf('.html') != -1) {
  }
  else if (th.indexOf('.html#') != -1) {
  }
  else if (th.indexOf('printpage.ihtml') != -1) {
    window.open(th);
    thaction = false;
  }
  else if (th.indexOf('.ihtml') != -1) {
  }
  else if (th.indexOf('.stm') != -1) {
    window.open(th);
    thaction = false;
  }
  else if (th.indexOf('.pdf') != -1) {
    window.open(th);
    thaction = false;
  }
  else {
  }
  return thaction; 
}
function clearzipfield(){
if (document.ziplookup.zip.value == "Zip Code")
	document.ziplookup.zip.value = "";
}
function clearsearchbugfield(){
if (document.searchbug.searchterm.value == "Search Web Site")
	document.searchbug.searchterm.value = "";
}
