var today = new Date();
var tourCount = 17;
var arrTours = new Array();

function initTourList()
{
	arrTours[0] = new Array("Egypt Classical Tour 1", 8, 1089);
	arrTours[1] = new Array("Egypt Classical Tour 2", 10, 1315);	
	arrTours[2] = new Array("Egypt Budget Tour 2", 10, 670);
	arrTours[3] = new Array("Egypt Budget Tour 3", 14, 899);
	arrTours[4] = new Array("Egyptian Adventure", 21, 2399);
	arrTours[5] = new Array("Egyptian Highlights", 15, 1390);
	arrTours[6] = new Array("Grand Tour of Egypt", 21, 2100);
	arrTours[7] = new Array("Spiritual Tour", 12, 915);
	arrTours[8] = new Array("XMAS & New Year Celebration", 8, 1390);
	arrTours[9] = new Array("XMAS & New Year Eve Celebration", 14, 2145);
	arrTours[10] = new Array("Lake Nasser Cruise 1", 5, 569);
	arrTours[11] = new Array("Lake Nasser Cruise 2", 4, 425);
	arrTours[12] = new Array("Lake Nasser Cruise 3", 5, 569);
	arrTours[13] = new Array("Lake Nasser Cruise 4", 4, 425);
	arrTours[14] = new Array("Egypt Special", 15, 890);
	arrTours[15] = new Array("3 nights special cruise", 3, 229);
	arrTours[16] = new Array("7 nights special cruise", 7, 449);
}

function printTourName(index)
{
	var i;
	for(i = 0; i < tourCount; i++)
	{
		document.write("<option value='" + arrTours[i][0] + "'");
		if (index == i)
			document.write(" selected");
		document.write(">" + arrTours[i][0] + "</option>");
	}
}

function printTourDay(index)
{
	var i;
	for(i = 0; i < tourCount; i++)
	{
		document.write("<option value='" + arrTours[i][1] + "'");
		if (index == i)
			document.write(" selected");
		document.write(">" + arrTours[i][1] + "</option>");
	}
}

function printTourPrice(index)
{
	var i;
	for(i = 0; i < tourCount; i++)
	{
		document.write("<option value='" + arrTours[i][2] + "'");
		if (index == i)
			document.write(" selected");
		document.write(">" + arrTours[i][2] + "</option>");
	}
}

function printHotelCategory(index)
{
	var strCate = new Array("4 Stars", "3.5 Stars", "Resort / Cottage", "Bed & Breakfast", "Country Inn", "Motel - Budget");
	var i;
	for(i = 0; i < 6; i++)
	{
		document.write("<option value='" + strCate[i] + "'");
		if (index == strCate[i])
			document.write(" selected");
		document.write(">" + strCate[i] + "</option>");
	}
}

function printYear(index)
{
	var i;	
	for (i = 2003; i < 2011; i++)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + i + "</option>");
	}
}

function printMonth(index)
{
	var i;	
	for (i = 1; i < 13; i++)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + i + "</option>");
	}
}

function printDate(index)
{
	var i;	
	for (i = 1; i < 32; i++)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + i + "</option>");
	}
}

function printTime(index)
{
	var i;
	var arrTime = new Array();
	arrTime[0] = "Morning";
	arrTime[1] = "Afternoon";
	arrTime[2] = "Evening";
	arrTime[3] = "Anytime";
	
	for (i = 12; i > 0; i--)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + i + ":00am</option>");
	}
	for (i = 24; i > 12; i--)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + (i - 12) + ":00pm</option>");
	}
	for (i = 25; i < 29; i++)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + arrTime[i - 25] + "</option>");
	}
}

function printNumber(index, from, to)
{
	var i;

	for (i = from; i < (to + 1); i++)
	{
		document.write("<option value=" + i);
		if (index == i)
			document.write(" selected");
		document.write(">" + i + "</option>");
	}
}
