var timerID = null;
var timerRunning = false;

function stopclock ()
{
  if(timerRunning)
      clearTimeout(timerID);
  timerRunning = false;
}

function showtime () 
{
  
getcookiegambit();
  timerID = setTimeout("showtime()",1000);
  timerRunning = true;
}

function startclock () 
{
  stopclock();
  showtime();
}
//+++++++++++++++++++++++++++++++
function getcookiegambit()
{
if(document.cookie!=""){
document.getElementById("text1").value=document.cookie.split("=")[1];
}
len();
}
//===================
function len()
{
 var s=document.getElementById("text1").value;
 var pp="";
 var j=1;
 for (var i = 0; i < s.length; i++) {
   if (s.charAt(i)=="#"){
   //pol(pp,j);
   if(j==1){document.getElementById("timer1").value=pp;}
   if(j==2){document.getElementById("date1").value=pp;}
   //GBPAUD
   if(j==3){
     if(pp=="m"){document.Form1.GBPAUD_h.src="../photo/current/middle1.JPG";document.getElementById("GBPAUD_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPAUD_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPAUD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPAUD_h.src="../photo/current/down1.JPG";document.getElementById("GBPAUD_s").style.backgroundColor="#bd4747"; document.getElementById("GBPAUD_b").style.backgroundColor="#bd4747"; document.getElementById("GBPAUD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPAUD_h.src="../photo/current/up1.JPG";document.getElementById("GBPAUD_s").style.backgroundColor="#009278"; document.getElementById("GBPAUD_b").style.backgroundColor="#009278"; document.getElementById("GBPAUD_a").style.backgroundColor="#009278";}
     }
   if(j==4){document.getElementById("GBPAUD_b").value=pp;}
   if(j==5){document.getElementById("GBPAUD_a").value=pp;}
  //GBPCAD
   if(j==6){
     if(pp=="m"){document.Form1.GBPCAD_h.src="../photo/current/middle1.JPG";document.getElementById("GBPCAD_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPCAD_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPCAD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPCAD_h.src="../photo/current/down1.JPG";document.getElementById("GBPCAD_s").style.backgroundColor="#bd4747"; document.getElementById("GBPCAD_b").style.backgroundColor="#bd4747"; document.getElementById("GBPCAD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPCAD_h.src="../photo/current/up1.JPG";document.getElementById("GBPCAD_s").style.backgroundColor="#009278"; document.getElementById("GBPCAD_b").style.backgroundColor="#009278"; document.getElementById("GBPCAD_a").style.backgroundColor="#009278";}
     }
   if(j==7){document.getElementById("GBPCAD_b").value=pp;}
   if(j==8){document.getElementById("GBPCAD_a").value=pp;}
   //
    //GBPCHF
   if(j==9){
     if(pp=="m"){document.Form1.GBPCHF_h.src="../photo/current/middle1.JPG";document.getElementById("GBPCHF_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPCHF_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPCHF_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPCHF_h.src="../photo/current/down1.JPG";document.getElementById("GBPCHF_s").style.backgroundColor="#bd4747"; document.getElementById("GBPCHF_b").style.backgroundColor="#bd4747"; document.getElementById("GBPCHF_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPCHF_h.src="../photo/current/up1.JPG";document.getElementById("GBPCHF_s").style.backgroundColor="#009278"; document.getElementById("GBPCHF_b").style.backgroundColor="#009278"; document.getElementById("GBPCHF_a").style.backgroundColor="#009278";}
     }
   if(j==10){document.getElementById("GBPCHF_b").value=pp;}
   if(j==11){document.getElementById("GBPCHF_a").value=pp;}
   //
    //GBPJPY
   if(j==12){
     if(pp=="m"){document.Form1.GBPJPY_h.src="../photo/current/middle1.JPG";document.getElementById("GBPJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPJPY_h.src="../photo/current/down1.JPG";document.getElementById("GBPJPY_s").style.backgroundColor="#bd4747"; document.getElementById("GBPJPY_b").style.backgroundColor="#bd4747"; document.getElementById("GBPJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPJPY_h.src="../photo/current/up1.JPG";document.getElementById("GBPJPY_s").style.backgroundColor="#009278"; document.getElementById("GBPJPY_b").style.backgroundColor="#009278"; document.getElementById("GBPJPY_a").style.backgroundColor="#009278";}
     }
   if(j==13){document.getElementById("GBPJPY_b").value=pp;}
   if(j==14){document.getElementById("GBPJPY_a").value=pp;}
   //
   //GBPNZD
   if(j==15){
     if(pp=="m"){document.Form1.GBPNZD_h.src="../photo/current/middle1.JPG";document.getElementById("GBPNZD_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPNZD_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPNZD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPNZD_h.src="../photo/current/down1.JPG";document.getElementById("GBPNZD_s").style.backgroundColor="#bd4747"; document.getElementById("GBPNZD_b").style.backgroundColor="#bd4747"; document.getElementById("GBPNZD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPNZD_h.src="../photo/current/up1.JPG";document.getElementById("GBPNZD_s").style.backgroundColor="#009278"; document.getElementById("GBPNZD_b").style.backgroundColor="#009278"; document.getElementById("GBPNZD_a").style.backgroundColor="#009278";}
     }
   if(j==16){document.getElementById("GBPNZD_b").value=pp;}
   if(j==17){document.getElementById("GBPNZD_a").value=pp;}
   //
    //GBPSEK
   if(j==18){
     if(pp=="m"){document.Form1.GBPSEK_h.src="../photo/current/middle1.JPG";document.getElementById("GBPSEK_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPSEK_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPSEK_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPSEK_h.src="../photo/current/down1.JPG";document.getElementById("GBPSEK_s").style.backgroundColor="#bd4747"; document.getElementById("GBPSEK_b").style.backgroundColor="#bd4747"; document.getElementById("GBPSEK_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPSEK_h.src="../photo/current/up1.JPG";document.getElementById("GBPSEK_s").style.backgroundColor="#009278"; document.getElementById("GBPSEK_b").style.backgroundColor="#009278"; document.getElementById("GBPSEK_a").style.backgroundColor="#009278";}
     }
   if(j==19){document.getElementById("GBPSEK_b").value=pp;}
   if(j==20){document.getElementById("GBPSEK_a").value=pp;}
   //
   //GBPUSD
   if(j==21){
     if(pp=="m"){document.Form1.GBPUSD_h.src="../photo/current/middle1.JPG";document.getElementById("GBPUSD_s").style.backgroundColor="#8e8e8e";document.getElementById("GBPUSD_b").style.backgroundColor="#8e8e8e";document.getElementById("GBPUSD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.GBPUSD_h.src="../photo/current/down1.JPG";document.getElementById("GBPUSD_s").style.backgroundColor="#bd4747"; document.getElementById("GBPUSD_b").style.backgroundColor="#bd4747"; document.getElementById("GBPUSD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.GBPUSD_h.src="../photo/current/up1.JPG";document.getElementById("GBPUSD_s").style.backgroundColor="#009278"; document.getElementById("GBPUSD_b").style.backgroundColor="#009278"; document.getElementById("GBPUSD_a").style.backgroundColor="#009278";}
     }
   if(j==22){document.getElementById("GBPUSD_b").value=pp;}
   if(j==23){document.getElementById("GBPUSD_a").value=pp;}
   //
    //EURAUD
   if(j==24){
     if(pp=="m"){document.Form1.EURAUD_h.src="../photo/current/middle1.JPG";document.getElementById("EURAUD_s").style.backgroundColor="#8e8e8e";document.getElementById("EURAUD_b").style.backgroundColor="#8e8e8e";document.getElementById("EURAUD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURAUD_h.src="../photo/current/down1.JPG";document.getElementById("EURAUD_s").style.backgroundColor="#bd4747"; document.getElementById("EURAUD_b").style.backgroundColor="#bd4747"; document.getElementById("EURAUD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURAUD_h.src="../photo/current/up1.JPG";document.getElementById("EURAUD_s").style.backgroundColor="#009278"; document.getElementById("EURAUD_b").style.backgroundColor="#009278"; document.getElementById("EURAUD_a").style.backgroundColor="#009278";}
     }
   if(j==25){document.getElementById("EURAUD_b").value=pp;}
   if(j==26){document.getElementById("EURAUD_a").value=pp;}
   //
   //EURCAD
   if(j==27){
     if(pp=="m"){document.Form1.EURCAD_h.src="../photo/current/middle1.JPG";document.getElementById("EURCAD_s").style.backgroundColor="#8e8e8e";document.getElementById("EURCAD_b").style.backgroundColor="#8e8e8e";document.getElementById("EURCAD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURCAD_h.src="../photo/current/down1.JPG";document.getElementById("EURCAD_s").style.backgroundColor="#bd4747"; document.getElementById("EURCAD_b").style.backgroundColor="#bd4747"; document.getElementById("EURCAD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURCAD_h.src="../photo/current/up1.JPG";document.getElementById("EURCAD_s").style.backgroundColor="#009278"; document.getElementById("EURCAD_b").style.backgroundColor="#009278"; document.getElementById("EURCAD_a").style.backgroundColor="#009278";}
     }
   if(j==28){document.getElementById("EURCAD_b").value=pp;}
   if(j==29){document.getElementById("EURCAD_a").value=pp;}
   //
   //EURCHF
   if(j==30){
     if(pp=="m"){document.Form1.EURCHF_h.src="../photo/current/middle1.JPG";document.getElementById("EURCHF_s").style.backgroundColor="#8e8e8e";document.getElementById("EURCHF_b").style.backgroundColor="#8e8e8e";document.getElementById("EURCHF_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURCHF_h.src="../photo/current/down1.JPG";document.getElementById("EURCHF_s").style.backgroundColor="#bd4747"; document.getElementById("EURCHF_b").style.backgroundColor="#bd4747"; document.getElementById("EURCHF_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURCHF_h.src="../photo/current/up1.JPG";document.getElementById("EURCHF_s").style.backgroundColor="#009278"; document.getElementById("EURCHF_b").style.backgroundColor="#009278"; document.getElementById("EURCHF_a").style.backgroundColor="#009278";}
     }
   if(j==31){document.getElementById("EURCHF_b").value=pp;}
   if(j==32){document.getElementById("EURCHF_a").value=pp;}
   //
    //EURGBP
   if(j==33){
     if(pp=="m"){document.Form1.EURGBP_h.src="../photo/current/middle1.JPG";document.getElementById("EURGBP_s").style.backgroundColor="#8e8e8e";document.getElementById("EURGBP_b").style.backgroundColor="#8e8e8e";document.getElementById("EURGBP_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURGBP_h.src="../photo/current/down1.JPG";document.getElementById("EURGBP_s").style.backgroundColor="#bd4747"; document.getElementById("EURGBP_b").style.backgroundColor="#bd4747"; document.getElementById("EURGBP_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURGBP_h.src="../photo/current/up1.JPG";document.getElementById("EURGBP_s").style.backgroundColor="#009278"; document.getElementById("EURGBP_b").style.backgroundColor="#009278"; document.getElementById("EURGBP_a").style.backgroundColor="#009278";}
     }
   if(j==34){document.getElementById("EURGBP_b").value=pp;}
   if(j==35){document.getElementById("EURGBP_a").value=pp;}
   //
    //EURJPY
   if(j==36){
     if(pp=="m"){document.Form1.EURJPY_h.src="../photo/current/middle1.JPG";document.getElementById("EURJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("EURJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("EURJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURJPY_h.src="../photo/current/down1.JPG";document.getElementById("EURJPY_s").style.backgroundColor="#bd4747"; document.getElementById("EURJPY_b").style.backgroundColor="#bd4747"; document.getElementById("EURJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURJPY_h.src="../photo/current/up1.JPG";document.getElementById("EURJPY_s").style.backgroundColor="#009278"; document.getElementById("EURJPY_b").style.backgroundColor="#009278"; document.getElementById("EURJPY_a").style.backgroundColor="#009278";}
     }
   if(j==37){document.getElementById("EURJPY_b").value=pp;}
   if(j==38){document.getElementById("EURJPY_a").value=pp;}
   //
    //EURSEK
   if(j==39){
     if(pp=="m"){document.Form1.EURSEK_h.src="../photo/current/middle1.JPG";document.getElementById("EURSEK_s").style.backgroundColor="#8e8e8e";document.getElementById("EURSEK_b").style.backgroundColor="#8e8e8e";document.getElementById("EURSEK_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURSEK_h.src="../photo/current/down1.JPG";document.getElementById("EURSEK_s").style.backgroundColor="#bd4747"; document.getElementById("EURSEK_b").style.backgroundColor="#bd4747"; document.getElementById("EURSEK_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURSEK_h.src="../photo/current/up1.JPG";document.getElementById("EURSEK_s").style.backgroundColor="#009278"; document.getElementById("EURSEK_b").style.backgroundColor="#009278"; document.getElementById("EURSEK_a").style.backgroundColor="#009278";}
     }
   if(j==40){document.getElementById("EURSEK_b").value=pp;}
   if(j==41){document.getElementById("EURSEK_a").value=pp;}
   //
    //EURUSD
   if(j==42){
     if(pp=="m"){document.Form1.EURUSD_h.src="../photo/current/middle1.JPG";document.getElementById("EURUSD_s").style.backgroundColor="#8e8e8e";document.getElementById("EURUSD_b").style.backgroundColor="#8e8e8e";document.getElementById("EURUSD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.EURUSD_h.src="../photo/current/down1.JPG";document.getElementById("EURUSD_s").style.backgroundColor="#bd4747"; document.getElementById("EURUSD_b").style.backgroundColor="#bd4747"; document.getElementById("EURUSD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.EURUSD_h.src="../photo/current/up1.JPG";document.getElementById("EURUSD_s").style.backgroundColor="#009278"; document.getElementById("EURUSD_b").style.backgroundColor="#009278"; document.getElementById("EURUSD_a").style.backgroundColor="#009278";}
     }
   if(j==43){document.getElementById("EURUSD_b").value=pp;}
   if(j==44){document.getElementById("EURUSD_a").value=pp;}
   //
       //USDCAD
   if(j==45){
     if(pp=="m"){document.Form1.USDCAD_h.src="../photo/current/middle1.JPG";document.getElementById("USDCAD_s").style.backgroundColor="#8e8e8e";document.getElementById("USDCAD_b").style.backgroundColor="#8e8e8e";document.getElementById("USDCAD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDCAD_h.src="../photo/current/down1.JPG";document.getElementById("USDCAD_s").style.backgroundColor="#bd4747"; document.getElementById("USDCAD_b").style.backgroundColor="#bd4747"; document.getElementById("USDCAD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDCAD_h.src="../photo/current/up1.JPG";document.getElementById("USDCAD_s").style.backgroundColor="#009278"; document.getElementById("USDCAD_b").style.backgroundColor="#009278"; document.getElementById("USDCAD_a").style.backgroundColor="#009278";}
     }
   if(j==46){document.getElementById("USDCAD_b").value=pp;}
   if(j==47){document.getElementById("USDCAD_a").value=pp;}
   //
    //USDCHF
   if(j==48){
     if(pp=="m"){document.Form1.USDCHF_h.src="../photo/current/middle1.JPG";document.getElementById("USDCHF_s").style.backgroundColor="#8e8e8e";document.getElementById("USDCHF_b").style.backgroundColor="#8e8e8e";document.getElementById("USDCHF_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDCHF_h.src="../photo/current/down1.JPG";document.getElementById("USDCHF_s").style.backgroundColor="#bd4747"; document.getElementById("USDCHF_b").style.backgroundColor="#bd4747"; document.getElementById("USDCHF_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDCHF_h.src="../photo/current/up1.JPG";document.getElementById("USDCHF_s").style.backgroundColor="#009278"; document.getElementById("USDCHF_b").style.backgroundColor="#009278"; document.getElementById("USDCHF_a").style.backgroundColor="#009278";}
     }
   if(j==49){document.getElementById("USDCHF_b").value=pp;}
   if(j==50){document.getElementById("USDCHF_a").value=pp;}
   //
    //USDDKK
   if(j==51){
     if(pp=="m"){document.Form1.USDDKK_h.src="../photo/current/middle1.JPG";document.getElementById("USDDKK_s").style.backgroundColor="#8e8e8e";document.getElementById("USDDKK_b").style.backgroundColor="#8e8e8e";document.getElementById("USDDKK_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDDKK_h.src="../photo/current/down1.JPG";document.getElementById("USDDKK_s").style.backgroundColor="#bd4747"; document.getElementById("USDDKK_b").style.backgroundColor="#bd4747"; document.getElementById("USDDKK_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDDKK_h.src="../photo/current/up1.JPG";document.getElementById("USDDKK_s").style.backgroundColor="#009278"; document.getElementById("USDDKK_b").style.backgroundColor="#009278"; document.getElementById("USDDKK_a").style.backgroundColor="#009278";}
     }
   if(j==52){document.getElementById("USDDKK_b").value=pp;}
   if(j==53){document.getElementById("USDDKK_a").value=pp;}
   //
    //USDJPY
   if(j==54){
     if(pp=="m"){document.Form1.USDJPY_h.src="../photo/current/middle1.JPG";document.getElementById("USDJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("USDJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("USDJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDJPY_h.src="../photo/current/down1.JPG";document.getElementById("USDJPY_s").style.backgroundColor="#bd4747"; document.getElementById("USDJPY_b").style.backgroundColor="#bd4747"; document.getElementById("USDJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDJPY_h.src="../photo/current/up1.JPG";document.getElementById("USDJPY_s").style.backgroundColor="#009278"; document.getElementById("USDJPY_b").style.backgroundColor="#009278"; document.getElementById("USDJPY_a").style.backgroundColor="#009278";}
     }
   if(j==55){document.getElementById("USDJPY_b").value=pp;}
   if(j==56){document.getElementById("USDJPY_a").value=pp;}
   //
     //USDNOK
   if(j==57){
     if(pp=="m"){document.Form1.USDNOK_h.src="../photo/current/middle1.JPG";document.getElementById("USDNOK_s").style.backgroundColor="#8e8e8e";document.getElementById("USDNOK_b").style.backgroundColor="#8e8e8e";document.getElementById("USDNOK_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDNOK_h.src="../photo/current/down1.JPG";document.getElementById("USDNOK_s").style.backgroundColor="#bd4747"; document.getElementById("USDNOK_b").style.backgroundColor="#bd4747"; document.getElementById("USDNOK_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDNOK_h.src="../photo/current/up1.JPG";document.getElementById("USDNOK_s").style.backgroundColor="#009278"; document.getElementById("USDNOK_b").style.backgroundColor="#009278"; document.getElementById("USDNOK_a").style.backgroundColor="#009278";}
     }
   if(j==58){document.getElementById("USDNOK_b").value=pp;}
   if(j==59){document.getElementById("USDNOK_a").value=pp;}
   //
   //USDSEK
   if(j==60){
     if(pp=="m"){document.Form1.USDSEK_h.src="../photo/current/middle1.JPG";document.getElementById("USDSEK_s").style.backgroundColor="#8e8e8e";document.getElementById("USDSEK_b").style.backgroundColor="#8e8e8e";document.getElementById("USDSEK_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDSEK_h.src="../photo/current/down1.JPG";document.getElementById("USDSEK_s").style.backgroundColor="#bd4747"; document.getElementById("USDSEK_b").style.backgroundColor="#bd4747"; document.getElementById("USDSEK_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDSEK_h.src="../photo/current/up1.JPG";document.getElementById("USDSEK_s").style.backgroundColor="#009278"; document.getElementById("USDSEK_b").style.backgroundColor="#009278"; document.getElementById("USDSEK_a").style.backgroundColor="#009278";}
     }
   if(j==61){document.getElementById("USDSEK_b").value=pp;}
   if(j==62){document.getElementById("USDSEK_a").value=pp;}
   //
   //USDSGD
   if(j==63){
     if(pp=="m"){document.Form1.USDSGD_h.src="../photo/current/middle1.JPG";document.getElementById("USDSGD_s").style.backgroundColor="#8e8e8e";document.getElementById("USDSGD_b").style.backgroundColor="#8e8e8e";document.getElementById("USDSGD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.USDSGD_h.src="../photo/current/down1.JPG";document.getElementById("USDSGD_s").style.backgroundColor="#bd4747"; document.getElementById("USDSGD_b").style.backgroundColor="#bd4747"; document.getElementById("USDSGD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.USDSGD_h.src="../photo/current/up1.JPG";document.getElementById("USDSGD_s").style.backgroundColor="#009278"; document.getElementById("USDSGD_b").style.backgroundColor="#009278"; document.getElementById("USDSGD_a").style.backgroundColor="#009278";}
     }
   if(j==64){document.getElementById("USDSGD_b").value=pp;}
   if(j==65){document.getElementById("USDSGD_a").value=pp;}
   //
   //NZDCAD
   if(j==66){
     if(pp=="m"){document.Form1.NZDCAD_h.src="../photo/current/middle1.JPG";document.getElementById("NZDCAD_s").style.backgroundColor="#8e8e8e";document.getElementById("NZDCAD_b").style.backgroundColor="#8e8e8e";document.getElementById("NZDCAD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.NZDCAD_h.src="../photo/current/down1.JPG";document.getElementById("NZDCAD_s").style.backgroundColor="#bd4747"; document.getElementById("NZDCAD_b").style.backgroundColor="#bd4747"; document.getElementById("NZDCAD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.NZDCAD_h.src="../photo/current/up1.JPG";document.getElementById("NZDCAD_s").style.backgroundColor="#009278"; document.getElementById("NZDCAD_b").style.backgroundColor="#009278"; document.getElementById("NZDCAD_a").style.backgroundColor="#009278";}
     }
   if(j==67){document.getElementById("NZDCAD_b").value=pp;}
   if(j==68){document.getElementById("NZDCAD_a").value=pp;}
   //
    //NZDCHF
   if(j==69){
     if(pp=="m"){document.Form1.NZDCHF_h.src="../photo/current/middle1.JPG";document.getElementById("NZDCHF_s").style.backgroundColor="#8e8e8e";document.getElementById("NZDCHF_b").style.backgroundColor="#8e8e8e";document.getElementById("NZDCHF_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.NZDCHF_h.src="../photo/current/down1.JPG";document.getElementById("NZDCHF_s").style.backgroundColor="#bd4747"; document.getElementById("NZDCHF_b").style.backgroundColor="#bd4747"; document.getElementById("NZDCHF_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.NZDCHF_h.src="../photo/current/up1.JPG";document.getElementById("NZDCHF_s").style.backgroundColor="#009278"; document.getElementById("NZDCHF_b").style.backgroundColor="#009278"; document.getElementById("NZDCHF_a").style.backgroundColor="#009278";}
     }
   if(j==70){document.getElementById("NZDCHF_b").value=pp;}
   if(j==71){document.getElementById("NZDCHF_a").value=pp;}
   //
   //NZDJPY
   if(j==72){
     if(pp=="m"){document.Form1.NZDJPY_h.src="../photo/current/middle1.JPG";document.getElementById("NZDJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("NZDJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("NZDJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.NZDJPY_h.src="../photo/current/down1.JPG";document.getElementById("NZDJPY_s").style.backgroundColor="#bd4747"; document.getElementById("NZDJPY_b").style.backgroundColor="#bd4747"; document.getElementById("NZDJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.NZDJPY_h.src="../photo/current/up1.JPG";document.getElementById("NZDJPY_s").style.backgroundColor="#009278"; document.getElementById("NZDJPY_b").style.backgroundColor="#009278"; document.getElementById("NZDJPY_a").style.backgroundColor="#009278";}
     }
   if(j==73){document.getElementById("NZDJPY_b").value=pp;}
   if(j==74){document.getElementById("NZDJPY_a").value=pp;}
   //
   //NZDUSD
   if(j==75){
     if(pp=="m"){document.Form1.NZDUSD_h.src="../photo/current/middle1.JPG";document.getElementById("NZDUSD_s").style.backgroundColor="#8e8e8e";document.getElementById("NZDUSD_b").style.backgroundColor="#8e8e8e";document.getElementById("NZDUSD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.NZDUSD_h.src="../photo/current/down1.JPG";document.getElementById("NZDUSD_s").style.backgroundColor="#bd4747"; document.getElementById("NZDUSD_b").style.backgroundColor="#bd4747"; document.getElementById("NZDUSD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.NZDUSD_h.src="../photo/current/up1.JPG";document.getElementById("NZDUSD_s").style.backgroundColor="#009278"; document.getElementById("NZDUSD_b").style.backgroundColor="#009278"; document.getElementById("NZDUSD_a").style.backgroundColor="#009278";}
     }
   if(j==76){document.getElementById("NZDUSD_b").value=pp;}
   if(j==77){document.getElementById("NZDUSD_a").value=pp;}
   //
   //AUDJPY
   if(j==78){
     if(pp=="m"){document.Form1.AUDJPY_h.src="../photo/current/middle1.JPG";document.getElementById("AUDJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("AUDJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("AUDJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.AUDJPY_h.src="../photo/current/down1.JPG";document.getElementById("AUDJPY_s").style.backgroundColor="#bd4747"; document.getElementById("AUDJPY_b").style.backgroundColor="#bd4747"; document.getElementById("AUDJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.AUDJPY_h.src="../photo/current/up1.JPG";document.getElementById("AUDJPY_s").style.backgroundColor="#009278"; document.getElementById("AUDJPY_b").style.backgroundColor="#009278"; document.getElementById("AUDJPY_a").style.backgroundColor="#009278";}
     }
   if(j==79){document.getElementById("AUDJPY_b").value=pp;}
   if(j==80){document.getElementById("AUDJPY_a").value=pp;}
   //
   //AUDNZD
   if(j==81){
     if(pp=="m"){document.Form1.AUDNZD_h.src="../photo/current/middle1.JPG";document.getElementById("AUDNZD_s").style.backgroundColor="#8e8e8e";document.getElementById("AUDNZD_b").style.backgroundColor="#8e8e8e";document.getElementById("AUDNZD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.AUDNZD_h.src="../photo/current/down1.JPG";document.getElementById("AUDNZD_s").style.backgroundColor="#bd4747"; document.getElementById("AUDNZD_b").style.backgroundColor="#bd4747"; document.getElementById("AUDNZD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.AUDNZD_h.src="../photo/current/up1.JPG";document.getElementById("AUDNZD_s").style.backgroundColor="#009278"; document.getElementById("AUDNZD_b").style.backgroundColor="#009278"; document.getElementById("AUDNZD_a").style.backgroundColor="#009278";}
     }
   if(j==82){document.getElementById("AUDNZD_b").value=pp;}
   if(j==83){document.getElementById("AUDNZD_a").value=pp;}
   //
   //AUDUSD
   if(j==84){
     if(pp=="m"){document.Form1.AUDUSD_h.src="../photo/current/middle1.JPG";document.getElementById("AUDUSD_s").style.backgroundColor="#8e8e8e";document.getElementById("AUDUSD_b").style.backgroundColor="#8e8e8e";document.getElementById("AUDUSD_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.AUDUSD_h.src="../photo/current/down1.JPG";document.getElementById("AUDUSD_s").style.backgroundColor="#bd4747"; document.getElementById("AUDUSD_b").style.backgroundColor="#bd4747"; document.getElementById("AUDUSD_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.AUDUSD_h.src="../photo/current/up1.JPG";document.getElementById("AUDUSD_s").style.backgroundColor="#009278"; document.getElementById("AUDUSD_b").style.backgroundColor="#009278"; document.getElementById("AUDUSD_a").style.backgroundColor="#009278";}
     }
   if(j==85){document.getElementById("AUDUSD_b").value=pp;}
   if(j==86){document.getElementById("AUDUSD_a").value=pp;}
   //
   //CADJPY
   if(j==87){
     if(pp=="m"){document.Form1.CADJPY_h.src="../photo/current/middle1.JPG";document.getElementById("CADJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("CADJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("CADJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.CADJPY_h.src="../photo/current/down1.JPG";document.getElementById("CADJPY_s").style.backgroundColor="#bd4747"; document.getElementById("CADJPY_b").style.backgroundColor="#bd4747"; document.getElementById("CADJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.CADJPY_h.src="../photo/current/up1.JPG";document.getElementById("CADJPY_s").style.backgroundColor="#009278"; document.getElementById("CADJPY_b").style.backgroundColor="#009278"; document.getElementById("CADJPY_a").style.backgroundColor="#009278";}
     }
   if(j==88){document.getElementById("CADJPY_b").value=pp;}
   if(j==89){document.getElementById("CADJPY_a").value=pp;}
   //
   //CHFJPY
   if(j==90){
     if(pp=="m"){document.Form1.CHFJPY_h.src="../photo/current/middle1.JPG";document.getElementById("CHFJPY_s").style.backgroundColor="#8e8e8e";document.getElementById("CHFJPY_b").style.backgroundColor="#8e8e8e";document.getElementById("CHFJPY_a").style.backgroundColor="#8e8e8e";}
     if(pp=="d"){document.Form1.CHFJPY_h.src="../photo/current/down1.JPG";document.getElementById("CHFJPY_s").style.backgroundColor="#bd4747"; document.getElementById("CHFJPY_b").style.backgroundColor="#bd4747"; document.getElementById("CHFJPY_a").style.backgroundColor="#bd4747";}
     if(pp=="u"){document.Form1.CHFJPY_h.src="../photo/current/up1.JPG";document.getElementById("CHFJPY_s").style.backgroundColor="#009278"; document.getElementById("CHFJPY_b").style.backgroundColor="#009278"; document.getElementById("CHFJPY_a").style.backgroundColor="#009278";}
     }
   if(j==91){document.getElementById("CHFJPY_b").value=pp;}
   if(j==92){document.getElementById("CHFJPY_a").value=pp;}
   //
//end pol
   pp="";j++;}else{pp=pp+s.charAt(i);}
 }
}

