function toggle_visibility(id) {   var e = document.getElementById(id);   if(e.style.display == 'block')      e.style.display = 'none';   else      e.style.display = 'block';}    var choose = false;function switch1(div, trigger, info) {		if(trigger == true){		var shipping = 275;		calculate_total(shipping,'Shipping');			choose = true;	}	if(trigger == false){		if(choose == true){			choose = false;			var shipping = -275;			calculate_total(shipping, '');			}		if(choose == false){			choose = false;		}	}		//if (document.getElementById(info)){		//var info = document.getElementById(info);		if(info == 'a'){			document.getElementById('a').setAttribute("style","display: block;font-size: 1.4em; width: 400px; margin-top:100px; float:left;");			document.getElementById('b').setAttribute("style","display: none;");			document.getElementById('c').setAttribute("style","display: none;");		}else if(info == 'b'){			document.getElementById('a').setAttribute("style","display: none;");			document.getElementById('b').setAttribute("style","display: block;font-size: 1.4em; width: 400px; margin-top:100px; float:left;");			document.getElementById('c').setAttribute("style","display: none;");		}else if(info == 'c'){			document.getElementById('a').setAttribute("style","display: none;");			document.getElementById('b').setAttribute("style","display: none;");			document.getElementById('c').setAttribute("style","display: block;font-size: 1.4em; width: 400px; margin-top:100px; float:left;");		}						//}		if (document.getElementById('one')){				var option=['one','two'];		for(var i=0; i<option.length; i++){ 						obj=document.getElementById(option[i]);			obj.style.display=(option[i]==div)? "block" : "none"; 							var mail = document.getElementById('mail');			mail.style.display=(option[i]==div)? "block" : "none";						//if(option[i] == div){			//var shipping = (option[1] == div) ? -275 : 275;						}	}	}function calculate_total(shipping, shiptext){	var total = document.getElementById('total');	var ship_text = document.getElementById('ship_text');	sum = total.innerHTML;	values = sum.split(",");	sum = values[0]+values[1];	sum = parseFloat(sum);	sum = sum + shipping;	sum = sum.toFixed(2);		sum = formatCommas(sum);	total.innerHTML=sum;	ship_text.innerHTML=shiptext;	}function formatCommas(numString) {    var re = /(-?\d+)(\d{3})/;    while (re.test(numString)) {        numString = numString.replace(re, "$1,$2");    }    return numString;}function hide(id) {	var element = document.getElementById(id);	element.style.display = "none";	}function show(id) {	var element = document.getElementById(id);	element.style.display = "block";	element.focus ();	element.select ();	}function mark_text(id){	var text_input = document.getElementById (id);	text_input.focus ();	text_input.select ();}
