function go(form) {
   window.location = form.range.options[form.range.selectedIndex].value;

}
   
function preload_images () {
   var d = document;
	 if (!d.imgs) { d.imgs = new Array(); }
	 var j = d.imgs.length, args = preload_images.arguments, i;
	 for (i = 0; i < args.length; i++) {
		  d.imgs[j] = new Image;
			d.imgs[j].src = args[i];
			j++;
	 }
}


 function bookmark(title)
 {

   var urlAddress = location.href;
   var pageName = title;
   var browser = navigator.appName;

  if (browser == 'Microsoft Internet Explorer')
  {
     window.external.AddFavorite(urlAddress,pageName)
  }
  else if (browser == 'Netscape')
  { 
     alert("Your browser does not support this feature.  Use CTRL-D to bookmark this page");
  }
  else
  { 
   alert("Your browser does not support this feature.");
  }
 }

  function addressCopy() {
       document.quick_buy.billing_first_name.value = document.quick_buy.shipping_first_name.value;
       document.quick_buy.billing_last_name.value = document.quick_buy.shipping_last_name.value;
       document.quick_buy.billing_address1.value = document.quick_buy.shipping_address1.value;
       document.quick_buy.billing_address2.value = document.quick_buy.shipping_address2.value;
       document.quick_buy.billing_city.value = document.quick_buy.shipping_city.value;
       document.quick_buy.billing_state.value = document.quick_buy.shipping_state.value;
       document.quick_buy.billing_zip.value = document.quick_buy.shipping_zip.value;
   }

function fieldAdvance(from,to,max) {
 if (from.value.length == max) {
  document.quick_buy[to].focus();
 }
}
function fieldAdvance2(from,to,max) {
 if (from.value.length == max) {
  document.ship_form[to].focus();
 }
}

function checkAgree() {
  if(typeof document.getElementById('iAgree') != 'undefined') {
    if(document.getElementById('iAgree').checked == false) {
      if(typeof document.getElementById('iAgreeTable').style != 'undefined') {
        document.getElementById('iAgreeTable').style.background = '#FEE';
        return false;
      }
    }
  }
}
