
function cconv1(){
	if(!(document.textor.val1.value))
	{
		//alert("From cconv.txt template");
		document.getElementById('val2').innerHTML = "Amount????";
	} 
	else if ((document.textor.cur1.options[document.textor.cur1.selectedIndex].value == -1) || (document.textor.cur2.options[document.textor.cur2.selectedIndex].value == -1))
	{
		document.getElementById('val2').innerHTML = "Rate N/A";
	}
	else
	{
		var result = parseFloat(document.textor.val1.value)*(parseFloat(document.textor.cur1.options[document.textor.cur1.selectedIndex].value)/parseFloat(document.textor.cur2.options[document.textor.cur2.selectedIndex].value));
		result=Math.round(result*100)/100;
		document.getElementById('val2').innerHTML=result;
	}
}
if (document.textor.texaccept.value == "site operator accepts conditions at http://cconv.textor.com")
{
	siteok=true;
	document.write("<TABLE BORDER=0 width=450><tr><td colspan='4'><img src='http://cconv.textor.com/conv.gif' alt='The Textor Webmasters Ltd Currency Converter (C) Textor Webmasters Ltd 1998' border=0></TD></TR>");
	document.write("<TR><TD><IMG SRC='http://cconv.textor.com/conv6.gif' ALT='Step 1 - enter base amount' BORDER='0'>");
	document.write("</TD><TD><INPUT TYPE=TEXT size=4 NAME=val1 ONBLUR='cconv1();'></TD><TD><SELECT NAME=cur1 ID='cur1' ONCHANGE='cconv1();'>");
		document.write("<OPTION VALUE='1.000000' selected=selected >                Euro           </OPTION>")
	document.write("<OPTION VALUE='0.283909'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.156795'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.806885'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.758086'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.435566'  >Brazil          Real           </OPTION>")
	document.write("<OPTION VALUE='0'  >Bulgaria        Lev            </OPTION>")
	document.write("<OPTION VALUE='0.001525'  >Cameroon        Franc          </OPTION>")
	document.write("<OPTION VALUE='0.757100'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001563'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.119698'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.025469'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000419'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.132039'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039763'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134536'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.426391'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008381'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.450387'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.095774'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.039786'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.097763'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003401'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.006167'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.015346'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000085'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.201464'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008790'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.009888'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000676'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.249161'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.058637'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089490'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.137868'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.433223'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.624464'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.130600'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008404'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.758086'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.281869'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.017686'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.235989'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.229779'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.025105'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009380'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.605002'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.097818'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006659'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.112278'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.829153'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.024401'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.118638'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.506286'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.425648'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.206384'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.191345'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.758086'  >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000036'  >Vietnam         Dong           </OPTION>")

	document.write("</SELECT></TD><TD><IMG SRC='http://cconv.textor.com/conv7.gif' ALT='Step 2 - select first currency' BORDER='0'></TD></TR><TR>");
	document.write("<TD><IMG SRC='http://cconv.textor.com/conv9.gif' ALT='Step 4 - result here' BORDER='0'></TD><TD><div style='margin-top:8px;float:left;height:20px;min-width:40px;width:auto;color:red;font-weight:bold;' name='val2' id='val2'></div></TD>");
	document.write("<TD><SELECT NAME='cur2' ID='cur2' ONCHANGE='cconv1();'>");
		document.write("<OPTION VALUE='1.000000'  >                Euro           </OPTION>")
	document.write("<OPTION VALUE='0.283909'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.156795'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.806885'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.758086'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.435566'  >Brazil          Real           </OPTION>")
	document.write("<OPTION VALUE='0'  >Bulgaria        Lev            </OPTION>")
	document.write("<OPTION VALUE='0.001525'  >Cameroon        Franc          </OPTION>")
	document.write("<OPTION VALUE='0.757100'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001563'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.119698'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.025469'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000419'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.132039'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039763'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134536'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.426391'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008381'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.450387'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.095774'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.039786'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.097763'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003401'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.006167'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.015346'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000085'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.201464'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008790'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.009888'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000676'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.249161'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.058637'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089490'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.137868'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.433223'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.624464'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.130600'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008404'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.758086'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.281869'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.017686'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.235989'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.229779'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.025105'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009380'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.605002'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.097818'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006659'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.112278'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.829153'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.024401'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.118638'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.506286'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.425648'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.206384'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.191345'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.758086' selected=selected >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000036'  >Vietnam         Dong           </OPTION>")

	document.write("</SELECT></TD><TD><IMG SRC='http://cconv.textor.com/conv8.gif' ALT='Step 3 - select conversion currency' BORDER='0'></TD></TR>");
	document.write("<TR><TD COLSPAN='4'><a href='http://cconv.textor.com' target='_blank'><img src='http://cconv.textor.com/conv11.gif' border=0 alt='All rates indicative only.  For more information click here'></a></TD></TR></TABLE>");
}
else
{
	document.write("<H1>Unauthorised use</H1>");
	alert ("Textor Webmasters Ltd Converter \nhttp://cconv.textor.com\nProblem at: "+window.location);
	siteok=false;
}

