/*******************************/
function ViewPrint(file1, file2, file3)
{
	window.open('http://www.deafkorea.com/ver/_Area/BoardPrin.html?tb='+file1+'&code='+file2+'&num='+file3,'print2','width=690,height=700,top=10,left=10,titlebar=no,resizable=no,scrollbars=yes,toolbar=yes,status=no,menubar=no');
}
function ViewPrint2(file1, file2, file3)
{
	window.open('http://www.deafkorea.com/ver/_board/BoardPrin.html?tb='+file1+'&code='+file2+'&num='+file3,'print2','width=690,height=700,top=10,left=10,titlebar=no,resizable=no,scrollbars=yes,toolbar=yes,status=no,menubar=no');
}
/**************************************/

/**************************************************************
    TRS Site¸¦ »õ·Î¿î Ã¢À¸·Î ¶ç¿ì´Â ÇÔ¼ö. 2007-05-04 By Deaf
**************************************************************/
function NewBigWindow() {
		var winwinX = window.screen.width;
		var winwinY = window.screen.height-30;
		window.open("http://www.trs.or.kr/top_index.html","webzine","top=0,left=0,scrollbars=yes,width="+winwinX+",height="+winwinY+",resizable=1");
	}
	
/**************************************************************
    È­¸éÈ®´ë ¹× È­¸é Ãà¼Ò. 2007-05-04 By Deaf
**************************************************************/

    var zoomRate = 20;            // È®´ë/Ãà¼Ò½Ã Áõ°¨·ü 
    var maxRate = 300;            //ÃÖ´ëÈ®´ë·ü 
    var minRate = 100;            //ÃÖ¼ÒÃà¼Ò·ü 

    function GetCookie(name){ 
        if (document.cookie != "") { 
            zoomc = document.cookie.split("; "); 
            for (var i=0; i < zoomc.length; i++) { 
                zoomv = zoomc[i].split("="); 
                if (zoomv[0] == name) { 
                    return  unescape(zoomv[1]); 
                } 
            }        
        }else{ 
            return ""; 
        } 
    } 

    function SetCookie(name,value){ 
        document.cookie = name + "=" + escape (value)+";path=/;"; 
    } 

    function GoZoom(contentid){ 
        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){ 
            document.body.style.zoom = GetCookie("zoomVal"); 
            currZoom=GetCookie("zoomVal"); 
        } 
        else{ 
            document.body.style.zoom = '100%'; 
            currZoom = '100%'; 
        } 
    } 

    //Zoom In & Zoom Out  all[contentid] -> document.body.style.zoom = 110% 
    function zoomInOut(contentid, how) { 

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){ 
            document.body.style.zoom = GetCookie("zoomVal"); 
            currZoom=GetCookie("zoomVal"); 
        } 
        else{ 
            document.body.style.zoom = '100%'; 
            currZoom = '100%'; 
        } 
        if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) { 
            return; 
        } 
        if (how == "in") { 
            document.body.style.zoom = parseInt(document.body.style.zoom)+zoomRate+'%' 
        } 
        else { 
            document.body.style.zoom = parseInt(document.body.style.zoom)-zoomRate+'%' 
        } 
        SetCookie("zoomVal",document.body.style.zoom); 
    } 

    //    +, - key event 
    document.onkeypress = getKey; 
     
    function getKey(keyStroke) { 
        isNetscape=(document.layers); 
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode; 
        which = String.fromCharCode(eventChooser).toLowerCase(); 
        which2 = eventChooser; 

        var el=event.srcElement; 

        if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))        //input,textarea ¾È¿¡¼­ÀÇ +.-°ªÀº ½ÇÇà¾ÈµÇµµ·Ï 
        {             
            if(which == "+" ) 
                zoomInOut('zoom', 'in'); 
            else if(which == "-" ) 
                zoomInOut('zoom', 'out'); 
        } 
    } 
	
	function MapPrint()
	{
		window.open('http://www.deafkorea.com/ver/_association/viewmap.html','print','width=665,height=700,top=10,left=10,titlebar=no,resizable=no,scrollbars=no,toolbar=yes,status=no,menubar=no');
	}
	
	function NewWin()
	{
		window.open('http://www.deafkorea.com/ver/_custom/mhelp.html','new','width=637,height=700,top=10,left=10,titlebar=no,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no');
	}
	

	function view_hand()
	{
		 window.open('http://www.deafkorea.com/images_event/hand.html','event_c','scrollbars=yes width=1024 height=768 left=0 top=0');
	}

  function winopen(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable, once)
  {

	
	toolbar_str = toolbar ? 'yes' : 'no';
    menubar_str = menubar ? 'yes' : 'no';
    statusbar_str = statusbar ? 'yes' : 'no';
    scrollbar_str = scrollbar ? 'yes' : 'no';
    resizable_str = resizable ? 'yes' : 'no';
    window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);

  }
function MM_FullWindow1(theURL, h) {
	history.go( h );
	window.open(theURL , "" , "Fullscreen=yes, type=Fullwindow, scrollbars=auto");
}

function view()
{
	 window.open('<?=$root_url?>/images_event/hand.html','event_c','scrollbars=yes width=1024 height=768 left=0 top=0');
}

//±ÛÀÚ È®´ë ºÎºÐ ½ÃÀÛ
var fontSize = 11;
var lineHeight = 20;
function fontPlus() {
if (fontSize < 17) {
fontSize = fontSize + 2;
setFaceSize();
}
}
function fontMinus() {
if (fontSize >= 11) {
fontSize = fontSize - 2;
setFaceSize();
}
}
function setFaceSize() {
lineHeight = fontSize+Math.round(1.1*fontSize);
obj = document.getElementById("font");
obj.style.fontSize = fontSize+"pt";
obj.style.lineHeight = lineHeight+"px"
}

function playload(file, tb, code)
{
window.open('http://www.deafkorea.com/ver/media/media.php?tb='+tb+'&code='+code+'&d='+file,'media','width=760,height=520,top=10,left=10,titlebar=no,resizable=no,scrollbars=no,toolbar=no,status=no,menubar=no');
}

function popuplecture(url)
{
window.open(url, "", "menubar=0,toolbar=0,scrollbars=no,resizable=no,status=no,width=1000, height=680")
return;
}
