function validate_required(field,alerttxt) {
	with (field) {
  		if (value==null||value=="") {
    		alert(alerttxt);return false;
    	} else {
    		return true;
    	}
  	}
}

function updateShipping() { //this function will change the shipping
	document.checkout.view.value="cart"; //set the value so we can go back to confirm checkout	
	document.checkout.submit();
}

function moveCheckout() {//this function will move us to the checkout page
	if (document.checkout.ship_state.selectedIndex == ""){
  		alert("Please select a Shipping State");
  		document.checkout.ship_state.focus();
  		return false;
  	} else {
		document.checkout.view.value="checkout";
		document.checkput.submit();
		return true;
	}
}
	
