﻿//공통 폼 속성 및 이벤트 설정 (주)닷넷소프트 유승호

//화면 처리 ASPX가 클라이언트에 Load된 후 실행해야 될 로직 처리
function fn_WindowOnLoad()
{
	try
	{
		try
		{
			if ( document.all.errorMessage.value.length > 0 )// 1. 에러 메시지가 있는 경우 팝업 출력
				fn_OpenErrorMessage(document.all.errorMessage.value);
			if ( document.all.informationMessage.value.length > 0 )// 2. Information이 있는 경우 팝업 출력
				fn_OpenInformation(document.all.informationMessage.value);
			if ( document.all.confirmMessage.value.length > 0 )// 3. Confirm이 있는 경우 팝업 출력
				return fn_OpenConfirm(document.all.confirmMessage.value);
			var strClose = ""
			strClose = document.all.winClosed.value;
			if ( strClose == "closed" )// 4. 팝업창 닫기
			{
				if ( document.all.winClosed.getAttribute("return").length > 0 )
						window.returnValue = document.all.winClosed.getAttribute("return");
				//top.window.close();
				parent.self.close();
				return;
			}
			document.onkeydown = fn_PreventNavigateBack;// 5. 백스페이스로 이전 페이지로 가는 것을 막는다.
		}
		catch ( exception ){}
		
		try
		{
			// 7. 폼 Unload 확인
			document.body.onbeforeunload = fn_ClosingCheck;
			window.onbeforeprint = beforePrint;
			window.onafterprint = afterPrint;

			// 8. 사용자 정의 폼 로드 함수 호출
			try
			{
    			FormLoad();
			}
			catch(e){}

			try
			{
				//포틀릿이 있다면, 포틀릿초기화
				DotNetSoft_PortletInitialize();
			}
			catch(e){}

			ClientRedirect();
		}
		catch(exception){} 
	}
	catch(exception)
	{
		fn_Progressbar(false);
	}
	finally
	{
		fn_Progressbar(false);
	}
}
window.onload = fn_WindowOnLoad;

//Window_OnUnLoad 이벤트 발생전에 발생되는 이벤트, 페이지 닫기 취소를 할 수 있다.
//		  OnBeforeUnLoad 이벤트에 별도의 이벤트 핸들러를 연결하여 처리한다.
//		  ex) window.onbeforeunload = fnClosingChecker;
function fn_ClosingCheck()
{
	try
	{
		var strMsg = FormBeforeUnLoad();
		
		if ( strMsg.length > 0 )
		{
			strMsg = "\n" + strMsg;
			return strMsg;
		}
	}
	catch ( exception ){}
}

//텍스트 박스 이외는 backspace 입력을 제한한다.
function fn_PreventNavigateBack()
{
	var strTagType;
	if ( window.event.keyCode == 8 )
	{
		if ( window.event.srcElement.tagName.toUpperCase() == "INPUT" )
		{
			strTagType = window.event.srcElement.getAttribute("type").toUpperCase();
			if ( strTagType == "TEXT")
			{
				window.event.returnValue = true;
				return;
			}
		}
		else if( window.event.srcElement.tagName.toUpperCase() == "TEXTAREA" )
		{
			window.event.returnValue = true;
			return;
		}
	}
	else
	{
		window.event.returnValue = true;
	}
	
}

//커서셋팅
function fn_SetCursor(toggle)
{
	var oTemp = document.body;
	if(toggle)
	{
		oTemp.style.cursor = "wait";
	}
	else
	{
		oTemp.style.cursor = "default";
	}
}

//그리드에서 LinkCell에 마우스 올렸을때, TR에 스타일 지정하기
function fn_GridLinkCellStyleMouseOver(oThis,strTemp)
{
	var oTemp;
	oTemp = oThis;
	for(i = 0 ; i < 10 ; i++)
	{	
		oTemp = oTemp.parentElement;
		if(oTemp.tagName.toUpperCase() == 'TR')
		{
			oTemp.className = strTemp;
			return;
		}
	}
}

//프린트 하기전에 설정
function beforePrint()
{
	var i = 0 ; 
	for(i = 0 ; i < document.all.length ; i++)
	{
		if(document.all[i].pntOption != null)
		{
			if(document.all[i].pntOption == "true")
			{
				document.all[i].style.display = "inline";					
			}
			else 
			{
				document.all[i].style.display = "none";					
			}
		}
	}
}

