//관리자 페이지 아이디에 대한 회원 정보 팝업
function openMemberPop(id){
    if(id == "")
    {
        alert("아이디가 없습니다.");
        return;
    }
    //alert("회원정보뜨는 팝업!! \n준비중입니다.");
    openPopup(window.documentRoot + "wise.adm/member/member_detail_ifr.jsp?sc_id=" + id + "&sc_popup_yn=y", "memberPopup" + id, "1100", "600", "yes");
}

//큐리스 구독 팝업
function curiesPop(){
    openPopup(window.mentoringRoot + "curies/mail_pop1.jsp", "mail_pop", "280", "300");
}

//멘티정보
function mentoringInfoPop(id){
    //alert("멘토링 회원정보 뜨는 팝업!! \n준비중입니다.");
}

function autoCursor(){
    var obj = event.srcElement;
    if(obj == document.frm.phone1)
    {
        if(obj.value.length == 3) document.frm.phone2.focus();
    }
	else if(obj == document.frm.phone2)
    {
        if(obj.value.length == 4) document.frm.phone3.focus();
    }
	else if(obj == document.frm.mobile1)
    {
        if(obj.value.length == 3) document.frm.mobile2.focus();
    }
	else if(obj == document.frm.mobile2)
    {
        if(obj.value.length == 4) document.frm.mobile3.focus();
    }
	else if(obj == document.frm.fax1)
    {
        if(obj.value.length == 3) document.frm.fax2.focus();
    }
	else if(obj == document.frm.fax2)
    {
        if(obj.value.length == 4) document.frm.fax3.focus();
    }
	else if(obj == document.frm.sawon_phone1)
    {
        if(obj.value.length == 3) document.frm.sawon_phone2.focus();
    }
	else if(obj == document.frm.sawon_phone2)
    {
        if(obj.value.length == 4) document.frm.sawon_phone3.focus();
    }
	else if(obj == document.frm.sawon_mobile1)
    {
        if(obj.value.length == 3) document.frm.sawon_mobile2.focus();
    }
	else if(obj == document.frm.sawon_mobile2)
    {
        if(obj.value.length == 4) document.frm.sawon_mobile3.focus();
    }
}

//로그인 페이지 스크립트
function goJoin(){
    return;

    if(window.userId != ""){
        alert("이미 로그인 중이십니다.");
        return;
    }
    location.href = window.wiseRoot + "login/member_agree.jsp";
}

//아이디 찾기
function searchIdPop(){
    return;
    if(window.userId != ""){
        alert("이미 로그인 중이십니다.");
        return;
    }
    openPopup2(window.wiseRoot + "login/id_pop.jsp", "idPop", "510", "320", "no");
}

//비밀번호찾기
function searchPassPop(){

    return;
    if(window.userId != ""){
        alert("이미 로그인 중이십니다.");
        return;
    }
    openPopup2(window.wiseRoot + "login/password_pop1.jsp", "passPop", "510", "320", "no");
}

//폰트 사이즈 조절
var fontSize = 12;

function contentViewFontPlus(){
    fontSize += 2;

	if(fontSize > 24) fontSize = 24;
    
    var aa = document.getElementById("bulletin_content_layer");

	var articleBody = document.getElementById("bulletin_content_layer").style.fontSize = fontSize + "px";
    
    var objs = aa.getElementsByTagName("font");

    for(i=0;i<objs.length;i++)  
    {
        objs[i].style.fontSize = fontSize + "px"; 
    }

    var objs2 = aa.getElementsByTagName("p");

    for(i=0;i<objs2.length;i++)  
    {
        objs2[i].style.fontSize = fontSize + "px"; 
    }
}

function contentViewFontMinus(){

    fontSize -= 2;

	if(fontSize < 12) fontSize = 12;
    
    var aa = document.getElementById("bulletin_content_layer");

	var articleBody = document.getElementById("bulletin_content_layer").style.fontSize = fontSize + "px"; 
    
    var objs = aa.getElementsByTagName("font");

    for(i=0;i<objs.length;i++)  
    {
        objs[i].style.fontSize = fontSize + "px"; 
    }

    var objs2 = aa.getElementsByTagName("p");

    for(i=0;i<objs2.length;i++)  
    {
        objs2[i].style.fontSize = fontSize + "px"; 
    }
}

