
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.281858'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.187294'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.634690'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.730033'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.391379'  >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.682800'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001349'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.106926'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.022717'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000364'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.136628'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.038196'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134375'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.377446'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008378'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.508907'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.088559'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.038640'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.093958'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003663'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005682'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.015595'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000078'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.195824'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008194'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008173'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000623'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.212076'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.055532'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089106'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.132054'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.412468'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.501985'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.122768'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008583'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.730033'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.254415'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.015704'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.244643'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.241776'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.023912'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.010133'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.513538'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.094363'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006365'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.098596'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.682391'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.021993'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.115256'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.530330'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.480135'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.198766'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.142379'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.730033'  >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000040'  >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.281858'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.187294'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.634690'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.730033'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.391379'  >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.682800'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001349'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.106926'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.022717'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000364'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.136628'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.038196'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134375'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.377446'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008378'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.508907'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.088559'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.038640'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.093958'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003663'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005682'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.015595'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000078'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.195824'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.008194'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008173'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000623'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.212076'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.055532'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.089106'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.132054'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.412468'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.501985'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.122768'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008583'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.730033'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.254415'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.015704'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.244643'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.241776'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.023912'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.010133'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.513538'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.094363'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006365'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.098596'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.682391'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.021993'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.115256'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.530330'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.480135'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.198766'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.142379'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.730033' selected=selected >USA             Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000040'  >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;
}
