
function openSubWindow() {
 var url = '/event/reservation.html';
 openWindow(url,'sub','width=760,height=540,toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,favorites=yes');
}

function openMapWindow(url) {
 // 700, 540
 openWindow(url,'map','width=720,height=560,toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,favorites=yes');
}

function openMobileInfoWindow() {
 var url = '/mobile/';
 openWindow(url,'rmkmobile','width=430,height=600,toolbar=no,location=yes,directories=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,favorites=yes');
}

function removeHeaderZone() {
 miz$('header-zone').innerHTML = '';
 miz$('header-zone').style.height = 0;
}
function removeBodyZone() {
 miz$('body-zone').innerHTML = '';
 miz$('body-zone').style.height = 0;
}

function getUrlParam( url, name, value ) {
 var pos_s = url.indexOf( name + "=" );
 if( pos_s < 0 ) return value;
 var url = url.substring( pos_s + name.length + 1 );
 var pos_e = url.indexOf( '&' );
 if( pos_e < 0 ) return decodeURIComponent( url );
 return decodeURIComponent( url.substring( 0, pos_e ));
}
// via: http://yamachan-cs.blogspot.com/2007/01/js-url.html

function getUrlHash() {
 return location.hash.substring(1);
}