//프린트 한후에 설정
function afterPrint()
{
	var i = 0 ; 
	for(i = 0 ; i < document.all.length ; i++)
	{
		if(document.all[i].pntOption != null)
		{
			if(document.all[i].pntOption == "false")
			{
				document.all[i].style.display = "inline";					
			}
			else
			{
				document.all[i].style.display = "none";					
			}
		}
	}
}

//다운로드
function fun_Download(objParam)
{
    var strUrl;
    var strName;
    var strFeature;
    
    try
    {
        strUrl = "/"+_strWebRoot+"/valueadded/PremiumNews/YIVW_DownInfo.aspx" + objParam;
        strName = "Download";
        strFeature = "width=485,height=265,scrollbars=no,toolbar=no,location=no,resizable=no,status=no,menubar=no,resizable=no";
        fn_OpenDialog(strUrl, strName, strFeature);
    }
    catch(exception)
    {
        fn_OpenErrorMessage(exception.description);
    }
}

//################################### 태깅서비스 팝업메뉴

function fn_ParseYnaLinkTag(oContentBody)
{
	var oYnaLink = null;
	oYnaLink = oContentBody.getElementsByTagName("A");

	if(!oYnaLink)
		return;
		
	if(oYnaLink.length)
	{
		for(var nIdx=0; nIdx<oYnaLink.length; nIdx++)
		{
		    if(oYnaLink[nIdx].outerHTML)
			{
	            oYnaLink[nIdx].onmouseover = ShowToolTip;
	            oYnaLink[nIdx].onmouseout = HideToolTip;
                oYnaLink[nIdx].onclick = showMenu;
        	    if(!oYnaLink[nIdx].href)
			        oYnaLink[nIdx].style.color = "#993333";
			    oYnaLink[nIdx].style.cursor = "hand";
                
                if(oYnaLink[nIdx].children.length && oYnaLink[nIdx].children[0].tagName == "FONT")
                    oYnaLink[nIdx].children[0].color = oYnaLink[nIdx].style.color;
			}
		}
	}
	else
	{
	    if(oYnaLink.outerHTML)
		{
	        oYnaLink.onmouseover = ShowToolTip;
	        oYnaLink.onmouseout = HideToolTip;
            oYnaLink.onclick = showMenu;
	        oYnaLink.style.color = "#993333";
	        oYnaLink.style.cursor = "hand";
	    }
	}
}

var YnaMenuItems = new Array();
var nItemNum = 0;

var YnaMenuWidth = 110; // 메뉴상자의 가로크기
var YnaMenuHeight = 0; // 메뉴상자의 높이
var YnaMenuDelay = 50; // 메뉴 딜레이 시간
var YnaMenuSpeed = 3; // 메뉴 로딩 속도
var YnaMenuOffset = 2; //마우스 포인터로부터의 메뉴상자의 거리
var strMenuContent = "";
var YnaMenuPopup = window.createPopup();

function InitYnaPopupMenu()
{
    YnaMenuItems = new Array();
    nItemNum = 0;
    
    YnaMenuHeight = 4;
}

function addMenuItem(text, url, img)
{
	if(img) 
		YnaMenuItems[nItemNum] = new Array(text, url, img);
	else if(text) 
		YnaMenuItems[nItemNum] = new Array(text, url);
	else 
		YnaMenuItems[nItemNum] = new Array();

	nItemNum++;
}

