function Tarih_Formatla	(tarih)
{
tarih_yeni="";
tarih_yeni=tarih_yeni.concat(tarih.substr(6,2),"/",tarih.substr(4,2),"/",tarih.substr(0,4));
document.write(tarih_yeni);
}
function EY(deger,seri)
{
document.write(deger);
if (seri=='Y')
document.write("Y");
if (seri=='B')
document.write("B");
if (seri=='R')
document.write("R");
}
function Haber_Ac(theURL)
{
window.open(theURL,'foreks2','top=150,toolbar=no,scrollbars=yes,status=yes,height=327,width=800');
}
function bannerac(theURL)
{
window.open(theURL,'foreks2','top=150,toolbar=no,scrollbars=yes,status=no,height=500,width=620');
}
tamam=0;
yeni=new String ("");
function Set_X()
{
yeni="";
}
function Select_Getir()
{
var i=0;
char_x=window.event.keyCode;
if (char_x == 13)
{
Set_X();
document.forms.frm.D1.selectedIndex=tamam;
document.forms.frm.submit()
}
yeni = yeni.concat(String.fromCharCode(char_x));
for (i=0; i < document.forms.frm.D1.options.length ;i++)
{
if (document.forms.frm.D1.options[i].text.toUpperCase().indexOf(yeni) == 0 )
{
tamam=i;
document.forms.frm.D1.selectedIndex=tamam;
break;
}
}
}
function SetTextColor(deger)
{
if (deger.charCodeAt(0)==45)
{
document.write(deger.fontcolor("red"));
}
else
{
document.write(deger.fontcolor("green"));
}
}

function windowopen(theURL, winname, prop)
{
  try
  {
   var ww = window.open(theURL, winname, prop);
   var obj = ww.Name;
  }
  catch(e)
  {
    alert("Sitemizdeki butun fonksiyonlara erismek icin bilgisayarinizdaki poup-blocker(acilir pencere engelleyici) fonksiyonunu iptal edin.");
  }
}

function BilancoAc2()
{
hisse_getir=document.forms.frmhis.D1.options[document.forms.frmhis.D1.selectedIndex].text;
theUrl="_inc_bilancolar2.php?D1=";
theUrl=theUrl.concat(hisse_getir);
window.open(theUrl,'bilancolar','toolbar=no,scrollbars=yes,status=yes,height=500,width=586');
}
function HisseAc2()
{
document.forms.frmhis.submit()
}
function Bilanco_Ac()
{
hisse_getir=document.forms.frm.D1.options[document.forms.frm.D1.selectedIndex].text;
theUrl="bilancolar_in.jsp?D1=";
theUrl=theUrl.concat(hisse_getir);
window.open(theUrl,'bilancolar','toolbar=no,scrollbars=yes,status=yes,height=500,width=670');
}
function Hisse_Ac()
{
hisse_getir=document.forms.frm.D1.options[document.forms.frm.D1.selectedIndex].value;
theUrl="hissedetay_in.jsp?D1=";
theUrl=theUrl.concat(hisse_getir);
window.open(theUrl,'foreks','toolbar=no,scrollbars=no,status=yes,height=650,width=750');
}
function Repo_Ac()
{
window.open('repopiyasasi.jsp','repo','toolbar=no,scrollbars=no,status=yes,height=60,width=650');
}
function newImage(arg)
{
if (document.images)
{
rslt = new Image();
rslt.src = arg;
return rslt;
}
}
function changeImages()
{
if (document.images)
{
for (var i=0; i<changeImages.arguments.length; i+=2)
{
document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
}
}
}

function newuser(theUrl)
{
window.open(theUrl,'foreks','dependent=yes,toolbar=no,scrollbars=no,status=yes,height=400,width=400');
}
function checkValues(f)
{
if (f.txtName.value=='')
{
alert("Isim Giriniz. Please Enter User Name.");
return false;
}
if (f.txtPassword.value=='')
{
alert("Sifre Giriniz. Please Enter Password.");
return false;
}
return true;
}
function chartfxAc()
{
document.location.replace("/common/chartfxcheck.jsp");
}
function HisseAc(theUrl)
{
window.open(theUrl,'foreks','toolbar=no,scrollbars=yes,status=yes,height=650,width=595');
}
function Benihatirla(theUrl)
{
window.open(theUrl,'foreks','toolbar=no,scrollbars=no,status=yes,height=500,width=400');
}
function setTarih(tarih)
{
if (tarih != "")
tarih = tarih.substring(0,2) + "/" +  tarih.substring(2,4) + "/20" +  tarih.substring(4,6);
document.write(tarih)
}
function redirectToIndex()
{
args = new Object();
var query = location.search.substring (1);
var pairs = query.split ("&");
for ( var i = 0; i < pairs.length; i++)
{
var pos = pairs[i].indexOf("=");
if ( pos == -1 ) continue;
var argname = pairs[i].substring(0, pos);
var value = pairs[i].substring(pos + 1);
args[ argname ] = unescape ( value );
}
if ((args.language) && (args.country))
window.location = "/anasayfa/index.jsp?language=" +  args.language + "&country=" + args.country ;
}

