function eventPopup(page, height) {
  var NewWin = window.open(page, "event", "width=480,height=" + height + ",scrollbars=no,resizable=no");
  var browser = navigator.appName;
  var version = navigator.appVersion;
  if (!((browser.substring(0, 9) == "Microsoft") && (version.substring(0,3) < "5.0"))) {
    NewWin.window.focus();
  }
}
function launchMap() {
  var NewWin = window.open("map.html", "MAP", "width=468,height=470,scrollbars=no,resizable=no");    
  var browser = navigator.appName; 
  var version = navigator.appVersion;
  if (!((browser.substring(0, 9) == "Microsoft") && (version.substring(0,3) < "5.0"))) {
    NewWin.window.focus();
  }
}

function launchMapVanc() {
  var NewWin = window.open("mapVanc.html", "MAP", "width=468,height=470,scrollbars=no,resizable=no");    
  var browser = navigator.appName; 
  var version = navigator.appVersion;
  if (!((browser.substring(0, 9) == "Microsoft") && (version.substring(0,3) < "5.0"))) {
    NewWin.window.focus();
  }
}
function alertSize() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myWidth = window.innerWidth;
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myWidth = document.documentElement.clientWidth;
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myWidth = document.body.clientWidth;
    myHeight = document.body.clientHeight;
  }
  window.alert( 'Width = ' + myWidth );
  window.alert( 'Height = ' + myHeight );
}
function resizeWindow(){
	var isIE = (navigator.appName == "Microsoft Internet Explorer");
	var isWin = (navigator.userAgent.indexOf("Win") != -1);
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		//Non-IE
		myWidth = window.innerWidth;
		myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
		//IE 6+ in 'standards compliant mode'
		myWidth = document.documentElement.clientWidth;
		myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		//IE 4 compatible
		myWidth = document.body.clientWidth;
		myHeight = document.body.clientHeight;
	}
	if(isIE && isWin){
		if(myWidth%2 != 0){
			window.resizeBy(1,0);
		}
		if(myWidth < 934 && screen.availWidth >= 934){
			window.resizeBy(934 - myWidth,0);
		}
	}
}