function lenderMenuItem()
{
//    strMenuContent = '<table id="rightMenu" width="0" height="0" cellspacing="0" cellpadding="0" style="font:menu;color:menutext;"><tr height="1"><td style="background:threedlightshadow" colspan="4"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight" colspan="2"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="10"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"><table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;">';
//    for(m=0;m<YnaMenuItems.length;m++)
//    {
//	    if(YnaMenuItems[m][0] && YnaMenuItems[m][2])
//		    strMenuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + YnaMenuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap><img src="' + YnaMenuItems[m][2] + '"></td><td nowrap>' + YnaMenuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
//	    else if(YnaMenuItems[m][0])
//		    strMenuContent += '<tr height="17" onMouseOver="this.style.background=\'highlight\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'threedface\';this.style.color=\'menutext\';" onClick="parent.window.location.href=\'' + YnaMenuItems[m][1] + '\'"><td style="background:threedface" width="1" nowrap></td><td width="21" nowrap></td><td nowrap>' + YnaMenuItems[m][0] + '</td><td width="21" nowrap></td><td style="background:threedface" width="1" nowrap></td></tr>';
//	    else
//		    strMenuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';
//    }
//    strMenuContent += '</table></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedhighlight"></td><td style="background:threedface"></td><td style="background:threedshadow"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threedlightshadow"></td><td style="background:threedshadow" colspan="3"></td><td style="background:threeddarkshadow"></td></tr><tr height="1"><td style="background:threeddarkshadow" colspan="5"></td></tr></table>';

    var strOnclik = "";
			
    strMenuContent = '<table cellspacing="0" cellpadding="0" nowrap style="font:menu;color:menutext;cursor:default;" style="border-color:Navy; border-width:1px; border-style:solid" width="100%">';
    strMenuContent += '<tr height="1"><td style="background:white" nowrap></td></tr>';
    for(m=0;m<YnaMenuItems.length;m++)
    {
		if(YnaMenuItems[m][1])
		{
			if(YnaMenuItems[m][1].indexOf("javascript:") > -1)
				strOnclik = "javascript:parent." + YnaMenuItems[m][1].split("javascript:")[1];
			else
				strOnclik = "javascript:parent." + YnaMenuItems[m][1];
		}
		
	    if(YnaMenuItems[m][0] && YnaMenuItems[m][2])
		    strMenuContent += '<tr height="20" onMouseOver="this.style.background=\'Navy\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'white\';this.style.color=\'menutext\';" onclick="' + strOnclik + '"><td style="background:white" width="1" nowrap></td><td width="20" nowrap align="center"><img src="' + YnaMenuItems[m][2] + '"></td><td nowrap>' + YnaMenuItems[m][0] + '</td><td style="background:white" width="1" nowrap></td></tr>';
	    else if(YnaMenuItems[m][0])
		    strMenuContent += '<tr height="20" onMouseOver="this.style.background=\'Navy\';this.style.color=\'highlighttext\';" onMouseOut="this.style.background=\'white\';this.style.color=\'menutext\';" onclick="' + strOnclik + '"><td style="background:white" width="1" nowrap></td><td width="20" nowrap></td><td nowrap>' + YnaMenuItems[m][0] + '</td><td style="background:white" width="1" nowrap></td></tr>';
	    else
		    strMenuContent += '<tr><td colspan="5" height="4"></td></tr><tr><td colspan="5"><table cellspacing="0"><tr><td width="2" height="1"></td><td width="0" height="1" style="background:threedshadow"></td><td width="2" height="1"></td></tr><tr><td width="2" height="1"></td><td width="100%" height="1" style="background:threedhighlight"></td><td width="2" height="1"></td></tr></table></td></tr><tr><td colspan="5" height="3"></td></tr>';

        YnaMenuHeight += 20;
    }
    strMenuContent += '<tr height="1"><td style="background:white" nowrap></td></tr></table>';

    YnaMenuPopup.document.body.innerHTML = strMenuContent;
}