//추천메일보내기
function bulletinSendMail(bulletinSeq, type, siteType, num){
    if(bulletinSeq == ""){
        alert("게시물이 없습니다.");
        return;
    }
    openPopup(window.mentoringRoot + "news/send_mail.jsp?sc_bulletin_seq=" + bulletinSeq + "&sc_type=" + type + "&sc_site_type=" + siteType + "&sc_num=" + num, "sendPop_" + bulletinSeq, "400", "370");
}

//WISE 게시물프린트
function wiseBulletinPrintPop(seq, num){
    if(seq == ""){
        alert("게시물이 없습니다.");
        return;
    }

    openPopup(window.wiseRoot + "inc/bulletin_print_pop.jsp?pk_seq=" + seq + "&sc_num=" + num, "bulletin_" + seq, "705", "600", "yes");
}

//멘토링게시물프린트
function mentoringBulletinPrintPop(seq, num){
    if(seq == ""){
        alert("게시물이 없습니다.");
        return;
    }

    openPopup(window.mentoringRoot + "inc/bulletin_print_pop.jsp?pk_seq=" + seq + "&sc_num=" + num, "bulletin_" + seq, "705", "600", "yes");
}

//게시물 스크랩하기
function bulletinScrap(type, bulletin_seq, site_type, board_seq){
    return;
    if(!mentoringLoginConfirm()) return;

    scrap_hidden.location.href = window.documentRoot + "inc/bulletin_scrap.jsp?actEvent=scrap&bulletin_seq=" + bulletin_seq + "&type=" + type + "&site_type=" + site_type + "&board_seq=" + board_seq;
}

//큐리스 미리보기
function curiesView(seq){
    if(seq == "") return;
    openPopup(window.documentRoot + "mentoring/curies/letter_pop.jsp?sc_letter_seq=" + seq, "letter_" + seq, "820", "600", "yes");
}

//로그인
function wiseLogin(){
    return;
    if(window.userId != ""){
        alert("이미 로그인 중이십니다.");
        return;
    }
    openLoginLayer(document.getElementById("jsp_self").innerHTML);
}

//로그아웃
function wiseLogout(){
    return;
    location.href = window.wiseRoot + "login/logout.jsp";
}

//로그인 confirm창 띄우는거
function wiseLoginConfirm(){
    return;
    if(!confirm("로그인 하신후 이용가능합니다. 로그인 하시겠습니까?")) return;
    location.href = "#top";
    openLoginLayer(document.getElementById("jsp_self").innerHTML);
}

//footer 스크립트
function wiseFooterLink(index){
    //alert(index);
    if(index == "1") openPopup(window.wiseRoot + "etc/use.jsp", "footerPop_" + index, 500, 390);
    else if(index == "2") openPopup(window.wiseRoot + "etc/person_info.jsp", "footerPop_" + index, 500, 390);
    else if(index == "3") openPopup(window.wiseRoot + "etc/e_mail.jsp", "footerPop_" + index, 500, 230);
    else if(index == "4") location.href = window.wiseWebUrl + "/center/center07.jsp";
}

//footer 오른쪽 링크
function main_footer_link(index){
    var url = "";
    if(index == "1") url = "http://www.mest.go.kr/";
    else if(index == "2") url = "http://www.krf.or.kr";
    //else if(index == "3") url = "http://www.sen.go.kr";
    else if(index == "3") url = "http://www.ewha.ac.kr";
    else if(index == "4") url = "http://www.biznetpia.co.kr";

    if(url == ""){
        alert("준비중입니다.");
        return;
    }
    else{
        window.open(url, null);
    }
}

//footer 오른쪽 링크
function mentoring_footer_link(index){
    var url = "";
    if(index == "1") url = "http://www.mest.go.kr/";
    else if(index == "2") url = "http://www.krf.or.kr";
    else if(index == "3") url = "http://www.ewha.ac.kr";
    else if(index == "4") url = "http://www.biznetpia.co.kr";

    if(url == ""){
        alert("준비중입니다.");
        return;
    }
    else{
        window.open(url, null);
    }
}

//로그인 부분
function wiseTopNaviLink(index){
    return;
    var url = "";
    if(index == "0") url = "index.jsp";
    else if(index == "1"){
        wiseLogin();
        return;
    }
    else if(index == "2"){
        goJoin();
        return;
    }
    else if(index == "3"){
        wiseLogout();
        return;
    }
    else if(index == "4") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/mypage.jsp";
    }
    else if(index == "5")
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/consult_detail.jsp";
    }
    else if(index == "6") url = "center/center07.jsp";
    else if(index == "7") url = "mypage/sitemap.jsp";
    else if(index == "11")
    {
        searchIdPop();
        return;
    }
    else if(index == "12")
    {
        searchPassPop();
        return;
    }
    else if(index == "13") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/member_out.jsp";
    }
    else if(index == "14")
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/member_scrap.jsp";
    }
    if(url == ""){
        alert("준비중입니다.");
    }
    else{
        location.href = window.wiseRoot + url;
    }
}

