function elementToggle_1( x, y ) {
	
	if ( x.value == "0" ) {
		
		document.getElementById( y ).style.display = "none";
		
	} else {
		
		document.getElementById( y ).style.display = "";
		
	}

}

function showPaymentOptions( x ) {
	
	if( x.value == "1" ) {
		
		document.getElementById( "showCCName" ).style.display = "";
		
		document.getElementById( "showCCType" ).style.display = "";
		
		document.getElementById( "showCCNumber" ).style.display = "";
		
		document.getElementById( "showCCExp" ).style.display = "";
		
		document.getElementById( "showStudentIDInfo" ).style.display = "none";
		
	} else {
		
		document.getElementById( "showCCName" ).style.display = "none";
		
		document.getElementById( "showCCType" ).style.display = "none";
		
		document.getElementById( "showCCNumber" ).style.display = "none";
		
		document.getElementById( "showCCExp" ).style.display = "none";
		
		document.getElementById( "showStudentIDInfo" ).style.display = "";
		
	}
	
}

function showDeliveryOptions( x ) {
	
	if( x.value == "1" ) {
		
		document.getElementById( "showPickup" ).style.display = "";
		
		document.getElementById( "showDelivery" ).style.display = "none";
		
	} else {
		
		document.getElementById( "showPickup" ).style.display = "none";
		
		document.getElementById( "showDelivery" ).style.display = "";
		
	}
	
}

/*
function redirectOptions( ) {

	var x = "";
	var y = "";
	
	for (i = 0; i < document.formOptions.pickUpDeliver.length; i++){
	
		if (document.formOptions.pickUpDeliver[i].checked == true){
	
			x = document.formOptions.pickUpDeliver[i].value; 
			
		}

	}
	
	for (i = 0; i < document.formOptions.paymentMethod.length; i++){
	
		if (document.formOptions.paymentMethod[i].checked == true){
	
			y = document.formOptions.paymentMethod[i].value; 
			
		}

	}

	var theURL = "/indexStore.cfm?cmd=storeCheckout&locationID="+document.formOptions.locationID.options[document.formOptions.locationID.selectedIndex].value+'&userFirstName='+document.formOptions.userFirstName.value+'&userLastName='+document.formOptions.userLastName.value+'&userEmailAddress='+document.formOptions.userEmailAddress.value+'&userEmailAddress_again='+document.formOptions.userEmailAddress_again.value+'&userPhoneNumber='+document.formOptions.userPhoneNumber.value+"&pickUpDeliver="+x+"&paymentMethod="+y;


	window.location = theURL;
	
	//window.location="http://www.dineoncampus.com";
	

}

*/










