/* TURN ON OR OFF AS NEEDED */


/*

==========================
IMAGE SWAPPING ON ROLLOVER
==========================

if (document.images) {
	ph_upstairs = new Image
	ph_upstairs.src = "i/ph_upstairs.jpg"
}
else { 
	ph_upstairs = ""

	document.photo = "" 
}


REQURIES THIS CODE IN XHTML

1. ASSIGN NAME VARIABLE TO IMAGE TO SWAP OUT (PHOTO HERE)
<img src="i/ph_river.jpg" width="470" height="351" border="0" name="photo" alt="the samoset retreat photo gallery" />

2. ASSIGN MOUSEOVER AND SOURCE TO THE THUMBNAIL IMAGE
<img src="i/ph_upstairs_th.jpg" width="63" height="47" border="0" alt="upstairs" class="th" onmouseover="document.photo.src=ph_upstairs.src" />

*/


/*
========================
SHIPPING SAME AS BILLING
========================

function FillShipping(f) {
if(f.same.checked == true) {
    f.sNm.value = f.bNm.value;
    f.sCn.value = f.bCn.value;
	f.sAd.value = f.bAd.value;
	f.sCt.value = f.bCt.value;
	f.sSt.value = f.bSt.value;
	f.sZc.value = f.bZc.value;
	f.sCy.value = f.bCy.value;
	f.sEm.value = f.bEm.value;
	f.sPh.value = f.bPh.value;
	f.sFn.value = f.bFn.value; 
    }
}

REQUIRES THIS CODE IN THE XHTML

<input type="checkbox" name="same" id="same_address" onclick="FillShipping(this.form)" /> Check if shipping address is the same as billing address

The values above sNm / bNm correspond to the name value of the input form element.  They can be changes as needed.

*/