//ÇØÅ· ¹æÁö

// ÇÃ·¡ÀÌ¾î ÁÖ¼Ò ¾Ë¾Æ³»¼­ ºê¶ó¿ìÀú Ã¢¿¡¼­ ¹Ù·Î ºÎ¸£Áö ¸øÇÏ°Ô ÇÏ´Â ¸ðµâ

   var ptp = window.opener ;
   if( ptp == null ){
       document.location = "http://www.osg.or.kr/" ;
   }

var win_size = 1 ;
var win_width_mini=368;
var win_width=1022;
var win_height=760;

function winsize_big() { 
	win_size = 1 ;
	window.resizeTo(win_width, win_height); 
}

function winsize_small() { 
	if(win_size == 1){   
		win_size = 0 ;
		window.resizeTo(win_width_mini, win_height); 
	}
}

function chg_size(a){
	m2m_wm.DisplaySize=a;
}

function right(e) {
	if (navigator.appName == 'Netscape' && (e.which == 3 || e.which == 2))
		return false;
	else if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
		return false;
	return true;
}
document.onmousedown=right;

if (document.layers) 
	window.captureEvents(Event.MOUSEDOWN);
	window.onmousedown=right;


if (navigator.appName == "Netscape"){
	document.captureEvents(Event.MOUSEDOWN)
	document.onmousedown = checkClick
	
	function checkClick(ev) {
		if(ev.which !=1) {
			alert('ÁË¼ÛÇÕ´Ï´Ù. ')
		}
	}
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	if (init==true) with (navigator) {
		if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
			document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; 
		}
	}
	else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
		location.reload();
}

if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 

function nocontextmenu() {
   event.cancelBubble = true
   event.returnValue = false;

   return false;
}

function norightclick(e) {
   if (window.Event) {
	  if (e.which == 2 || e.which == 3)
		 return false;
   }
   else{
	  if (event.button == 2 || event.button == 3)
	  {
		 event.cancelBubble = true
		 event.returnValue = false;
		 return false;
	  }
   }
   
}

document.oncontextmenu = nocontextmenu;	 
document.onmousedown = norightclick;
