function tot(){
if(document.getElementById('upgr').checked == true ){
	
	price2 = "30";
} else {
	price2 = "0";
}



document.myform.total.value = Math.round((Number(price1) + Number(price2)) *   document.myform.qt.value * 100) / 100;
document.myform.dest.value = new Number(document.myform.total.value).numberFormat("#,#.##");
document.myform.totalCa.value = Math.round((Number(price1) + Number(price2)) *   document.myform.qt.value * 100 ) / 100;
document.myform.destCa.value = new Number(document.myform.totalCa.value).numberFormat("#,#.##");
}


function setCountry(chosen) {
if (chosen == " ") {
	 price1 = "0";
    document.getElementById('TotalUsa').style.display = "block";
  document.getElementById('TotalCa').style.display = "none";
  // $("#upgr").removeAttr("checked").removeAttr("disabled")
   //$("#canadapost").fadeOut("normal");
 
}
if (chosen == "1") {
 price1 = "149";
  document.getElementById('TotalUsa').style.display = "none";
  document.getElementById('TotalCa').style.display = "block";
 // $("#upgr").attr("checked","checked").attr("disabled","disabled")
 // $("#canadapost").fadeIn("normal");
  tot();
}
if (chosen == "2") {
 price1 = "129";
  document.getElementById('TotalUsa').style.display = "block";
  document.getElementById('TotalCa').style.display = "none";
  // $("#upgr").removeAttr("checked").removeAttr("disabled")
 //  $("#canadapost").fadeOut("normal");
  tot();
}

}
function shipinfo1() {
 document.getElementById('shipinfo').style.display = "block";
 document.myform.addressVar.value = "same";
}
function shipinfo2() {
 document.getElementById('shipinfo').style.display = "block";
 document.myform.addressVar.value = "diff";
}