//서브 좌측 플래쉬
function haxagon_link(index){
    //alert(index);
    var url = "";
    if(index == "1") url = "center/center01.jsp";
    else if(index == "2") url = "program/program01_list.jsp";
    else if(index == "3") url = "program/program02_list.jsp";
    else if(index == "4") url = "program/program04_list.jsp";
    else if(index == "5") url = "program/program03_list.jsp";

    else if(index == "6") url = "program/program05_list.jsp";

    if(url == ""){
        alert("준비중입니다.");
    }
    else{
        location.href = window.wiseRoot + url;
    }
}

//와이즈 상단메뉴
function wiseTopMenuLink(index){
    //alert(index);
    var url = "";
    if(index == "0") url = "index.jsp";

    //wise 센터
    else if(index == "1") url = "center/center01.jsp";
    else if(index == "11") url = "center/center01.jsp";
    else if(index == "12") url = "center/center02.jsp";
    else if(index == "13") url = "center/center03.jsp";
    else if(index == "14") url = "center/center04.jsp";
    else if(index == "15") url = "center/center05_1.jsp";    
    else if(index == "16") url = "center/center06_1.jsp";
    else if(index == "161") url = "center/center_list.jsp";
    else if(index == "17") url = "center/center07.jsp";
    
    //프로그램
    else if(index == "2") url = "program/program01_list.jsp";
    else if(index == "21") url = "program/program01_list.jsp";
    else if(index == "22") url = "program/program02_list.jsp";
    else if(index == "23") url = "program/program03_list.jsp";
    else if(index == "24") url = "program/program04_list.jsp";
    else if(index == "25") url = "program/program05_list.jsp";
    else if(index == "26") url = "program/program06_list.jsp";
    
    //뉴스
    else if(index == "3") url = "news/notice_list.jsp";
    else if(index == "31") url = "news/notice_list.jsp";
    else if(index == "32") url = "news/media.jsp";
    else if(index == "321") url = "news/media.jsp";
    else if(index == "322") url = "news/news.jsp";
    else if(index == "33") url = "news/schedule_list.jsp";

    //큐리스
    else if(index == "4") 
    {
        //location.href = mentoringWebUrl + "/curies/index.jsp";
        window.open("http://www.wiset.or.kr/letter_list.aspx", null);
        return;
    }

    //wise멘토링 포털
    else if(index == "5")
    {
        location.href = mentoringWebUrl + "/index.jsp";
        return;
    }

    if(url != ""){
        location.href = window.wiseRoot + url;
    }
    else{
        alert("준비중입니다.");
    }
}

//로그인레이어팝업
function openLoginLayer(url){
    return;

    //alert(url);
    //$("#background_layer").width(document.documentElement.scrollWidth + "px");
    //$("#background_layer").height(document.documentElement.scrollHeight + "px");
    //$("#backgrond_layer").show();
    
    var objs = document.getElementsByTagName("select");

    for(i=0;i<objs.length;i++)  
    {
        objs[i].style.display = "none";
    }

    document.getElementById("background_layer").style.width = document.documentElement.scrollWidth + "px";
    document.getElementById("background_layer").style.height = document.documentElement.scrollHeight + "px";
    
    document.getElementById("background_layer").style.visibility = "visible";

    $("#loadingLayer").show();

    $.ajax({
        url: window.wiseRoot + "login/login_ifr.jsp?pre_url=" + escape(url),
        data: {},
        dataType: "html",
        type: "GET",
        success: function(data){
            $("#loginLayer").html(data);
        },
        error: function(xhr){
            alert("에러코드 : " + xhr.status);
        }
    });

    $("#loginLayer").show("1000");

    $("#loadingLayer").hide();
}

function closeLoginLayer(){
    return;
    //jQuery.fx.speeds.slow = 800;
    //$("#loginLayer").slideUp("slow");
    var objs = document.getElementsByTagName("select");

    for(i=0;i<objs.length;i++)  
    {
        objs[i].style.display = "inline";
    }

    $("#loginLayer").hide();

    document.getElementById("background_layer").style.visibility = "hidden";
}

