var interchange_echo_kurs_str_hidden_kurs = new String("<input type='hidden' value='31.9237' id='interchange_echo_kurs_AUD'><input type='hidden' value='37.9116' id='interchange_echo_kurs_AZN'><input type='hidden' value='47.1858' id='interchange_echo_kurs_GBP'><input type='hidden' value='0.0765542' id='interchange_echo_kurs_AMD'><input type='hidden' value='0.00360092' id='interchange_echo_kurs_BYR'><input type='hidden' value='20.1813' id='interchange_echo_kurs_BGN'><input type='hidden' value='17.3349' id='interchange_echo_kurs_BRL'><input type='hidden' value='0.136285' id='interchange_echo_kurs_HUF'><input type='hidden' value='5.30954' id='interchange_echo_kurs_DKK'><input type='hidden' value='29.7796' id='interchange_echo_kurs_USD'><input type='hidden' value='39.5235' id='interchange_echo_kurs_EUR'><input type='hidden' value='0.606312' id='interchange_echo_kurs_INR'><input type='hidden' value='0.201234' id='interchange_echo_kurs_KZT'><input type='hidden' value='29.9563' id='interchange_echo_kurs_CAD'><input type='hidden' value='0.637185' id='interchange_echo_kurs_KGS'><input type='hidden' value='4.7288' id='interchange_echo_kurs_CNY'><input type='hidden' value='56.5614' id='interchange_echo_kurs_LVL'><input type='hidden' value='11.4313' id='interchange_echo_kurs_LTL'><input type='hidden' value='2.51942' id='interchange_echo_kurs_MDL'><input type='hidden' value='5.25334' id='interchange_echo_kurs_NOK'><input type='hidden' value='9.46616' id='interchange_echo_kurs_PLN'><input type='hidden' value='9.06505' id='interchange_echo_kurs_RON'><input type='hidden' value='23.7553' id='interchange_echo_kurs_SGD'><input type='hidden' value='6.2574' id='interchange_echo_kurs_TJS'><input type='hidden' value='17.1039' id='interchange_echo_kurs_TRY'><input type='hidden' value='0.0163231' id='interchange_echo_kurs_UZS'><input type='hidden' value='3.71525' id='interchange_echo_kurs_UAH'><input type='hidden' value='1.58655' id='interchange_echo_kurs_CZK'><input type='hidden' value='4.47605' id='interchange_echo_kurs_SEK'><input type='hidden' value='32.6889' id='interchange_echo_kurs_CHF'><input type='hidden' value='3.8817' id='interchange_echo_kurs_ZAR'><input type='hidden' value='0.0265321' id='interchange_echo_kurs_KRW'><input type='hidden' value='0.373295' id='interchange_echo_kurs_JPY'><input type='hidden' value='1' id='interchange_echo_kurs_RUB'>");var interchange_echo_kurs_str_select = "<table border=0 cellpadding=2 cellspacing=2 width='100%' class='interchange_currency' style='border: none;'><tr align='right'><td>Из <select id='interchange_echo_kurs_select_valuta_start' onChange='interchange_echo_kurs_fcn_otvet()' class='interchange_informer'><option value='AUD'>AUD</option><option value='AZN'>AZN</option><option value='GBP'>GBP</option><option value='AMD'>AMD</option><option value='BYR'>BYR</option><option value='BGN'>BGN</option><option value='BRL'>BRL</option><option value='HUF'>HUF</option><option value='DKK'>DKK</option><option value='USD'>USD</option><option value='EUR'>EUR</option><option value='INR'>INR</option><option value='KZT'>KZT</option><option value='CAD'>CAD</option><option value='KGS'>KGS</option><option value='CNY'>CNY</option><option value='LVL'>LVL</option><option value='LTL'>LTL</option><option value='MDL'>MDL</option><option value='NOK'>NOK</option><option value='PLN'>PLN</option><option value='RON'>RON</option><option value='SGD'>SGD</option><option value='TJS'>TJS</option><option value='TRY'>TRY</option><option value='UZS'>UZS</option><option value='UAH'>UAH</option><option value='CZK'>CZK</option><option value='SEK'>SEK</option><option value='CHF'>CHF</option><option value='ZAR'>ZAR</option><option value='KRW'>KRW</option><option value='JPY'>JPY</option><option value='RUB' selected>RUB</option></select><td align=right><input type='text' class='interchange_informer' size=5 id='interchange_echo_kurs_text' value=0 onKeyUp='interchange_echo_kurs_fcn_otvet()'><td align=right><img src='http://time-clock.biz/img/RUB.gif' id='img_start_money'><tr><td align=right>В  <select id='interchange_echo_kurs_select_valuta_end' onChange='interchange_echo_kurs_fcn_otvet()' class='interchange_informer'><option value='AUD'>AUD</option><option value='AZN'>AZN</option><option value='GBP'>GBP</option><option value='AMD'>AMD</option><option value='BYR'>BYR</option><option value='BGN'>BGN</option><option value='BRL'>BRL</option><option value='HUF'>HUF</option><option value='DKK'>DKK</option><option value='USD' selected>USD</option><option value='EUR'>EUR</option><option value='INR'>INR</option><option value='KZT'>KZT</option><option value='CAD'>CAD</option><option value='KGS'>KGS</option><option value='CNY'>CNY</option><option value='LVL'>LVL</option><option value='LTL'>LTL</option><option value='MDL'>MDL</option><option value='NOK'>NOK</option><option value='PLN'>PLN</option><option value='RON'>RON</option><option value='SGD'>SGD</option><option value='TJS'>TJS</option><option value='TRY'>TRY</option><option value='UZS'>UZS</option><option value='UAH'>UAH</option><option value='CZK'>CZK</option><option value='SEK'>SEK</option><option value='CHF'>CHF</option><option value='ZAR'>ZAR</option><option value='KRW'>KRW</option><option value='JPY'>JPY</option><option value='RUB'>RUB</option></select><td align=right><input type='text' class='interchange_informer' size=5 id='interchange_echo_kurs_insert_otvet' value=0><td align=right><img src='http://time-clock.biz/img/USD.gif' id='img_end_money'></table>";

tmplink = document.getElementById('interchange_link').href;
reg_str = new RegExp("^http://time-clock.biz/", "i");
arr_val = reg_str.exec(tmplink);
if (arr_val && arr_val['index']==0)
{
	function interchange_echo_kurs_fcn_otvet()
	{
		document.getElementById('interchange_echo_kurs_insert_otvet').value = Math.round(100 * document.getElementById('interchange_echo_kurs_' + document.getElementById('interchange_echo_kurs_select_valuta_start').value + '').value / document.getElementById('interchange_echo_kurs_' +document.getElementById('interchange_echo_kurs_select_valuta_end').value +'').value * document.getElementById('interchange_echo_kurs_text').value) / 100;
		document.getElementById('img_start_money').src = "http://time-clock.biz/img/" + document.getElementById('interchange_echo_kurs_select_valuta_start').value +".gif";
		document.getElementById('img_end_money').src = "http://time-clock.biz/img/" + document.getElementById('interchange_echo_kurs_select_valuta_end').value +".gif";
	}
	
	document.getElementById('interchange_echo_kurs_insert_html').innerHTML = '' + interchange_echo_kurs_str_hidden_kurs + interchange_echo_kurs_str_select;
}
else
{
document.getElementById('interchange_echo_kurs_insert_html').innerHTML = '<p style="color: red;">Изменен код конвертера! Ссылка в заголовке имеет неправильный параметр HREF (он должен быть равен = <b>"http://time-clock.biz/"</b>)</p>';
}
