
var lists = new Array();

// First set of text and values
lists['India']    = new Array();
lists['India'][0] = new Array(
	'Sai Sahavas, Shirdi',
	'Graciano Cottage, Goa',
	'Sagar Kinara, Malvan',
	'United 21, Thane',
	'Pancard Club, Pune',
	'Panoramic Resort, Panvel',
	'Panoramic Sea Resort, Alleppey'
);
lists['India'][1] = new Array(
	'Sai Sahavas, Shirdi',
	'Graciano Cottage, Goa',
	'Sagar Kinara, Malvan',
	'United 21, Thane',
	'Pancard Club, Pune',
	'Panoramic Resort, Panvel',
	'Panoramic Sea Resort, Alleppey'
);


// Second set of text and values
lists['USA']    = new Array();
lists['USA'][0] = new Array(
	'United Inn, New York',
	'Baymont Inn and Suites, North Carolina',
	'Econo Lodge, North Carolina',
	'Clarion Inn, Hudson, Ohio',
	'Georgian Resort, New York'
);
lists['USA'][1] = new Array(
	'United Inn, New York',
	'Baymont Inn and Suites, North Carolina',
	'Econo Lodge, North Carolina',
	'Clarion Inn, Hudson, Ohio',
	'Georgian Resort, New York'
);
// Third set of text and values
lists['New Zealand']    = new Array();
lists['New Zealand'][0] = new Array(
	'Sai Motels, Auckland'
);
lists['New Zealand'][1] = new Array(
	'Sai Motels, Auckland'
);
// This function goes through the options for the given
// drop down box and removes them in preparation for
// a new set of values

function emptyList( box ) {
	// Set each option to null thus removing it
	while ( box.options.length ) box.options[0] = null;
}

// This function assigns new drop down options to the given
// drop down box from the list of lists specified

function fillList( box, arr ) {
	// arr[0] holds the display text
	// arr[1] are the values

	for ( i = 0; i < arr[0].length; i++ ) {

		// Create a new drop down option with the
		// display text and value from arr

		option = new Option( arr[0][i], arr[1][i] );

		// Add to the end of the existing options

		box.options[box.length] = option;
	}

	// Preselect option 0

	box.selectedIndex=0;
}

// This function performs a drop down list option change by first
// emptying the existing option list and then assigning a new set

function changeList( box ) {
	// Isolate the appropriate list by using the value
	// of the currently selected option

	list = lists[box.options[box.selectedIndex].value];

	// Next empty the slave list

	emptyList( box.form.slave );

	// Then assign the new list values

	fillList( box.form.slave, list );
}

function switchpage(select) { 
var strUser = document.getElementById("slave").value;
if(strUser=="Sai Sahavas, Shirdi")
{
	document.location.href='shirdi.html'
}
else if(strUser=="Graciano Cottage, Goa")
{
	document.location.href='Goa.html'
}
else if(strUser=="Sagar Kinara, Malvan")
{
	document.location.href='Malvan.html'
}

else if(strUser=="Pancard Club, Pune")
{
	document.location.href='pancardclubpune.html'
}else if(strUser=="United 21, Thane")
{
	document.location.href='united21thane.html'
}else if(strUser=="Panoramic Resort, Panvel")
{
	document.location.href='panoramicresortpanvel.html'
}
else if(strUser=="United Inn, New York")
{
	document.location.href='unitedinn.html'
}
else if(strUser=="Baymont Inn and Suites, North Carolina")
{
	document.location.href='baymontInn.html'
}
else if(strUser=="Econo Lodge, North Carolina")
{
	document.location.href='econolodge.html'
}
else if(strUser=="Clarion Inn, Hudson, Ohio")
{
	document.location.href='clarioninn.html'
}
else if(strUser=="Georgian Resort, New York")
{
	document.location.href='georgianresort.html'
}
else if(strUser=="Sai Motels, Auckland")
{
	document.location.href='sainewzealand.html'
}
else if(strUser=="Panoramic Sea Resort, Alleppey")
{
	document.location.href='panoramicsearesort.html'
}
}
