// right area select pulldown search

function selectUp() {

	var window_url = new Array();
	window_url[0] = "/eng/amc/reference/tukau/index.html";
	window_url[1] = "/preReConfirmSearchPnr.do?CONNECTION_KIND=JPN&LANG=en&rand=";
	window_url[2] = "/wws/eur_common/e/amc/news/promotion/miledeshop/?rand=";
	window_url[3] = "/wws/eur_common/e/reservation/promotions/mile/?rand=";
	var con_kind = "/amcbook2upg.jsp?rand=";

	obj=document.left.elements[0];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
		window_flag = 0;
		for (i = 0; i < window_url.length; i++) {
			if (url.indexOf(window_url[i]) != -1) {
				window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
				window_flag = 1;
			}
		}
		if (window_flag == 0) {
			if (url.indexOf(con_kind) != -1) {
				if (typeof MemCntCode != 'undefined') {
					if (MemCntCode != '') {
						url = url + '&CONNECTION_KIND=' + MemCntCode;
					}
				}
			}
			location.href = url;
		}
		window_flag = 0;
/*
		if(index==3 || index==7 || index==10) {
			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
		} else {
			if (index==14) {
				if (typeof MemCntCode != 'undefined') {
					if (MemCntCode != '') {
						url = url + '&CONNECTION_KIND=' + MemCntCode;
					}
				}
			}
			location.href = url;
		}
*/
	}
}

function selectMd() {

	var window_url = new Array();
	window_url[0] = "amc_us.jsp?index=100&rand=";

	obj=document.left.elements[1];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
		window_flag = 0;
		for (i = 0; i < window_url.length; i++) {
			if (url.indexOf(window_url[i]) != -1) {
				window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
				window_flag = 1;
			}
		}
		if (window_flag == 0) {
			location.href = url;
		}
/*
		if(index==6) {
			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
		} else {
			location.href = url;
		}
*/
	}
}


function selectDw() {
	obj=document.left.elements[2];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
//		if(index==6) {
//			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=no,menubar=no,location=no,toolbar=no,width=820,height=650");
//		} else {
			location.href = url;
//		}
	}
}


function selectEjump2() {

	var window_url = new Array();
	window_url[0] = "/eng/amc/reference/tukau/index.html";
	window_url[1] = "/preReConfirmSearchPnr.do?rand=";
	var con_kind = "/amcbook2upg.jsp?rand=";

	obj=document.left.elements[0];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
		window_flag = 0;
		for (i = 0; i < window_url.length; i++) {
			if (url.indexOf(window_url[i]) != -1) {
				window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
				window_flag = 1;
			}
		}
		if (window_flag == 0) {
			if (url.indexOf(con_kind) != -1) {
				if (typeof MemCntCode != 'undefined') {
					if (MemCntCode != '') {
						url = url + '&CONNECTION_KIND=' + MemCntCode;
					}
				}
			}
			location.href = url;
		}
		window_flag = 0;
/*
		if(index==3 || index==7 || index==10) {
			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
		} else {
			if (index==14) {
				if (typeof MemCntCode != 'undefined') {
					if (MemCntCode != '') {
						url = url + '&CONNECTION_KIND=' + MemCntCode;
					}
				}
			}
			location.href = url;
		}
*/
	}
}

function selectEjump3() {
	obj=document.left.elements[1];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
		if(index==6) {
			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=yes,menubar=yes,location=yes,toolbar=yes");
		} else {
			location.href = url;
		}
	}
}


function selectEjump4() {
	obj=document.left.elements[2];
	index=obj.selectedIndex;
	url=obj.options[index].value;
	if (url!="") {
//		if(index==6) {
//			window.open(url,"_blank","resizable=yes,scrollbars=yes,status=no,menubar=no,location=no,toolbar=no,width=820,height=650");
//		} else {
			location.href = url;
//		}
	}
}

