function call_flash(url, width,height) {
	document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'" id=ShockwaveFlash1>')
	document.write('<param name="movie" value="'+url+'" />')
	document.write('<param name="quality" value="high" />')
	document.write('<embed src="'+url+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>')
	document.write('</object>')
}

function call_flash_pop(url, width,height) {
	document.write('<object clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"	codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="'+width+'" height="'+height+'" id=ShockwaveFlash1>')
	document.write('<param name="movie" value="'+url+'" />')
	document.write('<param name="quality" value="high" />')
	document.write('<embed src="'+url+'" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>')
	document.write('</object>')
}

function goUrl(menu) {
	var url ;
	//-- :: ¿¬¼ö¾È³» ::
	if (menu == '01') {
		url = "/user_info/AddUser.jsp";	
	} else if (menu == '02') {
		url = "/user_info/SearchID.jsp";	
	} else if (menu == '03') {
		url = "/user_info/AddUser.jsp?mode=modify";	
	} else if (menu == '11') {
		url = "/training_info/Process.jsp";	
	} else if (menu == '12') {
		url = "/training_info/Info.jsp";	
	} else if (menu == '13') {
		url = "/training_info/Plan.jsp";

	//-- :: Á¤º¸ÀÚ·á ::
	} else if (menu == '21') {
		url = "/info_data/EduData/list.jsp";
	} else if (menu == '22') {
		url = "/info_data/DataBoard/list.jsp";
	} else if (menu == '23') {
		url = "/info_data/AdminData/list.jsp";
	} else if (menu == '24') {
		url = "/info_data/SpecData/noti/list.jsp";
	} else if (menu == '25') {
		url = "/info_data/HelpData/list.jsp"

	//-- :: ¿¬¼ö¿ø¼Ò°³ ::
	} else if (menu == '41') {
		url = "/seti_info/SetiInfo1.jsp";
	} else if (menu == '42') {
		url = "/seti_info/SetiInfo2.jsp";	
	} else if (menu == '43') {
		url = "/seti_info/SetiInfo3.jsp";	
	} else if (menu == '44') {
		url = "/seti_info/SetiInfo4.jsp";	
	} else if (menu == '45') {
		url = "/seti_info/SetiInfo5.jsp";	

	//-- :: Âü¿©¸¶´ç ::
	} else if (menu == '51') {
		url = "/community/faq/List.jsp";	
	} else if (menu == '52') {
		url = "/community/qna/List.jsp";	
	} else if (menu == '53') {
		url = "/community/teacher/Info.jsp";	
	} else if (menu == '54') {
		url = "/community/Petition.jsp";	
	} else if (menu == '55') {
		url = "/community/open_data/Info.jsp";	

    //-- :: ¾Ë¸²¸¶´ç ::
	} else if (menu == '61') {
		url = "/notice/PoolBoard/list.jsp";	
	} else if (menu == '62') {
		url = "/notice/GuidBoard/m2_1.jsp";	
	} else if (menu == '63') {
		url = "/notice/webzine/List.jsp";	//¿¬¼ö¿øÀ¥Áø
	} else if (menu == '64') {
		url = "/notice/NoticeBoard/list.jsp";

   //-- ::  È¸¿ø°¡ÀÔ  ::
   } else if (menu == '71') {
		url = "/user_info/RealName.jsp?next=/user_info/AddUser.jsp";	    
	} else if (menu == '72') {
		url = "/user_info/SearchID.jsp";	
	} else if (menu == '73') {
		url = "/user_info/AddUser.jsp?mode=modify";	

	} else {
		url = "/index.jsp";
	}
	self.location.href = url;
}

function ComPopWin(mypage,myname,w,h)
{
	var win = null;
	var scroll = 'yes';
	
	if(mypage == "")
	{
		alert("urlÀ» ÀÔ·ÂÇÏ½Ê½Ã¿À.");
		return;
	}
	
	if(myname == "")
	{
		myname = "popwin";
	}

	if(w == "")
	{
		w = "400";
	}

	if(h == "")
	{
		h = "300";
	}
		
	LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;

	TopPosition = (screen.height) ? (screen.height-h)/2 : 0;

	//settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
	settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars=yes,resizable,status=yes';

	// win = window.open(mypage,myname,settings)
	win = window.open(mypage,myname,settings)
	
	return win;
}

function openWindow(url,width,height) {
        win = window.open(url,"pop_"+width+height, "status=no, scrollbars=yes, resizable=yes, width=" + width + ", height=" + height);
        win.focus();
}
function openWindowFix(url,width,height) {
        win = window.open(url,"pop"+width+height, "status=no, scrollbars=no, resizable=no, left=0, top=250, width=" + width + ", height=" + height);
        win.focus();
}

function setCookie( name, value, expiredays ) {
        var todayDate = new Date();
        todayDate.setDate( todayDate.getDate() + expiredays );
        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";"
}

function getCookie(name) {
        if (document.cookie.length>0) {
                c_start=document.cookie.indexOf(name + "=")
                if (c_start!=-1) {
                        c_start=c_start + name.length+1
                        c_end=document.cookie.indexOf(";",c_start)
                        if (c_end==-1) c_end=document.cookie.length
                        return unescape(document.cookie.substring(c_start,c_end))
                }
        }
        return ""
}

function openPopup(formField, url, w, h) {
        var isPop = getCookie(formField)
        if (isPop == "") {
                openWindow(url,w,h);
        }
}

function openPopupFix(formField, url, w, h) {
        var isPop = getCookie(formField)
        if (isPop == "") {
                openWindowFix(url,w,h);
        }
}

function popCookie(formField) {
        if (formField.checked) {
                setCookie(formField.value,'T',1);
                self.close();
        } else {
                self.close();
        }
}

function objTag_Script(id) {
	document.write(id.text);
	id.id = "";
}
