
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.282708'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.187636'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.671489'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.732152'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.413945'  >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.714800'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001412'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.107292'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.022995'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000387'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.137671'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039157'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134384'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.380354'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008377'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.517521'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.090851'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.038749'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.094369'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003755'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005738'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.016133'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000080'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.195643'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008199'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008077'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000648'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.220447'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.058120'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089207'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.131523'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.412512'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.518535'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.124804'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008692'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.732152'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.257827'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.016054'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.257902'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.244460'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.024796'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009993'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.523817'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.098785'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006417'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.102788'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.684150'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.022430'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.115583'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.528464'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.477425'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.199359'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.096487'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.732152'  >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000039'  >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.282708'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.187636'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.671489'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.732152'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.413945'  >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.714800'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001412'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.107292'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.022995'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000387'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.137671'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039157'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134384'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.380354'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008377'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.517521'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.090851'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.038749'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.094369'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003755'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005738'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.016133'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000080'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.195643'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008199'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008077'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000648'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.220447'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.058120'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089207'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.131523'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.412512'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.518535'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.124804'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008692'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.732152'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.257827'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.016054'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.257902'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.244460'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.024796'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009993'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.523817'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.098785'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006417'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.102788'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.684150'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.022430'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.115583'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.528464'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.477425'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.199359'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.096487'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.732152' selected=selected >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000039'  >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;
}
