function subm() {
	if((document.myform.depart.selectedIndex)==(document.myform.arrive.selectedIndex)) {
		alert("The city of departure and the destination cannot be the same.\n Please select another city of departure or destination.")
		return false;
	}
	if((document.myform.sel.selectedIndex)==0) {
		window.document.forms[0].action = "http://ofs.malaysia-airlines.com/ofs_daily.asp" ;
		window.document.forms[0].submit();
		return true;
	}
	if((document.myform.sel.selectedIndex)==1); {
		window.document.forms[0].action = "http://ofs.malaysia-airlines.com/ofs_weekly.asp" ;
		window.document.forms[0].submit();
		return true;
	}
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function windowOpen(URL,name){
	window.open(URL,name,'scrollbars=yes,width=530,height=700');
	}
function windowOpeninfo1(URL,name){
	window.open(URL,name,'width=530,height=760');
	}
function windowOpeninfo2(URL,name){
	window.open(URL,name,'width=550,height=600');
	}
function windowOpeninfo3(URL,name){
	window.open(URL,name,'width=420,height=470');
	}
// form用
var iFrom,sMes;

	// submit のチェックを行います。
	function SearchConf(){
		//　メール検索を押された
		if (document.forms[0].elements[0].value=="") {
			// メールが入力されていない
			alert("emailアドレスを入力してください");
			return false;
		}

		// 登録を押された
		sMes="登録を行います";

		// 確認ダイアログ表示
		if (confirm(sMes)){
			return true;
		}
		else {
			return false;
		}
	}

	function makedata(pos) {
		document.forms[0].elements[pos].value = document.forms[0].elements[pos+1].value + "-" + document.forms[0].elements[pos+2].value +"-" + document.forms[0].elements[pos+3].value;
		if (document.forms[0].elements[pos].value =="--") {
			document.forms[0].elements[pos].value =""
		}

	}

	function initial() {
		makedata(13);
		makedata(17);
	}