function imageOn(i) {
	if (document.images) {
		document.images["btn" + i].src = onImgArray[i].src
	}
}
function imageOff(i) {
	if (document.images) {
		document.images["btn" + i].src = offImgArray[i].src
	}
}

function show_returning() {
	var out = '<TABLE CELLPADDING="0" CELLSPACING="1" BORDER="0" width="100%" >';
	out += '		<TR>';
	out += '		<TD width=30%>Returning:</TD>';
	out += '		<TD width=70%><INPUT TYPE="text" NAME="returning" VALUE="MM/DD/YYYY"><A onClick="cal2x.select(document.forms[0].returning,\'anchor2x\',\'MM/dd/yyyy\'); return false;" TITLE="cal2x.select(document.forms[0].returning,\'anchor2x\',\'MM/dd/yyyy\'); return false;" NAME="anchor2x" ID="anchor2x"><img src="/images/calendar_icon.gif" alt="calendar_icon" width="16" height="13" BORDER="0" STYLE="margin-left:8px;"/></A></TD>';
	out += '	</TR>';
	out += '</TABLE>';
	document.getElementById('returning_table').innerHTML = out;
}

function show_flights() {
	var out = '<TABLE CELLPADDING="0" CELLSPACING="1" BORDER="0" width="100%" >';
	out += '		<TR>';
	out += '		<TD width=30%>Select Flight:</TD>';
	out += '		<TD width=70%><SELECT NAME="flight"><option value="613">613 - 9:30am</option><option value="334">334 - 10:30am</option><option value="316">316 - 11:30am</option><option value="622">622 - 2:30pm</option><option value="136">136 - 4:45pm</option></SELECT></TD>';
	out += '	</TR>';
	out += '</TABLE>';
	document.getElementById('flights_table').innerHTML = out;
}

function hide_flights() {
	document.getElementById('flights_table').innerHTML = '';
	document.getElementById('returning_table').innerHTML = '';
}

function hide_returning() {
	document.getElementById('returning_table').innerHTML = '';
}

function displayTerms() {
	newWindow = window.open('/functions/termsofservice.html',"Terms","resizable=no,toolbar=no,location=no,width=500,height=500,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=no,left=120,top=120");
	newWindow.focus();
	return;
}

function displayPrivacy() {
	newWindow = window.open('/functions/privacypolicy.html',"Privacy","resizable=no,toolbar=no,location=no,width=500,height=500,directories=no,status=no,scroll=yes,scrollbars=yes,menubar=no,left=120,top=120");
	newWindow.focus();
	return;
}