function showMenu(contentID, contentName, Type)
{
    var oElement = null;
    var strContentID = "";
    var strContentName = "";
    var strContentInfo = "";
    var strType = "";
    var strUrlParam = "";
    var strUrl = "";
    var strInnerText = "";
    var strHref = "";

    if(event.srcElement.tagName == "A")
        oElement = event.srcElement;
    else //상위 A테그를 찾기위해 돌아버린다.
        oElement = event.srcElement.parentElement.parentElement;

    if(!oElement) return;

    //열려있는 툴팁을 닫는다.
    HideToolTip();
    
    //메뉴 아이템 배열 초기화
    InitYnaPopupMenu();

    strContentID = oElement.id != null ? oElement.id : "";
    strContentName = oElement.innerText != null ? oElement.innerText : "";
    strContentInfo = oElement.info != null ? oElement.info : "";
    strType = oElement.type != null ? oElement.type : "";
    strInnerText = oElement.innerText;
    strHref = oElement.href != null ? oElement.href : "";

    if(strType.toUpperCase() == "ISSUE")
    {
        nWidth = 500;
        nHeight = 400;
        strUrl = "ValueAdded/SearchIntegrate/YIVW_showRelationIssueMain.aspx?ContentsID="+strContentID+"&InnerText=" + escape(strInnerText) + "&PAGINGPAGESIZE=5&Design=N&RelationListYN=N";
        addMenuItem("내용보기","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=yes,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
        
        nWidth = 500;
        nHeight = 550;
        strUrl = "ValueAdded/SearchIntegrate/YIVW_showRelationIssueMain.aspx?ContentsID="+strContentID+"&InnerText=" + escape(strInnerText) + "&PAGINGPAGESIZE=5&Design=N&RelationListYN=Y";
        addMenuItem("관련이슈","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=yes,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
    }
    else if(strType.toUpperCase() == "PERSON")
    {
        nWidth = 670;
        nHeight = 700;
        strUrl = "ValueAdded/SearchIntegrate/YIVW_showSearchPeopleContent.aspx?strContentsID=" + strContentID;
        addMenuItem("상세정보","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
        
        nWidth = 500;
        nHeight = 500;
        strUrl = "ValueAdded/SearchIntegrate/YIVW_showRelationArticleList.aspx?ContentsID=" + strContentID + "&InnerText=" + escape(strInnerText) + "&PAGINGPAGESIZE=13";
        addMenuItem("관련뉴스","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
    }
    else if(strType.toUpperCase() == "COMPANY")
    {
        nWidth = 710;
        nHeight = 619;
        
        if(strContentID.length > 0)
        {
            strUrlParam = "?JongmokCode=" + strContentID + "&JongmokName=" + escape(strContentName);

            strUrl = "ValueAdded/Portlet/Stock/YIVW_JongmokDetail_Hyunjaega.aspx" + strUrlParam;
            addMenuItem("현재가","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");

            strUrl = "ValueAdded/Portlet/Stock/YIVW_RealChart.aspx" + strUrlParam;
            addMenuItem("챠트","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");

            strUrl = "ValueAdded/Portlet/Stock/YIVW_JongmokPublicNotice.aspx" + strUrlParam;
            addMenuItem("공시","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");

            strUrl = "ValueAdded/Portlet/Stock/YIVW_JongmokRelationNews.aspx" + strUrlParam;
            addMenuItem("뉴스","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");

            strUrl = "ValueAdded/Portlet/Stock/YIVW_jongmokRelationPress.aspx" + strUrlParam;
            addMenuItem("보도자료","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
            
            nWidth = 710;
            nHeight = 560;
            strUrl = "Valueadded/portlet/AXIS/enterpriseOutline.aspx" + strUrlParam;
            addMenuItem("기업정보","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
        }
        else
        {
            strUrlParam = "?JongmokName=" + escape(strContentName) + "&PublicYN=N";

            strUrl = "ValueAdded/Portlet/Stock/YIVW_JongmokRelationNews.aspx" + strUrlParam;
            addMenuItem("뉴스","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");

            strUrl = "ValueAdded/Portlet/Stock/YIVW_jongmokRelationPress.aspx" + strUrlParam;
            addMenuItem("보도자료","fn_OpenCenterDialog('"+strUrl+"','"+nWidth+"','"+nHeight+"','"+strType+"','scrollbars=no,resizable=no');",fn_GetWebRoot() + "/Images/ValueAdded/SkinBlue/Common/dot1.gif");
        }
    }
    else
    {
        if(strHref.length > 0)
        {
//            if(!oElement.target)
//                oElement.target = '_blank';
        }
        return;
    }

    //팝업메뉴 아이템 생성
    lenderMenuItem();

	nMenuXPos = event.clientX + YnaMenuOffset;
	nMenuYPos = event.clientY + YnaMenuOffset;
	nMenuXIncrement = YnaMenuWidth / YnaMenuSpeed;
	nMenuYIncrement = YnaMenuHeight / YnaMenuSpeed;
	oMenuTimer = setTimeout("openMenu(0,0)", YnaMenuDelay);

	return false;
}

function openMenu(height, width)
{
	iHeight = height;
	iWidth = width;

	YnaMenuPopup.show(nMenuXPos, nMenuYPos, iWidth, iHeight, document.body);

	if(iHeight < YnaMenuHeight)
		oMenuTimer = setTimeout("openMenu(iHeight + nMenuYIncrement, iWidth + nMenuXIncrement)", 1);
	else
		clearTimeout(oMenuTimer);
}

function hideMenu()
{
	YnaMenuPopup.hide();
	return false;
}


//태깅 툴팁
var origWidth, origHeight; 
var tooltip, tipcss; 

function initToolTip() 
{
	//tooltip = document.all["YnaLinkToolTip"]; 	
    var oForm = document.forms[0];
    var oDiv = null;
    
    if(oForm == null)
        return;

    oDiv = document.createElement("div");
    oDiv.id = "YnaLinkToolTip";
    oDiv.style.position = "absolute";
    oDiv.style.visibility = "hidden";
    oDiv.style.width = "0";  // 상자의 가로
	oDiv.style.height = "0";  // 상자의 가로
	oDiv.innerText = "";
    
    oForm.children(0).insertAdjacentElement("BeforeBegin", oDiv);

    tooltip = oDiv;//document.all["YnaLinkToolTip"];
    
    if(!tooltip)
        return;

	tipcss = tooltip.style; 

	tipcss.width = "0%";  // 상자의 가로
	tipcss.height = "0%";  // 상자의 가로
	tipcss.fontSize = "9pt";  // 폰트
	tipcss.color = "orange";  // 글자색
	tipcss.backgroundColor = "#f5f5f5"; // 배경색 
	tipcss.borderColor = "darkblue"; // 상자의 테두리 색상 
	tipcss.borderWidth = "1px"; // 상자의 테두리 두께 
	tipcss.padding = "3px"; 
	tipcss.borderStyle = "solid"; // 상자의 외곽선 스타일 
	tipcss.backgroundColor = "#FFFFFF"; 

	if (tooltip) 
		document.onmousemove = trackMouse; 
} 

var t1,t2;         
var tipOn = false;         
function ShowToolTip(bodyHtml)
{
    if(YnaMenuPopup.isOpen)
        return;
    
    var strBody = "";
    var oElement = null;
    
	if (!tooltip)
		return; 
	
	if (t1)
		clearTimeout(t1);
	
	if (t2)
		clearTimeout(t2); 
	
	tipOn = true; 

	if(!bodyHtml)
	{
	    if(event.srcElement.tagName == "A")
	    {
	        oElement = event.srcElement;
	    }
	    else //상위 A테그를 찾기위해 돌아버린다.
	    {
	        oElement = event.srcElement.parentElement.parentElement;
	    }
	 
	    var test = GetPeoplePhoto(oElement.id);

        if(oElement.info)
            strBody = fn_ReplaceAll(oElement.info, "\n", "<br>");
        else
            strBody = ""
	}
	else
	{
	    strBody = bodyHtml;
	}


    if(strBody.length > 0)	
    {
	    tooltip.innerHTML = '<table width="100%"><tr><td valign="top" nowrap><span style="font-size:9pt;">' + strBody + '</span></td></tr></table>';  
	    t1=setTimeout("tipcss.visibility='visible'",100); 
	}
} 

var mouseX, mouseY; 
function trackMouse() 
{ 
	mouseX = window.event.clientX + document.body.scrollLeft; 
	mouseY = window.event.clientY + document.body.scrollTop; 
	if (tipOn)
		positionTip(); 
} 

function positionTip()
{ 
	var tpWd = tooltip.clientWidth;//tooltip.offsetWidth; 
	var tpHt = tooltip.clientHeight;//tooltip.offsetHeight; 
	var winWd = document.body.clientWidth+document.body.scrollLeft; 
	var winHt = document.body.clientHeight+document.body.scrollTop; 
	
	if ((mouseX+12+tpWd)>winWd) 
		tipcss.left = mouseX-(tpWd+12)+"px"; 
	else 
		tipcss.left = mouseX+12+"px"; 

	if ((mouseY+12+tpHt)>winHt) 
		tipcss.top = mouseY-(tpHt+12)+"px"; 
	else 
		tipcss.top = mouseY+12+"px"; 
} 

function HideToolTip()
{ 
	if (!tooltip)
		return; 

    t2 = setTimeout("tipcss.visibility='hidden'",100); 
    tipOn = false; 
} 

function GetPeoplePhoto(contentsID)
{
//    var test = "";
//    
//        test = fn_GetXmlDomDocument("http://localhost/YNA/ValueAdded/searchintegrate/YIVW_showGetThumbnailPathXml.aspx?contentsID=CKR20060314013900370");
//   
//    return test;
}

// 20100208 mina 새로띄우기 추가.
function fn_PopupMenu(MenuUrl)
{
	var x;
	var y;

	//x = window.screen.availWidth;
	//y = window.screen.availheight;

	x = 350;
	y = 250;
	etcParam = "toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0";

	window.open(MenuUrl,"", etcParam + ",width=" + x + ",height=" + y);
}

//--> 