//멘토링 스크립트

function openQuickLayer(afterObject){    
    return;
    if($("#mentoringUserId").html() == ""){
        wiseLoginConfirm();
        return;
    }

    /*if($("#mentoring_m_mentor_yn").html() != "y" && $("#mentoring_m_mentee_yn").html() != "y"){
        if(!confirm("멘토링회원만 이용하실 수 있습니다. \n멘토링 가입을 하시겠습니까?")) return;
        location.href = window.mentoringRoot + "room/mentoring_join.jsp";
    }
    else if($("#mentoring_m_mentor_yn").html() == "y" && $("#mentoring_m_mentor_approve_date").html() != "")
    {

    }
    else if($("#mentoring_m_mentee_yn").html() == "y" && $("#mentoring_m_mentee_approve_date").html() != "")
    {

    }
    else{
        
        if(($("#mentoring_m_mentor_approve_date").html() == "" && $("#mentoring_m_mentor_yn").html() == "y") && ($("#mentoring_m_mentee_approve_date").html() == "" && $("#mentoring_m_mentee_yn").html() == "y")){
            alert("멘토/멘티 승인 대기중입니다.");
            return;
        }
        else if($("#mentoring_m_mentor_approve_date").html() == "" && $("#mentoring_m_mentor_yn").html() == "y"){
            alert("멘토 승인 대기중입니다.");
            return;
        }
        else if($("#mentoring_m_mentee_approve_date").html() == "" && $("#mentoring_m_mentee_yn").html() == "y"){
            alert("멘티 승인 대기중입니다.");
            return;
        }
    }*/
    
    $("#quickLayer2").hide();

    $.ajax({
        url: window.mentoringRoot + "quick_layer_open.jsp",
        data: {},
        dataType: "html",
        type: "GET",
        success: function(data){
            openQuickLayer2(data);
        },
        error: function(xhr){
            alert("에러코드 : " + xhr.status);
        }
    });    
}

function openQuickLayer2(data){    
    $("#quickLayer").html("");
    $("#quickLayer").width("0px");    
    $("#quickLayer").removeClass("quickLayerOff");

    //버튼
    $("#quickLayerLeftPx").text("280");

    //버튼
    $("#quickLayerLeftPx2").text("1247");

    //$("#quickLayerArrow").hide();
    document.getElementById("quickLayerArrow").style.visibility = "hidden";

    $("#quickLayer").html(data);
    $("#quickLayer").addClass("quickLayerOn");
    $("#quickLayer").width("292px");
    
    //메인 right 배너
    $("#mentee_fellow_layer").css("margin-left", "1280px");
    $("#mentor_fellow_layer").css("margin-left", "1280px");
    $("#mentor_fellow_layer2").css("margin-left", "1280px");
    $("#quickLayer").show(3000); 
}

function closeQuickLayer(){
    $("#quickLayer2").show();

    $.ajax({
        url: window.mentoringRoot + "quick_layer_close.jsp",
        data: {},
        dataType: "html",
        type: "GET",
        success: function(data){
            closeQuickLayer2(data);
        },
        error: function(xhr){
            alert("에러코드 : " + xhr.status);
        }
    });

    $("#quickLayer2").hide();
}

function closeQuickLayer2(data){    
    //버튼
    $("#quickLayerLeftPx").text("28");
    $("#quickLayerLeftPx2").text("995");

    $("#quickLayer").html("");
    $("#quickLayer").removeClass("quickLayerOn");
    $("#quickLayer").addClass("quickLayerOff"); 
    
    $("#quickLayer2").show();
    //$("#quickLayer").html(document.getElementById("quickLayerClose").innerHTML);
    
    //메인 right 배너
    $("#mentee_fellow_layer").css("margin-left", "1020px");
    $("#mentor_fellow_layer").css("margin-left", "1020px");
    $("#mentor_fellow_layer2").css("margin-left", "1020px");
    
    $("#quickLayer").width("40px");
    $("#quickLayer").fadeIn(1000, $("#quickLayerArrow").show(2000));
    //document.getElementById("quickSwf").movie = "/mentoring/web/fla/arrow1.swf";

    //버튼
    //$("#quickLayerArrow").html("<script type=\"text/javascript\">printSwf(\"/mentoring/web/fla/flash_arrow1.swf\", \"25\", \"25\");</script>");
    //alert($("#quickLayerArrow").html());
}

