﻿// JScript File

function popnews(id)
{
window.open("news.aspx?newsid="+id, "Tanrich", "menubar=no,resizable=yes, width=650, height=350,scrollbars=yes  ");

}


function aastocknewspop(lang, source, nid)
{
window.open("http://www.tanrich.com/framenews.aspx?lang="+lang+"&source="+source+"&nid="+nid, "Tanrich", "menubar=no,resizable=yes, width=650, height=420,scrollbars=yes  ");

}


function popnewslist(symbol)
{
window.open("http://www.tanrich.com/framenews.aspx?symbol="+symbol, "Tanrich", "menubar=no,resizable=yes, width=650, height=350,scrollbars=yes  ");

}



function loading(){
//easytabs('1', '1');
//easytabs2('1', '1');
}


function onchart(i)
{
 
    //alert(i);
 if( i == 1)
 {
 
  document.getElementById("tab1").style.background = "#FFFFFF";
   document.getElementById("tab2").style.background = "#E7E7E7";
 document.getElementById("chart1").style.display = "block";
    document.getElementById("chart2").style.display = "none";
    }
else if( i == 2)
{

  document.getElementById("tab1").style.background = "#E7E7E7";
 document.getElementById("tab2").style.background = "#FFFFFF";
document.getElementById("chart1").style.display = "none";
    document.getElementById("chart2").style.display = "block";
}

}



function popsecur_comment(id)
{
window.open("/secur_comment"+id+".htm", "Tanrich", "menubar=no,resizable=yes, width=650, height=600,scrollbars=yes  ");

}






