function rateing(){
//-----------------//
Selling = new Array();
Selling[1]=220.00;
Selling[2]=345.87;
Selling[3]=288.31;
Selling[4]=57.92;
Selling[5]=611.60;
Selling[6]=59.15;
Selling[7]=32.17;
Selling[8]=488.02; 
Selling[9]=50.55;
Selling[10]=259.34;
Selling[11]=477.90;
Selling[12]=131.18;
Selling[13]=21.14;
Selling[14]=1.511852;


//--------------------------//
Buying = new Array();
Buying[1] =219.00;
Buying[2] =335.13;
Buying[3] =279.38;
Buying[4] =55.87;
Buying[5] =607.94;
Buying[6] =57.06;
Buying[7] =31.98;
Buying[8] =485.11;
Buying[9] =50.25;
Buying[10] =257.79;
Buying[11] =475.04;
Buying[12] =130.39;
Buying[13] =21.01;
Buying[14] =1.502814;



currencytype =document.exchang.curncy.options[document.exchang.curncy.selectedIndex].value;

if (currencytype ==00){
document.exchang.rate1.value='';
document.exchang.rate2.value='';
if (!document.images)
return
document.images.pictures.src='flags/me.jpg'


}


if (currencytype ==1){
document.exchang.rate1.value=Buying[1];
document.exchang.rate2.value=Selling[1];
document.images.pictures.src='flags/us-flag.jpg'
}

if (currencytype ==2){
document.exchang.rate1.value=Buying[2];
document.exchang.rate2.value=Selling[2];
if (!document.images)
return
document.images.pictures.src='flags/uk-flag.jpg'
}


if (currencytype ==3){
document.exchang.rate1.value=Buying[3];
document.exchang.rate2.value=Selling[3];
document.images.pictures.src='flags/euroflag.jpg'

}

if (currencytype ==4){
document.exchang.rate1.value=Buying[4];
document.exchang.rate2.value=Selling[4];
document.images.pictures.src='flags/sa-flag.jpg'
}

if (currencytype ==5){
document.exchang.rate1.value=Buying[5];
document.exchang.rate2.value=Selling[5];
document.images.pictures.src='flags/ku-flag.jpg'
}

if (currencytype ==6){
document.exchang.rate1.value=Buying[6];
document.exchang.rate2.value=Selling[6];
document.images.pictures.src='flags/tc-flag.jpg'
}

if (currencytype ==7){
document.exchang.rate1.value=Buying[7];
document.exchang.rate2.value=Selling[7];
document.images.pictures.src='flags/eg-flag.jpg'

}


if (currencytype ==8){
document.exchang.rate1.value=Buying[8];
document.exchang.rate2.value=Selling[8];
document.images.pictures.src='flags/ba-flag.jpg'
}

if (currencytype ==9){
document.exchang.rate1.value=Buying[9];
document.exchang.rate2.value=Selling[9];
document.images.pictures.src='flags/qa-flag.jpg'

}

if (currencytype ==10){
document.exchang.rate1.value=Buying[10];
document.exchang.rate2.value=Selling[10];
document.images.pictures.src='flags/jo-flag.jpg'

}

if (currencytype ==11){
document.exchang.rate1.value=Buying[11];
document.exchang.rate2.value=Selling[11];
document.images.pictures.src='flags/mu-flag.jpg'
}


if (currencytype ==12){
document.exchang.rate1.value=Buying[12];
document.exchang.rate2.value=Selling[12];
document.images.pictures.src='flags/sw-flag.jpg'
}

if (currencytype ==13){
document.exchang.rate1.value=Buying[13];
document.exchang.rate2.value=Selling[13];
document.images.pictures.src='flags/wz-flag.jpg'
}

if (currencytype ==14){
document.exchang.rate1.value=Buying[14];
document.exchang.rate2.value=Selling[14];
document.images.pictures.src='flags/ja-flag.jpg'

}
}