function mentoringQuickLink(index){
    
    var url = "";
    
    if(index == "1"){
        wiseLogin();
        return;
    }
    else if(index == "2")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/mentoring_join.jsp";
    }
    else if(index == "3") url = "about/about1.jsp";
    else if(index == "4") url = "about/about5.jsp";
    else if(index == "5") url = "about/about4.jsp";
    else if(index == "6") url = "";
    else if(index == "7") url = "about/guide01.jsp";
    else if(index == "8")
    {
        wiseLogout();
        return;
    }

    if(url == ""){
        alert("준비중입니다.");
        return;
    }
    else{
        location.href = window.mentoringRoot + url;
    }
}

//멘토링 상단메뉴
function mentoringTopMenuLink(index){
    //alert(index);
    //return;
    var url = "";
    if(index == "0") url = "index.jsp";
    
    //wise 멘토링
    else if(index == "1") url = "about/about1.jsp";
    else if(index == "11") url = "about/about1.jsp";
    else if(index == "12") url = "about/about2.jsp";
    else if(index == "13") url = "about/guide01.jsp";
    else if(index == "14") url = "about/about4.jsp";

    else if(index == "15") url = "about/about5.jsp";
    else if(index == "16")
    {
        if(!mentoringLoginConfirm()) return;
        url = "about/about6.jsp";
    }
    
    //멘토링 자료실
    else if(index == "2") url = "news/news1.jsp";
    else if(index == "21") url = "news/news1.jsp";
    else if(index == "22") url = "news/news2.jsp";
    else if(index == "23") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "news/news3.jsp";
    }
    else if(index == "24") url = "news/news4.jsp";
    
    //멘토링룸
    else if(index == "3") 
    {
        if(mentoringLoginConfirm())
        {
            url = "room/note_list01.jsp";
        }
        else
        {
            return;
        }
    }
    else if(index == "31")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/mentoring_join.jsp";
    }
    else if(index == "32")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/mentoring_list.jsp";
    }
    else if(index == "33")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/note_list01.jsp";
    }
    else if(index == "34")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/mentor_list.jsp";
    }
    else if(index == "35")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/recommend.jsp";
    }
    else if(index == "36")
    {
        if(!mentoringLoginConfirm()) return;
        url = "room/mentoring_detail.jsp";
    }
    
    
    //wise세상
    else if(index == "4") url = "world/world1.jsp";
    else if(index == "41") url = "world/world1.jsp";
    else if(index == "42") url = "world/world2.jsp";
    else if(index == "43") url = "world/world3.jsp";
    else if(index == "44") url = "world/world4.jsp";
    else if(index == "45") url = "world/world5.jsp";
    else if(index == "46") url = "world/world6.jsp";
    else if(index == "47") url = "";
    else if(index == "48") url = "world/world8.jsp";
    else if(index == "49") url = "world/world9.jsp";

    
    //큐리스
    else if(index == "5")
    {
        window.open("http://www.wiset.or.kr/letter_list.aspx", null);
        return;
    }
    else if(index == "5") url = "curies/index.jsp";
    else if(index == "51") url = "curies/curies.jsp?sc_board_seq=23";
    else if(index == "52") url = "curies/curies.jsp?sc_board_seq=50";
    else if(index == "53") url = "curies/curies.jsp?sc_board_seq=25";
    else if(index == "54") url = "curies/curies.jsp?sc_board_seq=51";
    //else if(index == "55") url = "curies/curies.jsp?sc_board_seq=58";
    else if(index == "55")
    {
        //url = "curies/curies.jsp?sc_board_seq=53";
        window.open("http://www.wiset.or.kr/letter_list.aspx", null);
        return;
        //
    }
    else if(index == "56") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "curies/curies6.jsp";
    }
    else if(index == "57") url = "curies/curies7.jsp";

    //카페
    else if(index == "6") url = "cafe/index.jsp";
    else if(index == "61") url = "cafe/cafe1.jsp";
    else if(index == "62") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "cafe/cafe2.jsp";
    }
    else if(index == "63") url = "cafe/cafe3.jsp";
    else if(index == "64")
    {
        url = "cafe/cafe4.jsp";
    }
    else if(index == "65")
    {
        if(!mentoringLoginConfirm()) return;
        url = "cafe/cafe_make1.jsp";
    }

    else if(index == "71") url = "faq/faq.jsp";
    else if(index == "81") url = "sitemap/sitemap.jsp";
	else if(index == "91") url = "etc/search.jsp";

    if(url != ""){
        location.href = window.mentoringRoot + url;
    }
    else{
        alert("준비중입니다.");
    }
}

