function js_event_anti_right(e) { 
 evt = e || event; 
    try{ 
  if (document.all){ 
  if(evt.button == 2 || evt.button == 3) {    
 //alert('Don\'t! Mouse Right/Middle Click.');  
    js_event_anti_stop_event(evt); 
    return false;    } 
  }else { 
  if(evt.which == 3 || evt.which == 2) {  
 //alert('Don\'t! Mouse Right/Middle Click.');  
    js_event_anti_stop_event(evt); 
    return false; } 
  } 
    }catch(ex){ 
  return false; 
    } 
} 
//==== Å°º¸µå ÀÔ·Â ¸·±â 
function js_event_anti_processKey(e){ 
 evt = e || event; 
 alert('Don\'t! Key Input.'); 
  try{ 
  js_event_anti_stop_event(evt); 
  return false; 
    }catch(ex){ 
  return false; 
    } 
} 
//==== ÀÌº¥Æ® µ¿ÀÛ ¹«½Ã! 
function js_event_anti_stop_event(evt){ 
 if(window.event){ 
 window.event.keyCode = 0; 
 window.event.cancelBubble = true; 
 window.event.returnValue = true;    
 }else{ 
 evt.stopPropagation(); 
 evt.preventDefault(); 
 evt.initEvent; 
 } 
 return false; 
} 
//==== ±âº»¾ÈÆ¼ ÀÌº¥Æ® µî·Ï(¿À¸¥ÂÊ¸¶¿ì½º,µå·¡±×,Å°ÀÔ·Â) 
function js_event_anti(this_s){ 
//¹®Á¦Á¡ : FF¿¡¼­´Â µå·¡±× ÀÌº¥Æ®¸¦ Á¦¾îÇÒ ¼ö ¾ø´Ù. 
 if(!this_s){this_s = window.document;} 
 if(document.attachEvent){ 
 //this_s.attachEvent("onkeydown", js_event_anti_processKey ); 
 this_s.attachEvent("onmousedown", js_event_anti_right ); 
 this_s.attachEvent("onselectstart", js_event_anti_stop_event ); 
 this_s.attachEvent("ondragstart", js_event_anti_stop_event ); 
 this_s.attachEvent("oncontextmenu", js_event_anti_stop_event ); 
 } 
 else{ 
 window.captureEvents(Event.MOUSEDOWN); 
 window.captureEvents(Event.ONKEYDOWN); 
 this_s.addEventListener("keydown", js_event_anti_processKey , false); 
 this_s.addEventListener("mousedown", js_event_anti_right , false); 
 this_s.addEventListener("dragstart", js_event_anti_stop_event , false);  //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. 
 this_s.addEventListener("selectstart", js_event_anti_stop_event , false);  //FF¿¡¼­ Áö¿øµÇÁö ¾Ê´Â´Ù. 
 this_s.addEventListener("contextmenu", js_event_anti_stop_event , false); 
 } 
} 

	
//sns ¿¬µ¿ °ü·Ã ÇÔ¼ö
function khs_goTwitter(msg,url) {
	var href = "http://twitter.com/home?status=" + encodeURIComponent(msg) + " " + encodeURIComponent(url);
	var a = window.open(href, 'twitter', '');
	if ( a ) {
		a.focus();
	}
}
function khs_goMe2Day(msg,url,tag) {
	var href = "http://me2day.net/posts/new?new_post[body]=" + encodeURIComponent(msg) + " " + encodeURIComponent(url) + "&new_post[tags]=" + encodeURIComponent(tag);
	var a = window.open(href, 'me2Day', '');
	if ( a ) {
		a.focus();
	}
}

function khs_goFaceBook(msg,url) {
	var href = "http://www.facebook.com/sharer.php?u=" + encodeURIComponent(url) + "&t=" + encodeURIComponent(msg);
	var a = window.open(href, 'facebook', '');
	if ( a ) {
		a.focus();
	}
}

function khs_goYozmDaum(link,prefix,parameter) {
	var href = "http://yozm.daum.net/api/popup/post?sourceid=&link=" + encodeURIComponent(link) + "&prefix=" + encodeURIComponent(prefix) + "&parameter=" + encodeURIComponent(parameter);
	var a = window.open(href, 'yozmSend', 'width=466, height=356');
	if ( a ) {
		a.focus();
	}
}

function sns_popup(src,width,height) {
	var scrollbars = "1";
	var resizable = "no";
	if (typeof(arguments[3])!="undefined") scrollbars = arguments[3];
	if (arguments[4]) resizable = "yes";
	window.open(src,'','width='+width+',height='+height+',scrollbars='+scrollbars+',toolbar=no,status=no,resizable='+resizable+',menubar=no,left=0,top=0');
}
