argSendCgiKey =new Array();
argSendCgiKey =["module", "operation", "execute", "propertyCodeType", "chainCode", "instanceId", "adults", "children", "numberOfRooms", "specialRate","lookAndFeelId", "arriveDate", "arriveMonth", "arriveYear", "departDate", "departMonth", "departYear", "numberOfNights" ,"propertyCode","locale", "areaname"];

function openPopupWin(reqN) {
	
	var aryWStyle =new Array();
	var aryN =new Array();
	aryWStyle[0]= "width=580";
	aryWStyle[1]= "height=420";

	aryN[0]= "http://www.jalhotels.com/map/index.html";

	window.open(aryN[reqN], "_blank", aryWStyle);
}

function openPopupReserchWin( reqValue ) {


	//cgiへのパス作成
	
	var gReqURL ="https://jalhotels.ibe.netbooker.com/web/FrontController.nb4?";
	argSendCgiValue =new Array();
	argSendCgiValue =reqValue.split("|");

	if( argSendCgiValue.length > 1 ) {//海外
		if( 20 < argSendCgiValue.length ) {
			argSendCgiKey[18] ="areacode";
			argSendCgiValue[20] =escape( argSendCgiValue[20] );
		} else {
			argSendCgiKey[18] ="propertyCode";
		}
		
		for( i =0; i < argSendCgiValue.length; i++ ) {
			
			gReqURL +=argSendCgiKey[i] +"="+argSendCgiValue[i];
			if( i  !=  argSendCgiValue.length -1 ) {
				gReqURL +="&";
			}
		}
	} else {//国内
		gReqURL =reqValue;
	}
	
	//win status 作成
	var aryWStyle =new Array();
	
	aryWStyle[0]= "width=840";
	aryWStyle[1]= "height=700";
	aryWStyle[2]= "scrollbars=yes";
	aryWStyle[3]= "status=yes";

	window.open(gReqURL, "_blank", aryWStyle);
}