function toggleVis(toggledID, theBool) {
	if(theBool)
		document.getElementById(toggledID).style.display = "none";
	else 
		document.getElementById(toggledID).style.display = "block";
}
function processSameAsShip() {
	if(!document.getElementById("billSameAsShip")) return false;
	var isChecked = document.getElementById("billSameAsShip").checked;
	document.getElementById("billSameAsShip").onchange = function() {
		toggleVis("theBillAddr", document.getElementById("billSameAsShip").checked);
	}
	toggleVis("theBillAddr", document.getElementById("billSameAsShip").checked);
	}

function addLoadEvent(func) {
	var oldonload = window.onload;
	if(typeof window.onload != 'function') {
		window.onload = func;
	} else {
		window.onload = function() {
			if(oldonload) {
				oldonload();
			}
		func();
	    }
	}
}
addLoadEvent(processSameAsShip);