default_panel='';
default_tab = '';
function dr_handleOnloadEvents() {
 //highLightNav();//no longer needed, this functionality was moved to CSS
 if(default_panel!='' && default_tab!='') {
 	showPanel(default_tab, default_panel);
 }
 Rounded("div#lbuWdgt","top","transparent","#EBEBEB","border #CCC");
 Rounded("div#lbuWdgt","bottom","transparent","#FFF","border #CCC");
}
//  Open Window Script
var newWin = null;
function popUp(popURL,popName,width,height) {
  if(newWin && !newWin.closed) {
    newWin.close();
  }
  newWin = window.open(popURL,popName,"width=" + width + ",height=" + height + ",resizable=yes,status=yes,screenX=50,screenY=50,top=50,left=50,scrollbars=yes");
}

//  Script to hide/show info.  Used specifically on ShoppingCart and CheckoutPayment
var clickCount = 0;
function hideText(id) {
	if (clickCount == 0) {
		document.getElementById(id).style.display = "block";
		clickCount = 1;
	} else {
		document.getElementById(id).style.display = "none";
		clickCount = 0;
	}
}
// Scripts to disable submit button after it has been clicked once already to prevent multiple order submission on CheckoutPayment and ConfirmOrder
	function disableButton (button) {
	//button.style.display = 'none';
	}
	function acceptOffer(){
    var TempVal = "yes";//changed to yes when changing radio button to hidden field
     for (i = 0; i < document.UpSellForm.elements.length; i++){
      if (document.UpSellForm.elements[i].type == "radio"){
       if (document.UpSellForm.elements[i].checked){
        TempVal = "yes";
       }
      }
     }
     if (TempVal != "yes"){
      alert("You must select the option that you wish to add to the basket.");
     }
     else{
      document.UpSellForm.operation.value="acceptUpSell";
      setOmnCookie();
      document.UpSellForm.submit();
     }
    }

    function declineOffer() {
      document.UpSellForm.operation.value="decline";
      document.UpSellForm.submit();
    }