<!-- Begin hiding from old browsers
/*Break frames*/
     if (top.frames.length!=0)
     top.location=self.document.location;
/*Pop-up page, variable width, height; closes when focus is lost*/
var openwin = null;
function KeepTop ()
{
   if (openwin != null && openwin.open) openwin.close();
}
function WinSize(loc,winwidth,winheight)
{
wintype =
'width='+winwidth+',height='+winheight+',toolbar=no,menubar=no,location=no,status=no,copy history=no,scrollbars=yes,resizable=yes,top=0,left=0,screenX=0,screenY=0';
openwin = window.open(loc,'CtrlWindow',wintype);
}
window.onfocus=KeepTop;
/*Forms Handler: Recommend page*/
function reset() {
document.emailform.visitorname.value="";
document.emailform.visitormail.value="";
document.emailform.friendname.value="";
document.emailform.friendmail.value="";
}
function checkFields() {
if ( (document.emailform.visitorname.value=="")  ||
     (document.emailform.visitormail.value=="") ||
     (document.emailform.friendname.value=="") ||
     (document.emailform.friendmail.value=="") )
   {
   alert("Please enter your Name and Email Address, and your friend's Name and Email Address. \n\nThen re-submit this form.");
   return false;
   }}
/*Make Sure a Phone Number is Supplied*/
function checkPhone() {
home = document.bidform.home_phone.value;
work = document.bidform.work_phone.value;
cell = document.bidform.cell_phone.value;
if ((home == "") && (work == "") && (cell == "")){
alert("Please provide a phone number.");
return false;
}
else return true;
}
/*Format Bids to Dollars*/
function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
cents = num%100;
num = Math.floor(num/100).toString();
if(cents<10)
cents = "0" + cents;
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num + '.' + cents);
}
/*Disable Submit While Sending*/
function disableForm(theform) {
if (document.all || document.getElementById) {
for (i = 0; i < theform.length; i++) {
var tempobj = theform.elements[i];
if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset")
tempobj.disabled = true;
}}}
/*Block Right Clicks*/
 var message="Please write the webmaster for permission to use materials from this site.  Thanks!";
 function click(z) {
  if (document.all) {
   if (event.button == 2) {
    alert(message);
    return false;
   }
  }
  if (document.layers) {
   if (z.which == 3) {
    alert(message);
    return false;
   }
  }
 }
 if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
 }
 document.onmousedown=click;
// End hiding from old browsers-->