<!--
if ((navigator.appVersion.indexOf("Mac") != -1)) {
    document.write('<link rel=stylesheet href="/hotel/css/mac.css" type="text/css">');
    }
else {document.write('<link rel=stylesheet href="/hotel/css/win.css" type="text/css">');
    }
//-->

if ((navigator.appVersion.indexOf("Mac") != -1)) {
    document.write('<link rel=stylesheet href="/hotel/css/mac.css" type="text/css">');
}else{
    document.write('<link rel=stylesheet href="/hotel/css/win.css" type="text/css">');
}

function optionOpen(page){
    var option;

    option = window.open(page,"option","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=615,height=480");
    option.focus();
}

function roomOpen(page){
    var room;

    room = window.open(page,"room","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=615,height=480");
    room.focus();
}
function mapOpen(page){
    var map;

    map = window.open(page,"map","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=620,height=900");
    map.focus();
}

function reserveOpen(page){
    var reserve;

    room = window.open(page,"reserve","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=1000,height=480");
    room.focus();
}
function showSwap(id1,id2){
    var disp1 = document.getElementById(id1).style.display;
    var disp2 = document.getElementById(id2).style.display;
    document.getElementById(id1).style.display = disp2;
    document.getElementById(id2).style.display = disp1;
    return false;
}
function map(){
	path = location.pathname;
	arr = path.split("/");
	url = "http://" + location.hostname + "/hotel/phtml/map.cgi?hotel_id=" + arr[3];
    mapOpen(url);
//    location.href="map.html";
}
/*
function disableSubmit() {
    for (i = 0; i < allInputTagsSize; i++) {
        //Input属性のタイプを謫ｾする.
        var inputTagsType = allInputTags(i).type;
        //Input属性のNameを謫ｾする.
        var inputTagsName = allInputTags(i).name;
        //Input属性の値を謫ｾする.
        var inputTagsValue = allInputTags(i).value;
         
        //button・submit・resetに関しては、デフォルトで非活性とする.
        if (inputTagsType == "button" ||
            inputTagsType == "submit" ||
            inputTagsType == "reset") {
                 //非活性化する.
                 allInputTags(i).disabled = true;
            }
        }
    }
}
*/