//로그인 부분
function mentoringTopNaviLink(index){
    var url = "";
    if(index == "0") 
    {
        location.href = window.mentoringRoot + "index.jsp";
        return;
    }
    else if(index == "1"){
        wiseLogin();
        return;
    }
    else if(index == "2"){
        goJoin();
        return;
    }
    else if(index == "3"){
        wiseLogout();
        return;
    }
    else if(index == "4") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/mypage.jsp";
    }
    else if(index == "5") 
    {
        location.href = window.mentoringRoot + "faq/faq.jsp"; //FAQ
        return;
    }
    else if(index == "6") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/consult_detail.jsp";
    }
    else if(index == "7") 
    {
        location.href = window.mentoringRoot + "sitemap/sitemap.jsp";//사이트맵
        return;
    }
    else if(index == "8") 
    {
        //location.href = window.wiseWebUrl + "/index.jsp";
        location.href = "http://www.wiset.or.kr/";
        return;
    }
	else if(index == "9")
	{
		location.href = window.mentoringWebUrl + "/index.jsp";
		return;
	}
	//큐리스
	else if(index == "10")
	{
		//location.href = window.mentoringWebUrl + "/curies/index.jsp";
        window.open("http://www.wiset.or.kr/letter_list.aspx", null);
		return;
	}
    else if(index == "11")
    {
        searchIdPop();
        return;
    }
    else if(index == "12")
    {
        searchPassPop();
        return;
    }
    else if(index == "13") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/member_out.jsp";
    }
    else if(index == "14") 
    {
        if(!mentoringLoginConfirm()) return;
        url = "mypage/member_scrap.jsp"; //스크랩한 게시물
    }

    else if(index == "15")
    {
        location.href = window.wiseWebUrl + "/index.jsp";
        return;
    }

	else if(index == "16")
	{
		location.href = window.mentoringWebUrl + "/cafe/index.jsp";
		return;
	}
    if(url == ""){
        alert("준비중입니다.");
    }
    else{
        location.href = window.wiseRoot + url;
    }
}

//멘토링에서 window.userId값이 없을때 confirm창 띄우면서 로그인 하기
function mentoringLoginConfirm(){
    if(window.userId == ""){
        if(!confirm("로그인 하신후 이용가능합니다. 로그인 하시겠습니까?")) return;
        location.href = "#top";
        openLoginLayer(document.getElementById("jsp_self").innerHTML);
        return false;
    }
    else{
        return true;
    }
}

//나의 메뉴추가하기
function addMenuPop(){
    openPopup(window.mentoringRoot + "etc/mymenu_add.jsp", "mymenu", "300", "140");
}

function flash_search(str){
    //alert(str);
    if(str == "" || str == undefined || str == "undefined")
	{
		alert("검색어를 입력하세요.");
		return;
	}
	else
	{
		location.href = window.mentoringRoot + "etc/search.jsp?sc_str=" + str ;
	}
}

//멘토링이 빛나는 밤 신청 
function mentoringWorkPop(url){
    if(window.userId == ""){
        location.href = "#top";
        openLoginLayer(url);
    }
    else{
        openPopup(window.documentRoot + "mentoring_pop.jsp", "mentoringPop", "607", "681");
    }    
}

//멘티 펠로우 신청폼
function menteeFellowPop(url){
    if(window.userId == ""){
        location.href = "#top";
        openLoginLayer(url);
    }
    else{
        openPopup(window.documentRoot + "popup/20100223/index.jsp", "menteeFellowPop", "617", "700", "yes");
    }    
}

//멘토 펠로우 신청폼
function mentorFellowPop(url){
    if(window.userId == ""){
        location.href = "#top";
        openLoginLayer(url);
    }
    else{
        openPopup(window.documentRoot + "www/program/online_pop.jsp?sc_category_seq=2&sc_type=mentor", "categorForm_2", "520", "600", "yes");
    }    
}

//주니어고학멘토링
function menteeFellowPop2(url){
    if(window.userId == ""){
        //location.href = "#top";
        openLoginLayer(url);
    }
    else{
        openPopup(window.documentRoot + "popup/20100406/index.jsp", "juaa", "600", "480", "no");
    }    
}

//온라인 멘토링 강좌
function lecturePop(url){
    openPopup(window.documentRoot + "lecture2/index_ifr.jsp", "lecture_pop", "1000", "640");
    return;
    if(window.userId == ""){
        openLoginLayer(url);
    }
    else{
        
    }
}
