function selectForcast()
{
  var flds = document.forcastform.forcast.options[document.forcastform.forcast.selectedIndex].value.split(",");
  mytext.innerText = flds[0] + ',' + flds[1] + ' °م';
  document.getElementById("forcastimage").src = 'weather/' + flds[2];
}

function do_cc_submit()
{
  if( js_verify_cc(document.cc) )
     {
       var exchg;
       exchg = window.document.cc.fromamount.value / window.document.cc.fromcurrency[cc.fromcurrency.selectedIndex].value;
       exchg = exchg  * window.document.cc.tocurrency[cc.tocurrency.selectedIndex].value;
       window.document.cc.toamount.value = exchg.toFixed(3);
       document.getElementById("cc_1").style.color="red";
       document.getElementById("cc_1").style.fontWeight="bold";
       document.getElementById("cc_2").style.color="red";
       document.getElementById("cc_2").style.fontWeight="bold";
       js_pickCurrencylastupdate(document.cc.tocurrency.selectedIndex,document.cc.lastupdate);
       document.cc.lastupdate.disabled=false;
       document.getElementById("cc_0").style.color="red";
       document.getElementById("cc_0").style.fontWeight="bold";
     }  
}
function reset_cc()
{
  document.getElementById("cc_1").style.color="black";
  document.getElementById("cc_1").style.fontWeight="normal";
  document.getElementById("cc_2").style.color="black";
  document.getElementById("cc_2").style.fontWeight="normal";
  document.cc.lastupdate.value = 'اخر تحديث';
  document.getElementById("cc_0").style.color="black";
  document.getElementById("cc_0").style.fontWeight="normal";
  document.cc.lastupdate.disabled=true;
}

function do_hlc_submit()
{
  if( js_verify_hlc(document.hlc) )
     {
       js_hlc_calc(document.hlc);
     }  
}

function do_map_submit()
{
  if( document.mapform.citymap.selectedIndex > 0  ) 
  {
    enlarge_image(document.mapform.citymap.options[document.mapform.citymap.selectedIndex ].value);
  }  
}

function right_adspace_1_do_submit()
{
	location.href = 'c_login.jsp';
}


function do_submit()
{
 if( js_verifysearch(document.searchads) )
   document.searchads.submit();  
}

function do_login()
{
  document.login.reqname.value='login';
  document.login.reqparam1.value=document.login.email.value;
  document.login.reqparam2.value=document.login.password.value;
  document.login.submit();  
}


