
function MM_openBrWindow1(URL,winName,width,height) { 
	var w, strop
	strop = "width=" + width + ",height=" + height + 
			",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) + 
			",scrollbars=1,menubar=0,status=0,toolbar=0,location=0,directories=0,resizable=1";
    var win = window.open(URL,winName,strop);
	win.focus();

    return win;  
}

function MM_openBrWindow2(URL,winName,width,height) { 
	var w, strop
	strop = "width=" + width + ",height=" + height + 
			",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) + 
			",scrollbars=0,menubar=0,status=0,toolbar=0,location=0,directories=0,resizable=0";
    var win = window.open(URL,winName,strop);
	win.focus();
  
    return win;
}

function MM_openBrWindow3(URL,winName,width,height) { 
	var w, strop
	strop = "width=" + width + ",height=" + height + 
			",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) + 
			",scrollbars=1,menubar=0,status=no,toolbar=0,location=0,directories=0,resizable=0";
    var win = window.open(URL,winName,strop);
	win.focus();

    return win;  
}
function MM_openBrWindow4(URL,winName,width,height) {
    var w, strop
    strop = "width=" + width + ",height=" + height +
                    ",left=" + (screen.width/2 - width/2) + ",top=" + (screen.height/2 - height/2) +
                    ",scrollbars=1,menubar=1,status=1,toolbar=1,location=1,directories=1,resizable=1";
    var win = window.open(URL,winName,strop);
    win.focus();

    return win;
}

function openSimpleWindow(url, name, width, height) {
    window.open(url, name, 'scrollbars=no, resizable=yes, statusbar=no, status=no, width='+width+', height='+height);
}

function lecture_openBrWindow1(URL,winName,width,height) { 
    var w, strop
    strop = "width=" + width + ",height=" + height + 
            ",left=" + (screen.width/2 - width/2) + ",top=" + (20) + 
            ",scrollbars=1,menubar=0,status=0,toolbar=0,location=0,directories=0,resizable=no";
    var win = window.open(URL,winName,strop);
    win.focus();

    return win;  
}

String.prototype.popupView = function() {
    var img_view = this;
    var x = x + 20 ;
    var y = y + 30 ;
    //htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:pointer;}</style></head><body scroll=auto onload='width1=document.getElementById(\"Timage\").width;if(width1>1024)width1=1024;height1=document.getElementById(\"Timage\").height;if(height1>768)height1=768;top.window.resizeTo(width1+30,height1+54);' onclick='top.window.close();'><img src='"+img_view+"' title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>";
    htmlz = "<html><head><title>ÀÌ¹ÌÁöÅ©°Ôº¸±â</title><style>body{margin:0;cursor:pointer;}</style></head><body scroll=auto onload='width1=document.getElementById(\"Timage\").width;if(width1>1024)width1=1024;height1=document.getElementById(\"Timage\").height;if(height1>768)height1=768;top.window.resizeTo(width1+15,height1+54);' onclick='top.window.close();'><img src='"+img_view+"' title='Å¬¸¯ÇÏ½Ã¸é ´ÝÈü´Ï´Ù.' name='Timage' id='Timage'></body></html>";
    imagez = window.open('', "image", "width="+ 100 +", height="+ 100 +", top=0,left=0,scrollbars=auto,resizable=1,toolbar=0,menubar=0,location=0,directories=0,status=1");
    imagez.document.open();
    imagez.document.write(htmlz);
    imagez.document.close();
}

