function use_billing()
{
	window.document.buyform.x_ship_to_first_name.value = window.document.buyform.x_first_name.value
	window.document.buyform.x_ship_to_last_name.value = window.document.buyform.x_last_name.value;
	window.document.buyform.x_ship_to_company.value = window.document.buyform.x_company.value;
	window.document.buyform.x_ship_to_address.value = window.document.buyform.x_address.value;
	window.document.buyform.x_ship_to_city.value = window.document.buyform.x_city.value;
	window.document.buyform.x_ship_to_zip.value = window.document.buyform.x_zip.value;
	window.document.buyform.x_ship_to_state2.value = window.document.buyform.x_state2.value;
	window.document.buyform.x_ship_to_state.selectedIndex = window.document.buyform.x_state.selectedIndex;
	window.document.buyform.x_ship_to_country.selectedIndex = window.document.buyform.x_country.selectedIndex;
	
	
}

function checkState()
{
	if(window.document.buyform.x_state2.value != "") {
		document.buyform.x_state.selectedIndex = 1;
	}
}

function checkShipState()
{
	if(window.document.buyform.x_ship_to_state2.value != "") {
		document.buyform.x_ship_to_state.selectedIndex = 1;
	}
}

function toggleVisible(id)
{
	setVisible(id, document.getElementById(id).style.display == "none");
}
function setVisible(id, visible)
{
	document.getElementById(id).style.display = visible ? "" : "none";
}
