function gtrt() {
/*gtrt(Go To Reserve Travel) links a single property to the booking engine
	Quazi-overload case #1 accepts type, siteID, propertyID
	               case #2 accepts type, siteID, propertyID, campagin code
	*/
	switch(arguments.length)
	{
		case 3:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2];
			break;
		case 4:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2] + '&cid=' + arguments[3];
			break;
	}
}

function gtrtv5() {
	
	switch(arguments.length)
/*gtrt(Go To Reserve Travel) links a single property to the booking engine Version 5
	Quazi-overload case #1 accepts type, siteID, propertyID
	               case #2 accepts type, siteID, propertyID, campagin code
	*/	
	{
		case 3:
			window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2];
			break;
		case 4:
			window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2] + '&cid=' + arguments[3];
			break;
	}
}

function gtrtv6() {
	
	switch(arguments.length)
/*gtrt(Go To Reserve Travel) links a single property to the booking engine Version 5
	Quazi-overload case #1 accepts type, siteID, propertyID
	               case #2 accepts type, siteID, propertyID, campagin code
	*/	
	{
		case 3:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2];
			break;
		case 4:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&pid=' + arguments[2] + '&cid=' + arguments[3];
			break;
	}
}
function vahrt(){
	/*vahrt(View All Hotels Reserve Travel) links a city to all hotels in that city in the booking engine
	Quazi-overload case #1 accepts type, siteID, propertyID, city, country
	               case #2 accepts type, siteID, propertyID, city, country, state
	*/
	switch(arguments.length)
	{
		case 4:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&CI=' + arguments[2] + '&ct=' + arguments[3];
			break;
		case 5:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4];
			break;
		case 6:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4] + '&cid=' + arguments[5];
			break;
	}	
}

function vahrtv5(){
	/*vahrt(View All Hotels Reserve Travel) links a city to all hotels in that city in the booking engine Version 5
	Quazi-overload case #1 accepts type, siteID, propertyID, city, country
	               case #2 accepts type, siteID, propertyID, city, country, state
	*/
	switch(arguments.length)
	{
		case 4:
			window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&CI=' + arguments[2] + '&ct=' + arguments[3];
			break;
		case 5:
			window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4];
			break;
		case 6:
			window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4] + '&cid=' + arguments[5];
			break;
	}	
}

function vahrtv6(){
	/*vahrt(View All Hotels Reserve Travel) links a city to all hotels in that city in the booking engine Version 5
	Quazi-overload case #1 accepts type, siteID, propertyID, city, country
	               case #2 accepts type, siteID, propertyID, city, country, state
	*/
	switch(arguments.length)
	{
		case 4:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&CI=' + arguments[2] + '&ct=' + arguments[3];
			break;
		case 5:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4];
			break;
		case 6:
			window.location = 'http://www.reservetravel.com/v6/redir.aspx?type=' + arguments[0] + '&siteid=' + arguments[1] + '&ci=' + arguments[2] + '&ct=' + arguments[3] + '&st=' + arguments[4] + '&cid=' + arguments[5];
			break;
	}	
}

function changeReservation(siteID) {
	window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=myres&siteid=' + siteID;
}

function cancelReservation(siteID) {
	window.location = 'http://www.reservetravel.com/v5/redir.aspx?type=myres&siteid=' + siteID;
}

function faq(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=faq&siteid=' + siteID;
}

function terms() {
	window.open('https://www.reservetravel.com/v5/terms.html');
	}
	
function support(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=support&siteid=' + siteID;
}
function contact(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=support&siteid=' + siteID;
}
function feedback(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=support&siteid=' + siteID;
}
function lowrate(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=lowrate&siteid=' + siteID;
}
function privacy(siteID) {
	window.location ='http://www.reservetravel.com/v5/redir.aspx?type=privacy&siteid=' + siteID;
}
	



function gform(URL){
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width=550,height=520');");
}
