¿¡µàÄ«ÄÚ¸®¾Æ :: ±Û·Î¹ú±³À°ÀÇ Áß½É, ÀÎÀç¾ç¼ºÀÇ ¸ÞÄ«, ¿¡µàÄ«ÄÚ¸®¾Æ
");
}
function imgpreview2(id,uid)
{
var KimsonPopupCheck = getPopUpFlag(window.open('','iwin','left=0,top=0,width=100,height=100,scrollbars=yes,status=yes'));
KimsonPopupCheck.document.write("
¹Ì¸®º¸±â \
");
}
function showInvWin(url)
{
getPopUpFlag(window.open(url , 'articlewin' , 'left=0,top=0,width=800,height=600,scrollbars=yes,status=yes'));
}
function zoom(uid)
{
window.open('../../_system/module/shop/zoom.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=no,status=yes');
}
function zoom1(uid)
{
window.open('../../_system/module/shop/zoom1.php?uid=' + uid,'','left=0,top=0,width=480,height=555,scrollbars=no,status=yes');
}
function zoom2(uid)
{
window.open('../../_system/module/shop/zoom2.php?uid=' + uid,'','left=0,top=0,width=930,height=770,scrollbars=no,status=yes');
}
function getTpriceLoyaltyJs(tprice,val)
{
var tmpval = val ? val : 1;
return parseInt(Math.floor(parseInt(tprice)/tmpval ) * tmpval);
}
function getLoginNeed()
{
if(confirm('·Î±×ÀÎÇÏ¼Å¾ß ÀÌ¿ëÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù. \n\nÁö±Ý ·Î±×ÀÎÇϽðڽÀ´Ï±î?'))
{
location.href = "./login.php?referer=" + escape(location.href);
}
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ-autostart true
function media01(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
//html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ-autostart false
function media02(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ- ShowControls,ShowStatusBar false
function media03(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ-autostart true ShowTracker true
function media04(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ-autostart false ShowTracker true
function media05(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»ó,¿Àµð¿ÀÆÄÀÏ-autostart true ShowTracker true
function media06(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//µ¿¿µ»óÆÄÀÏ ¼Ò¸®¾È³ª°Ô- ShowControls,ShowStatusBar false
function media07(src,w,h){
html = '';
html += '';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += ' ';
html += '<\/object>';
document.write(html);
}
//À̹ÌÁö Á¡¼± ¾ø¾Ú
function bluring(){
if(event.srcElement.tagName=="A"||event.srcElement.tagName=="IMG") document.body.focus();
}
document.onfocusin=bluring;
// À̹ÌÁö ±ôºýÀÌ´Â Çö»ó ¹Ù·ÎÀâÀ½
document.execCommand('BackgroundImageCache', false, true);
//input box Å׵θ® »ö»óº¯°æ
function inFocus1(i) {
(i).style.border='2px solid #2D6ABD';
}
function outFocus1(i) {
(i).style.border='2px solid #AFAFAF';
}
function outFocus2(i) {
(i).style.border='1px solid #AFAFAF';
}
// img_url : À̹ÌÁö °æ·Î
// img_width À̹ÌÁö °¡·Î
// img_height À̹ÌÁö ³ôÀÌ
// À̹ÌÁö Å©·Ó
function show_img_crop(img_url,img_width,img_height,uid){
img = new Image();
img.src = img_url;
top_pos = (img.height * img_width / img.width - img_height) / 2 * -1;
document.write("");
document.write("
");
document.write(" ");
document.write(" ");
} //ÆäÀÌ¡ó¸®
function getPageLink2(lnum,p,tpage,imgpath)
{
var g_p = "< ÀÌÀü";
var g_n = "´ÙÀ½ >";
var g_q = "";
if(p < lnum+1) {
g_q += ""+g_p+" ";
}else{
var pp = parseInt((p-1)/lnum)*lnum;
g_q += ""+g_p+" ";
}
g_q += " ";
g_q += "
";
g_q += " ";
var st1 = parseInt((p-1)/lnum)*lnum + 1;
var st2 = st1 + lnum;
for(var jn = st1; jn < st2; jn++)
if ( jn <= tpage)
(jn == p)? g_q += ""+jn+" " : g_q += ""+jn+" ";
g_q += " ";
g_q += "
";
g_q += "
";
if(tpage < lnum || tpage < jn) {
g_q += ""+g_n+" ";
}else{
var np = jn; g_q += ""+g_n+" ";
}
document.write(g_q);
}
//ÆäÀÌ¡ó¸®
function getPageLink1(lnum,p,tpage,imgpath)
{
var g_p = " ";
var g_n = " ";
var g_q = "";
if(p < lnum+1) {
g_q += ""+g_p+" ";
}else{
var pp = parseInt((p-1)/lnum)*lnum;
g_q += ""+g_p+" ";
}
var st1 = parseInt((p-1)/lnum)*lnum + 1;
var st2 = st1 + lnum;
for(var jn = st1; jn < st2; jn++)
if ( jn <= tpage)
(jn == p)? g_q += ""+jn+" " : g_q += ""+jn+" ";
if(tpage < lnum || tpage < jn) {
g_q += ""+g_n+" ";
}else{
var np = jn; g_q += ""+g_n+" ";
}
document.write(g_q);
}
//ÆäÀÌ¡ó¸®
function getPageLink(lnum,p,tpage,imgpath)
{
var g_p1 = " ÀÌÀü ";
var g_p2 = " ÀÌÀü ";
var g_n1 = " ´ÙÀ½ ";
var g_n2 = " ´ÙÀ½ ";
var g_cn = " ";
var g_q = " ¸Ç¾Õ ";
if(p < lnum+1) { g_q += g_p1; }
else{ var pp = parseInt((p-1)/lnum)*lnum; g_q += ""+g_p2+" ";} g_q += g_cn;
var st1 = parseInt((p-1)/lnum)*lnum + 1;
var st2 = st1 + lnum;
for(var jn = st1; jn < st2; jn++)
if ( jn <= tpage)
(jn == p)? g_q += ""+jn+" "+g_cn : g_q += ""+jn+" "+g_cn;
if(tpage < lnum || tpage < jn) { g_q += g_n1; }
else{var np = jn; g_q += ""+g_n2+" "; }
g_q += " ¸Ç³¡ ";
document.write(g_q);
}
//ÆäÀÌÁöŬ¸¯
function getPageGo(n)
{
var p = getUriString('p');
var que = location.href.replace('&p='+p,'');
que = que.indexOf('?') != -1 ? que : que + '?';
que = que.replace('&q=view&uid=' + getUriString('uid') , '');
var xurl = que.split('#');
location.href= xurl[0] + '&p=' + n;
}
//ÆÄ¶ó¹ÌÅͰª
function getUriString(param)
{
var QuerySplit = location.href.split('?');
var ResultQuer = QuerySplit[1] ? QuerySplit[1].split('&') : '';
for (var i = 0; i < ResultQuer.length; i++)
{
var keyval = ResultQuer[i].split('=');
if (param == keyval[0]) return keyval[1];
}
return "";
}function getDateFormat(date , type)
{
var ck;
var rtstr = "";
var j = 0;
for(var i = 0; i < type.length; i++)
{
if(type.substring(i,i+1) == 'x')
{
rtstr += date.substring(j,j+1);
}
else {
j--;
rtstr += type.substring(i,i+1);
}
j++;
}
document.write(rtstr);
}
function getJosa(str, tail)
{
strTemp = str.substr(str.length - 1);
return ((strTemp.charCodeAt(0) - 16) % 28 != 0) ? str + tail.substr(0, 1) : str + tail.substr(1, 1);
}
//ŸÀÔºñ±³ (ºñ±³¹®ÀÚ , ºñ±³Çü½Ä ; ex: getTypeCheck(string , "1234567890") )
function getTypeCheck (s, spc)
{
var i;
for(i=0; i< s.length; i++)
{
if (spc.indexOf(s.substring(i, i+1)) < 0)
{
return false;
}
}
return true;
}
//ÄÞ¸¶»ðÀÔ (number_format)
function commaSplit(srcNumber)
{
var txtNumber = '' + srcNumber;
var rxSplit = new RegExp('([0-9])([0-9][0-9][0-9][,.])');
var arrNumber = txtNumber.split('.');
arrNumber[0] += '.';
do {
arrNumber[0] = arrNumber[0].replace(rxSplit, '$1,$2');
}
while (rxSplit.test(arrNumber[0]));
if (arrNumber.length > 1) {
return arrNumber.join('');
}
else {
return arrNumber[0].split('.')[0];
}
}
//ÄÞ¸¶Á¦°Å
function filterNum(str)
{
return str.replace(/^\$|,/g, "");
}
//¼ýÀÚüũ
function commaInsert(field)
{
if (!getTypeCheck(field.value , "0123456789,"))
{
alert('¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ');
field.value = '';
field.focus();
return false;
}
field.value = commaSplit(filterNum(field.value));
}
//¼ýÀÚüũ ¹öÁ¯ 2
function onlyNum(){
var key = event.keyCode;
if(!(key==8||key==9||key==13||key==46||key==144||(key>=48&&key<=57)||key==110||key==190)){
event.returnValue = false;
}
}
//¼ýÀÚüũ 3
function commaInsert2(field)
{
if (!getTypeCheck(field.value , "0123456789"))
{
alert('¼ýÀÚ¸¸ ÀÔ·ÂÇØ ÁÖ¼¼¿ä. ');
field.value = '';
field.focus();
return false;
}
field.value = filterNum(field.value);
}
//À̸ÞÀÏüũ
function validateEmail(email)
{
if(email.length <= 0)
{
return true;
}
var splitted = email.match("^(.+)@(.+)$");
if(splitted == null) return false;
if(splitted[1] != null )
{
var regexp_user=/^\"?[\w-_\.]*\"?$/;
if(splitted[1].match(regexp_user) == null) return false;
}
if(splitted[2] != null)
{
var regexp_domain=/^[\w-\.]*\.[A-Za-z]{2,4}$/;
if(splitted[2].match(regexp_domain) == null)
{
var regexp_ip =/^\[\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\]$/;
if(splitted[2].match(regexp_ip) == null) return false;
}// if
return true;
}
return false;
}function sendprint(uid)
{
getPopUpFlag(window.open('../../_system/module/print/print.htm?uid=' + uid , 'printwin' , 'top=0,left=0,width=650,height=600,scrollbars=yes,status=yes'));
}
function onedayprint()
{
getPopUpFlag(window.open('../../_system/module/print/print_oneday.htm' , 'printwin' , 'top=0,left=0,width=650,height=600,scrollbars=yes,status=yes'));
}
function sendemail(id,uid)
{
getPopUpFlag(window.open('../../_system/module/email/email.php?id='+id+'&uid=' + uid , 'emailwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function statview(id)
{
getPopUpFlag(window.open('index.php?q=stat&newwin=Y&id='+id , 'bbsstatwin' , 'top=0,left=0,width=650,height=600,scrollbars=no,status=yes'));
}
function singo(table,uid,userid,mbid)
{
if (mbid == "")
{
alert('ȸ¿øÀ¸·Î ·Î±×ÀÎÇØ ÁÖ¼¼¿ä. ');
return;
}
getPopUpFlag(window.open("index.php?q=singo&xsite=educakorea&newwin=Y&id=&tbl=" + table + "&suid=" + uid + "&userid="+userid, "singowin" , "left=0,top=0,width=550,height=330,scrollbars=no,status=yes"));
}
function getDivWidth(width,div)
{
var maxsize = parseInt(width);
var content = document.getElementById(div);
var img = content.getElementsByTagName("img");
for(i=0; i maxsize') )
{
var heightSize = ( eval('img[' + i + '].height')*maxsize )/eval('img[' + i + '].width') ;
eval('img[' + i + '].width = maxsize') ;
eval('img[' + i + '].height = heightSize') ;
}
}
content.innerHTML = content.innerHTML.replace(/ Image View\ ");
}
var objForm;
var objTable;
var intCellCount = 2;
var strTableId = "rTable";
var strFormName = "WriteForm";
var blnDebugMode = false;
var arrInsertHtml = new Array(intCellCount);
function getObjectById(pObjElementId)
{
return eval( "document.getElementById(\""+pObjElementId+"\")" );
}
function AddRow()
{
objForm = getObjectById( strFormName );
objTable = getObjectById( strTableId );
var intLoop;
var intRowsLength = objTable.rows.length;
var objTableRow;
var objTableCell;
if(intRowsLength > 4){
alert("÷ºÎÆÄÀÏÀº ÃÖ´ë 5°³±îÁö µî·ÏÇÒ ¼ö ÀÖ½À´Ï´Ù");
return;
}
arrInsertHtml[0] = "÷ºÎÆÄÀÏ"+parseInt(intRowsLength+1)+" ";
arrInsertHtml[1] = " ";
objTableRow = objTable.insertRow( intRowsLength );
objTableRow.bgColor = "#FFFFFF";
for( intLoop = 0 ; intLoop < intCellCount ; intLoop++ )
{
objTableCell = objTableRow.insertCell( intLoop );
objTableCell.innerHTML = arrInsertHtml[ intLoop ];
}
}
function user_copy(id){
document.getElementById('copyright').style.display = "";
var tmpObj = document.getElementById(id);
var doc = document.body.createTextRange();
doc.moveToElementText(tmpObj);
doc.execCommand('copy');
alert("³»¿ëÀÌ º¹»çµÇ¾ú½À´Ï´Ù\nºí·Î±×/±îÆä¿¡ ºÙ¿©³Ö±â(Ctrl+V)ÇÏ½Ã¸é µË´Ï´Ù");
}
function LayerAction(obj,layer)
{
var l = document.getElementById(layer);
if (l.style.display == 'none')
{
l.style.display = '';
obj.src = obj.src.replace("btn_layer_close","btn_layer_open");
}
else {
l.style.display = 'none';
obj.src = obj.src.replace("btn_layer_open","btn_layer_close");
}
var bcookie = getCookie('blog_cookie').split("|");
if (layer == 'blog_category') setCookie("blog_cookie", l.style.display + "|" + bcookie[1] + "|" + bcookie[2] + "|" + bcookie[3] + "|" + bcookie[4] + "|" + bcookie[5] + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_calendar') setCookie("blog_cookie", bcookie[0] + "|" + l.style.display + "|" + bcookie[2] + "|" + bcookie[3] + "|" + bcookie[4] + "|" + bcookie[5] + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_archives') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + l.style.display + "|" + bcookie[3] + "|" + bcookie[4] + "|" + bcookie[5] + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_post') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + bcookie[2] + "|" + l.style.display + "|" + bcookie[4] + "|" + bcookie[5] + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_comment') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + bcookie[2] + "|" + bcookie[3] + "|" + l.style.display + "|" + bcookie[5] + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_trackback') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + bcookie[2] + "|" + bcookie[3] + "|" + bcookie[4] + "|" + l.style.display + "|" + bcookie[6] + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_notice') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + bcookie[2] + "|" + bcookie[3] + "|" + bcookie[4] + "|" + bcookie[5] + "|" + l.style.display + "|" + bcookie[7] + "|", 60*60*24);
if (layer == 'blog_keyword') setCookie("blog_cookie", bcookie[0] + "|" + bcookie[1] + "|" + bcookie[2] + "|" + bcookie[3] + "|" + bcookie[4] + "|" + bcookie[5] + "|" + bcookie[6] + "|" + l.style.display + "|", 60*60*24);
}
function bookmark(){
window.external.AddFavorite('http://www.educakorea.co.kr', 'ÃʵÀ° Àü¹®±â¾÷ ¿¡µàÄ«ÄÚ¸®¾Æ')
}
function myeduca(){
document.getElementById('myeduca_layer').style.display = "block";
}
»ç¿ëÀÚ Á¤º¸
¸ÞÀÏ º¸³»±â
ÂÊÁö º¸³»±â
¹®ÀÚ º¸³»±â
1:1 ´ëÈ¿äû
µî·Ï °Ô½Ã¹°
µî·Ï ÄÚ¸àÆ®
°ü½Éȸ¿øµî·Ï
°ü½Éȸ¿øÁ¦¿Ü