
function drawTravelers () {
	var travelers = ['adult','child','infant'];
	var html_code = '';
	html_code += '<table width="100%" cellspacing="0" cellpadding="0">';
	html_code += '	<tr>';
	html_code += '		<td class="pad4">Adult (12+)</td>';
	html_code += '		<td class="pad4">';
	html_code += '			<select name="'+travelers[0]+'">';
	for (ii = 0; ii < 10; ii++) {
		html_code += '<option value="'+ii+'"'+((travelersCount[0] == ii) ? ' selected' : '')+'>'+ii+'</option>';
	}
	html_code += '			</select>';
	html_code += '		</td>';
	html_code += '		<td class="pad4">Child (2-11)</td>';
	html_code += '		<td class="pad4">';
	html_code += '			<select name="'+travelers[1]+'">';
	for (ii = 0; ii < 10; ii++) {
		html_code += '<option value="'+ii+'"'+((travelersCount[1] == ii) ? ' selected' : '')+'>'+ii+'</option>';
	}
	html_code += '			</select>';
	html_code += '		</td>';
	html_code += '		<td class="pad4">Infant (< 2)</td>';
	html_code += '		<td class="pad4">';
	html_code += '			<select name="'+travelers[2]+'">';
	for (ii = 0; ii < 10; ii++) {
		html_code += '<option value="'+ii+'"'+((travelersCount[2] == ii) ? ' selected' : '')+'>'+ii+'</option>';
	}
	html_code += '			</select>';
	html_code += '		</td>';
	html_code += '	</tr>';
	html_code += '</table>';

	var elmntById = document.getElementById ('formTravelers');
	elmntById.innerHTML = html_code;
}

function drawAbout () {
	var html_code = '';
	html_code += '<p align="justify">';
	html_code += '<font size="-1" color="#666666">';
	html_code += 'Speak to a professional travel agent live by calling toll-free <font color="#02329E"><b>'+phone+'</b></font>. Our ability to instantly check availability allows us to surpass our competition by manually searching and combining the flights and connections that an automatic reservation system bypasses, thus giving you more options to get the best value for your money. Let us know if you prefer a specific airline so we can offer you the lowest fares and your choice of carrier. Most of the airlines that we represent allow Frequent Flier Mileage Accrual. Live experienced travel agents will look for the availability, research and design the most convenient and specific discounted travel routings.<br /><br />';
	html_code += 'Travel on only the reputable Major airline carriers. With discounts up to 50 percents off of the published airfares - even on last minute departures encourages you to compare our unbeatable rates. By applying our volume discounts to already lowered published fares, we have emerged as one of the Nations leading travel brokerages with access to several wholesale fare-banks, low-yield inventories and consolidated net fares.';
	html_code += '</font>';
	html_code += '</p>';

	var elmntById = document.getElementById ('About');
	elmntById.innerHTML = html_code;
}

function drawIATAN () {
	var html_code = '';
	html_code += '<table width="100%" cellspacing="0" cellpadding="0">';
	html_code += '<tr>';
	html_code += '<td class="title" align="center">';
	html_code += '<font color="#646464" size="2"><b>Airfare Wire is a Member of the IATAN Team</b></font></td>';
	html_code += '</tr>';
	html_code += '<tr>';
	html_code += '<td style="padding: 10px 10px 0px 10px;" align="center"><a href="http://www.iatan.org/Welcome/endorsement/" target="_blank"><img src="'+wwwFullDir+'img/iatan_logotip.gif" alt="Airfare Wire - Member of IATAN Team" align="center"></a></td>';
	html_code += '</tr>';
	html_code += '</table>';

	var elmntById = document.getElementById ('IATAN');
	elmntById.innerHTML = html_code;
}

function drawh1 () {
	var html_code = '<h1><font size="3"><b><font color="#02329E">Cheap <font color="#333333">International Airline</font> Tickets</font></b></font></h1>';

	var elmntById = document.getElementById ('drawh1');
	elmntById.innerHTML = html_code;
}

function change_class (val) {
	setCookie ('airfarewire_business_class',val,1);
}

function setCookie (name,value) {
    document.cookie = name + "=" + escape (value);
}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

function addBookmark (title,url) {
	if (window.sidebar) {
		alert ("Press Ctrl+D to bookmark this site.");
	} else if (document.all) {
		window.external.AddFavorite (url,title);
	} else if (window.opera && window.print) {
		return true;
	}
}

function selectCity (city,color) {
	if (!color) {
		color = "#0257a7";
	}
	document.getElementById ('to').value = city;
	document.getElementById ('formToList').style.borderWidth = 2;
	document.getElementById ('formToList').style.borderColor = color;
}

function changeCalendars (tripType) {
	var calendar1 = document.getElementById ('formCalendar1month');
	var calendar2 = document.getElementById ('formCalendar2');
	if (!tripType) {
		showReturnCalendar = false;
		calendar2.innerHTML = '';
	} else {
		showReturnCalendar = true;
		drawCalendar (2,getYearFromVal (calendar1.value),getMonthFromVal (calendar1.value),0);
	}
}
