function GoMenu(a,b){var c;var d=document.getElementById('gicode').value;var e=document.getElementById('stkGb').value;if((a.substr(0,1)=="1")&&(e=="3")){d="A005930";e="1"}if((a.substr(0,1)=="4")&&(e=="1")){d="A102780";e="3"}switch(a){case"11":c="SVD_Main.asp";break;case"12":c="SVD_Corp.asp";break;case"13":c="SVD_Finance.asp";break;case"14":c="SVD_FinanceRatio.asp";break;case"15":c="SVD_Invest.asp";break;case"16":c="SVD_Comparison.asp";break;case"17":c="SVD_Disclosure.asp";break;case"21":c="SVD_SortByTargetPrc.asp";break;case"22":c="SVD_SortByEp.asp";break;case"31":c="SVD_UJRank.asp";break;case"32":c="SVD_idxRank.asp";break;case"41":c="etf_snapshot.asp";break;case"42":c="etf_analysis.asp";break;case"51":c="SVD_CreditScore.asp";break;case"52":c="SVD_CorpList.asp";break;case"53":c="SVD_ProResultCorp.asp";break;case"61":c="SVD_Help10.asp";break;default:c="SVD_Main.asp"}c=c+'?pGB='+document.getElementById('pGb').value+'&gicode='+d;c=c+'&cID='+document.getElementById('cID').value+'&MenuYn='+document.getElementById('MenuYn').value;c=c+'&ReportGB='+document.getElementById('ReportGb').value+'&NewMenuID='+a+'&stkGb='+e;if(b){c=c+"&"+b}var f=window.location.href.substr(0,window.location.href.lastIndexOf("/")+1);f=f.replace("/html","").replace("/Html","").replace("/HTML","");window.location.href=f+c}function GoRefresh(){if(document.getElementById('stkGb').value=='3'&&document.getElementById('NewMenuID').value.substr(0,1)=='1'){document.getElementById('NewMenuID').value='41'}else if(document.getElementById('stkGb').value=='1'&&document.getElementById('NewMenuID').value.substr(0,1)=='4'){document.getElementById('NewMenuID').value='11'}GoMenu(document.getElementById('NewMenuID').value)}function ToggleReportGB(a){document.getElementById('ReportGb').value=a;GoMenu(document.getElementById('NewMenuID').value)}function CheckRefresh(){GoLookup()}function GoLookup(){var a;a="/COM/COM_Lookup.asp?bHandbook=Y&objName=SearchText&objCode=gicode&MktGB=0&function=GoRefresh2&SearchKey1="+document.getElementById('SearchText').value;if(document.getElementById('NewMenuID').value.substr(0,1)=="4"){a=a+"&CompGB=2"}hwin=window.open(a,"mwin","statusbar=yes,scrollbars=yes,resizable=yes,width=376,height=515,top=10000,left=10000");self.focus()}function GoRefresh2(){document.getElementById('stkGb').value="";GoMenu(document.getElementById('NewMenuID').value)}function GoPDF(){alert('GoPDF')}function GoPrint(){window.print()}function GoHelp(a){var b="";if(document.getElementById('NewMenuID').value.length>0){b="HelpID="+document.getElementById('NewMenuID').value}if(a=='1'){GoMenu("61",b)}else{window.open("/svo/handbook_New/xml/SVD_Help10.asp?"+b,"HELP","width=800, height=700, scrollbars=yes, resizable=yes")}}var click_obj=null;var tooltipID="div_tooltip";var offsetY=5;var offsetX=-10;var toolWidth=300;var bDebug=false;$(function(){$('a.tip_b').click(function(){return ShowTip(this)});$('a.tip_k').click(function(){return ShowTip(this)});$('a.tip').click(function(){return ShowTip(this)});$('body').mousedown(function(e){HideTip()});if(bDebug){$("body").append("<div id='debug'>test</div>");$("#debug").css("position","absolute").css("display","none").css("top","10px").css("left","10px").fadeIn("fast")}});function HideTip(){$("#"+tooltipID).remove();click_obj=null}function ShowTip(a){var b=$(a).attr("cmt");if(b==null){return false}if(click_obj==a){return false}var X,Y;var c=event.clientX;var d=$(document).scrollLeft();var e=$(document).scrollTop();var f=$(window).width();if(c+offsetX+toolWidth>f){X=(c-toolWidth-offsetX)>=0?c-toolWidth-offsetX:c-(toolWidth/2)}else{X=c+offsetX+d}Y=event.clientY+e+offsetY;var g=b.split("||")[0];var h=b.split("||")[1];var i=b.split("||")[2];var j="";if(h!=""){g=g+" <span class='n'>: "+h+"</span>"}j=j+"<table width='"+toolWidth+"' border='0' cellspacing='0' cellpadding='0'>";j=j+"  <tr>";j=j+"      <td width='15' height='15'><img src='../Images/img_tip_top_left.png' width='15' height='15' /></td>";j=j+"      <td><img src='../Images/img_tip_top_mid.png' width='270' height='15' /></td>";j=j+"      <td width='15'><img src='../Images/img_tip_top_right.png' width='15' height='15' /></td>";j=j+"  </tr>";j=j+"  <tr>";j=j+"  <td height='50' background='../Images/img_tip_mid_left.png'>&nbsp;</td>";j=j+"      <td valign='top' style='padding-top: 6px; background-color:#FFF'>";j=j+"          <table width='100%' border='0' cellspacing='0' cellpadding='0'>";j=j+"            <tr> ";j=j+"              <td height='20' class='txt_value2_k b' style='border-bottom: 1px #c4c4c4 solid; padding-left:0px;'>"+g+"</td>";j=j+"            </tr>";j=j+"            <tr>";j=j+"              <td class='txt_value2_k' style='padding-top: 12px; padding-left:0px;'>"+i+"</td>";j=j+"            </tr>";j=j+"          </table>";j=j+"      </td>";j=j+"  <td background='../Images/img_tip_mid_right.png'>&nbsp;</td>";j=j+"  </tr>";j=j+"  <tr>";j=j+"      <td width='15' height='15'><img src='../Images/img_tip_bottom_left.png' width='15' height='15' /></td>";j=j+"  <td height='15' background='../Images/img_tip_bottom_mid.png'></td>";j=j+"  <td width='15'><img src='../Images/img_tip_bottom_right.png' width='15' height='15' /></td>";j=j+"  </tr>";j=j+"</table>";$("body").append("<div id='"+tooltipID+"' onClick='javascript:HideTip();'>"+j+"</div>");$("#"+tooltipID).css("position","absolute").css("top",(Y)+"px").css("left",(X)+"px").css("display","none").fadeIn("fast");click_obj=a;return false}var _gaq=_gaq||[];_gaq.push(['_setAccount','UA-24475106-1']);_gaq.push(['_setDomainName','.fnguide.com']);_gaq.push(['_trackPageview']);(function(){var a=document.createElement('script');a.type='text/javascript';a.async=true;a.src=('https:'==document.location.protocol?'https://ssl':'http://www')+'.google-analytics.com/ga.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(a,s)})();
