// JavaScript Document
function areYouSure() {
	var answer = confirm('Are you sure');
	if (answer) {return true} else return false;	
}

function checkPassword() {
	var pw1=document.register.MyPassword.value;
	var pw2=document.register.MyPassword2.value;
	if (pw1 != pw2) {
		alert('Your passwords do not match') ;
		return false;	
	} else return true;
}

function sameAsOther() {
	var path=document.billing;
	if (path.sameAs.checked == true) {
		path.BAddress.value=path.mAddress.value;
		path.BCity.value=path.mCity.value;
		path.BZip.value=path.mZip.value;
		path.BState.text=path.mState.value;	
		path.BState.value=path.mState.value;	
	}
}
