/*Accessories page*/
var product_total_one=0.00;
var product_total_two=0.00;
var product_total_three = 0.00;
function add_accessories(id,price_type,val){
 		if(document.getElementById(id).checked==true){
			if(price_type=="price1"){
				product_total_one += parseFloat(val);
			} else if(price_type=="price2"){
				product_total_two += parseFloat(val);
			}else if(price_type=="price3"){
				product_total_three += parseFloat(val);
			}
			
 		}else{
			if(price_type=="price1"){
				product_total_one -= parseFloat(val);
			} else if(price_type=="price2"){
				product_total_two -= parseFloat(val);
			}else if(price_type=="price3"){
				product_total_three -= parseFloat(val);
			}
		}
		if(price_type=="price1"){
			document.getElementById("acc_total_one").innerHTML=parseFloat(product_total_one.toFixed(2));
		} else if(price_type=="price2"){
			document.getElementById("acc_total_two").innerHTML=parseFloat(product_total_two.toFixed(2));
		}else if(price_type=="price3"){
			document.getElementById("acc_total_three").innerHTML=parseFloat(product_total_three.toFixed(2));
		}
		
 	}
/*Accessories page*/

function include_file(id, url) {
	
  var req = false;
  // For Safari, Firefox, and other non-MS browsers
  if (window.XMLHttpRequest) {
    try {
      req = new XMLHttpRequest();
    } catch (e) {
      req = false;
    }
  } else if (window.ActiveXObject) {
    // For Internet Explorer on Windows
    try {
      req = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        req = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (e) {
        req = false;
      }
    }
  }
 var element = document.getElementById(id);
  if (req) {
    // Synchronous request, wait till we have it all
	req.open('GET', url, false);
    req.send(null);
    element.innerHTML = req.responseText;
  } 
}
/*-----------------------Include function-------------*/

/*-----------------------holdlink()-------------*/
function holdlink(id) {		
		document.getElementById(id).className='navhover';
		document.getElementById(id).onmouseout='navhover';
	}
/*-----------------------holdlink()-------------*/