var submenu = new Array();
submenu['.'] = "
| News Index |
";
submenu['NWSSWE'] = "| StockWatch English |
";
submenu['NWSDOW'] = "| Dow Jones |
";
submenu['EMTJSX'] = "| Listed Companies on IDX |
";
submenu['BRKJSX'] = "| Broker On IDX |
";
submenu['REKAPJSX'] = "| IDX Market Summary |
";
submenu['INDEXJSX'] = "| IDX Indices |
";
submenu['ACTSTJSX'] = "| IDX Most Active Stocks |
";
submenu['ACTBKJSX'] = "| IDX Most Active Brokers |
";
submenu['GNLOSJSX'] = "| IDX Top Gainers/Losers |
";
submenu['INTINDX'] = "| International Indices |
";
submenu['IPOJSX'] = "| IDX IPO Stocks |
";
submenu['IPOPFJSX'] = "| IDX IPO Stocks Performance |
";
submenu['IPOCALJSX'] = "| IDX IPO Calendar |
";
submenu['CAUPJSX'] = "| Upcoming |
";
submenu['CAHISJSX'] = "| Historical |
";
submenu['RUUPJSX'] = "| Upcoming |
";
submenu['RUHISJSX'] = "| Historical |
";
submenu['FORKURS'] = "| Forex Rate |
";
submenu['FORGRAP'] = "| Forex Chart |
";
submenu['FORCOMP'] = "| Cross Rate Table |
";
submenu['KOSTECH'] = "| Technical Chart |
";
submenu['KOSSING'] = "| Single Position Chart |
";
submenu['KOSPORT'] = "| Portfolio Position Chart |
";
submenu['KOSCALC'] = "| Portfolio Position Calculator |
";
submenu['KOSBOUND'] = "| Upper & Lower Boundary |
";
submenu['ULASAN'] = "| Market Perspectives |
";
submenu['REKOM'] = "| Stock Recommendations |
";
submenu['POJOK'] = "| Analyst Corner |
";
submenu['PUDEPOHARIAN'] = "| Daily |
";
submenu['PUDEPORINGKASAN'] = "| Summary |
";
submenu['PUDEPOCHART'] = "| Chart |
";
submenu['MFUNDNAV'] = "| Mutual Fund NAV |
";
submenu['HISNAV'] = "| Historical NAV |
";
submenu['CONPRODLST'] = "| Contributor Product List |
";
submenu['PERCHARTS1'] = "| Fund Comparison Chart |
";
submenu['PERCHARTS2'] = "| Fund Vs Benchmark |
";
submenu['EKMAKRO'] = "| Macro Economic |
";
//if (myebstat=="1"){setTimeout('docekdbllogin()',20000);}
var gurl='',gq='',gpage='',todaydate=new Date(),mktsum="widget/marketsumm.php",indices="widget/indices.php",gindices="widget/globalindices.php",ipo="widget/ipo.php",kinerja="widget/kinerja.php",upcorpact="widget/upcoming_corpact.php",hcorpact="widget/historical_corpact.php",uprups="widget/upcoming_rups.php",hrups="widget/historical_rups.php",stockchart="widget/member/grafik_saham.php",forex="widget/forex.php",forexchart="widget/forexchart.php",crossc="widget/cross_currency.php",ulasan="widget/ulasanpasar.php",recommend="widget/rekomendasisaham.php",pakar="widget/pojokpakar.php",calendar="widget/calendar.php",ppchart="widget/member/ppchart.php",ppcalc="widget/member/ppcalc.php",ulboundary="widget/member/ulboundary.php",techchart="widget/member/techchart.php",spchart="widget/member/spchart.php",mutual_fund_nav="widget/member/mutual_fund_nav.php",historical_nav="widget/member/historical_nav.php",contrib_prod_list="widget/member/contrib_prod_list.php",comparison_charts="widget/member/comparison_charts.php",vs_charts="widget/member/vs_charts.php",whitespace = " \t\n\r",curmonth=todaydate.getMonth()+1,curyear=todaydate.getFullYear();
function findSWF(movieName) { if (navigator.appName.indexOf("Microsoft")!= -1) { return window["ie_" + movieName]; } else { return document[movieName]; }}
function googlesearch(){var c; if (document.getElementById("ss1").checked){ c='2';}else{ c='1'; } viewcontent('widget/search.php','s='+document.getElementById("txtsearch").value+'&c='+c);}
function xmlhttpGet(strURL,q,view){
var xmlHttpReq = false;
var out;
var mmenu=true;
if (window.XMLHttpRequest) {xmlHttpReq = new XMLHttpRequest();}
else if (window.ActiveXObject){xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");}
if (!xmlHttpReq) { window.location='noajax.php'; return false;}
if (view.indexOf("e_menu")>-1){ mmenu=false;}
xmlHttpReq.open("GET", strURL+"?"+q,mmenu);
xmlHttpReq.send(q);
if (mmenu){
xmlHttpReq.onreadystatechange = function(){
if (xmlHttpReq.readyState == 4){viewdata(view,xmlHttpReq.responseText);
var a=q.split("=");
var bs='';
if (a.length>1){bs='?bs='+a[1];}
var xjsurl=strURL.split("/");
var jsurl=xjsurl[1];
if (jsurl=='member') jsurl=xjsurl[2];
if (strURL.indexOf("indexnews.php")>-1)donewsindex(q);
else if (strURL.indexOf("setting_res.php")>-1)
xmlhttpGet('widget/ajaxmenu.php','','ajaxmenu');
if (strURL.indexOf("mostactive")>-1 || strURL.indexOf("setstockgraph.php")>-1 || strURL.indexOf('setmystock.php')>-1 || strURL.indexOf('polling.php')>-1 || strURL.indexOf('historical_download_payment_confirm.php')>-1 || strURL.indexOf('historical_download_passkey_confirm.php')>-1 || strURL.indexOf("contactus.php")>-1 || strURL.indexOf("formkerja.php")>-1 || strURL.indexOf("book_reference.php")>-1 || strURL.indexOf("historical_download.php")>-1 || strURL.indexOf('buyerinfo.php')>-1 || strURL.indexOf("downloadfile")>-1 || strURL.indexOf("vs_charts.php")>-1 || strURL.indexOf("comparison_charts")>-1 || strURL.indexOf("ulboundary.php")>-1 || strURL.indexOf("historical_nav.php")>-1 || strURL.indexOf("top_gainer_loser.php")>-1 || strURL.indexOf("spchart.php")>-1){document.getElementById(jsurl).src='js/'+jsurl+bs;}docal(curmonth,curyear);if (view=='xwin'){document.getElementById("yywin").width=document.getElementById('xwin').offsetWidth;document.getElementById("yywin").height=document.getElementById('xwin').offsetHeight;document.getElementById('fframe').style.left=document.getElementById('xwin').style.left; document.getElementById('fframe').style.top=document.getElementById('xwin').style.top;}
if (xmlHttpReq.status == 200) {
try{
//alert(http_request.responseText);
pageTracker._trackPageview(strURL+"?"+q);
} catch(err) {}
}
else {
//alert('Error.');
}
}
}
}else{
viewdata(view,xmlHttpReq.responseText);
}
}
//function m_over(m){var mmenu=document.getElementById("mmenu"+m).style;mmenu.cursor='pointer';if (m!='2'){var tit=document.getElementById("tit"+m).style;tit.color='#FFFFFF';mmenu.background='#343434';if (m=='4' || m=='5' || m=='6'){var oleft=document.getElementById("jmenu"+m).offsetLeft; var otop=document.getElementById("jmenu"+m).offsetTop;document.getElementById("e_menu").style.left=oleft-10;document.getElementById("e_menu").style.top=otop+20;xmlhttpGet("widget/menudet.php","xcap="+m,"e_menu");}}}
function m_over(m){
var mmenu=document.getElementById("mmenu"+m).style;
mmenu.cursor='pointer';
if (m!='2'){
var tit=document.getElementById("tit"+m).style;
tit.color='#FFFFFF'; mmenu.background='#343434';
if (m=='4'||m=='5'||m=='6'||m=='12') {
var oleft=document.getElementById("jmenu"+m).offsetLeft;
var otop=document.getElementById("jmenu"+m).offsetTop;
document.getElementById("e_menu").style.top=otop+18;
if (m=='4') document.getElementById("e_menu").style.left=0;
else if (m=='5') document.getElementById("e_menu").style.left=oleft-25;
else if (m=='12') document.getElementById("e_menu").style.left=oleft-160;
else document.getElementById("e_menu").style.left=oleft-155;
menudet(m);
//xmlhttpGet("widget/menudet.php","xcap="+m,"e_menu");
}
}
}
function m_out(m){if (m!='2'){document.getElementById('e_menu').style.display='none';var mmenu=document.getElementById("mmenu"+m).style;var tit=document.getElementById("tit"+m).style;tit.color='#ffffff';mmenu.background='#191919';document.getElementById("mmenu"+m).style.borderBottom='1px solid #8A8E8A';}}
function viewsmenu(m,t){var oleft=document.getElementById(t).offsetLeft-20;var otop=document.getElementById(t).offsetTop;document.getElementById("e_menu").style.left=oleft;document.getElementById("e_menu").style.top=otop; xmlhttpGet("widget/menudet.php",m,"e_menu");}
function viewmenu(m,t){
var newrow = '';
var myrow=m.split("|");
for (i = 0; i < myrow.length; i++){
//alert (myrow[i]);
//alert (submenu[myrow[i]]);
//alert (submenu['acc']);
newrow += submenu[myrow[i]];
}
var otitle=document.getElementById("awalmenu").offsetTop;
var otop=document.getElementById(t).offsetTop;
document.getElementById("e_menu").style.left=180;
document.getElementById("e_menu").style.top=otop+otitle+24;
//document.getElementById("e_menu").style.index=5000;
document.getElementById("e_menu").innerHTML = "';
document.getElementById("e_menu").style.display = '';
hideddrivetip();
//document.getElementById("e_menu").style.display='';
//xmlhttpGet("widget/menudet.php",m,"e_menu");
}
function isEmpty(s){return ((s == null) || (s.length == 0))}
function isWhitespace (s){var i;if (isEmpty(s)) return true;for (i = 0; i < s.length; i++){var c = s.charAt(i);if (whitespace.indexOf(c) == -1) return false;}return true;}
function doindexpage(tgl,bln,thn,ycat,page){ try{ xmlhttpGet("widget/indexnews_res.php","tgl="+tgl+"&bln="+bln+"&thn="+thn+"&sour="+ycat+"&pageno="+page,"newsres"); }catch(E){}}
function donewsindex(xsour){ var tgl,bln,thn,sour; tgl=document.getElementById("tgl").value; bln=document.getElementById("bln").value; thn=document.getElementById("thn").value; try{ if (xsour=="") sour=document.getElementById("sour").value; else{ sour=xsour; document.getElementById("sour").value=sour;} xmlhttpGet("widget/indexnews_res.php","tgl="+tgl+"&bln="+bln+"&thn="+thn+"&sour="+sour,"newsres");}catch(E){}}
function doclose(){document.getElementById('xwin').style.display="none";document.getElementById('xwin').innerHTML="";document.getElementById("yywin").width=0;document.getElementById("yywin").height=0;document.getElementById('fframe').style.left=0;document.getElementById('fframe').style.top=0;}
function openwin(win,q,wtop,wleft,wwidth,wid){try{document.getElementById('e_menu').innerHTML='';if (typeof wid != "undefined"){var oleft=document.getElementById(wid).offsetLeft;var otop=document.getElementById(wid).offsetTop; if (wid.indexOf("mymenu")>-1){ xwin.style.left=oleft+88; }else{ xwin.style.left=oleft-400; }xwin.style.top=otop;}else{xwin.style.top=wtop;xwin.style.left=wleft;}xwin.style.width=wwidth;xwin.style.display=""; xmlhttpGet(win,q,"xwin");}catch(E){}}
function viewcontent(myurl,q){viewcontentmenu(myurl,q,'');}
function viewcontentmenu(myurl,q,page){
try{document.getElementById('e_menu').innerHTML='';
gurl=myurl;
gq=q;gpage=page;var a=q.split("=");var bs=a[1];if (myurl.indexOf("myeb")>-1){if (myebstat=="0"){window.location=secureurl+"signin/";return true;exit;}myurl='';}myurl1=myurl;if (myurl==""){myurl1="widget/news.php";if (myebstat=="0")q="total=20&ycat="+q;}if (myebstat=="0" && myurl.indexOf("member/")>-1){window.location=secureurl+"signin/?s="+myurl+"&q1="+q+"&p="+page;}xmlhttpGet(myurl1,q,"news");if (myurl==""){xmlhttpGet("widget/side_right.php","","sideright");document.getElementById("sideright").style.display=""; if (wnew=="1"){wnew++;openwin("widget/whatsnew.php",'',50,100,400);}}else if (myurl.indexOf("/news.php")<0){document.getElementById("sideright").innerHTML=""; document.getElementById("sideright").style.display="none"; }else{ xmlhttpGet("widget/newsright.php","","sideright");document.getElementById("sideright").style.display="";} if (page=="" && myebstat=="0"){page="15";}else if (page=="" && myebstat=="1"){ page="1";}xmlhttpGet("widget/banner__.php","PageId="+page,"bannerheader");xmlhttpGet("widget/bannerfooter_.php","PageId="+page,"bannerfooter");} catch(E){} }
function viewdata(view,content){try{
//alert(content);
if (view == "ajaxmenu"){document.getElementById(view).innerHTML="";}
//document.getElementById(view).innerHTML="";
document.getElementById(view).innerHTML=content;
if (view=="e_menu"){document.getElementById('e_menu').style.display='';}hideddrivetip();}catch(e){}}
function doRSSRegister(){var rssFullName,rssEmail,rssHasil;var a = 0;var s = 0;rssFullName=document.getElementById("rssFullName").value;rssEmail=document.getElementById("rssEmail").value;for (var i=0; i0) && (c == '.')) s = 1;}rssHasil = ((a == 1) && (s == 1));if (rssHasil==false) {if (rssEmail==''){alert('Please input Email');}else{alert('Invalid E-mail format');}}else{viewcontent("widget/rss_request.php","proses=register&fullname="+rssFullName+"&email="+rssEmail);}}
function docekdbllogin(){var xmlHttpReq = false; var out;if (window.XMLHttpRequest){xmlHttpReq = new XMLHttpRequest();}else if (window.ActiveXObject) {xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");}xmlHttpReq.open("GET","widget/checkdbllogin.php", true);xmlHttpReq.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");xmlHttpReq.onreadystatechange = function(){if (xmlHttpReq.readyState == 4){out=xmlHttpReq.responseText; if (out=='yes'){ alert(dbllogin); window.location=secureurl+'logout.php'; }}};xmlHttpReq.send(null);setTimeout('docekdbllogin()',20000);}
function menudet (xcap) {
if (xcap == '4') {
document.getElementById("e_menu").innerHTML = '';
}
else if (xcap == '5') {
document.getElementById("e_menu").innerHTML = '