
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.292268'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.195022'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.709582'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.780414'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.448324'  >Brazil          Real           </OPTION>")
	document.write("<OPTION VALUE='0'  >Bulgaria        Lev            </OPTION>")
	document.write("<OPTION VALUE='0.001524'  >Cameroon        Franc          </OPTION>")
	document.write("<OPTION VALUE='0.743500'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001565'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.114573'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.024387'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000430'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.137474'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.040446'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134351'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.401631'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008379'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.544330'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.097176'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.041301'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.100389'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003516'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.006518'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.016692'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000086'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.206098'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.009160'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.009234'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000659'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.249740'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.059844'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.090187'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.138959'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.440958'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.556345'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.126321'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.009130'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.780414'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.279259'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.017286'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.251974'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.234943'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.025405'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009494'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.579411'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.107065'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006922'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.107362'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.768873'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.025034'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.123198'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.526707'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.515675'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.212489'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.207373'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.780414'  >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.292268'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.195022'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.709582'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.780414'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.448324'  >Brazil          Real           </OPTION>")
	document.write("<OPTION VALUE='0'  >Bulgaria        Lev            </OPTION>")
	document.write("<OPTION VALUE='0.001524'  >Cameroon        Franc          </OPTION>")
	document.write("<OPTION VALUE='0.743500'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001565'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.114573'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.024387'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000430'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.137474'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.040446'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134351'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.401631'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008379'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.544330'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.097176'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.041301'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.100389'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003516'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.006518'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.016692'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000086'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.206098'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.009160'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.009234'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000659'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.249740'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.059844'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.090187'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.138959'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.440958'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.556345'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.126321'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.009130'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.780414'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.279259'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.017286'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.251974'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.234943'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.025405'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.009494'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.579411'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.107065'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006922'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.107362'  >Sweden          Krona          </OPTION>")
	document.write("<OPTION VALUE='0.768873'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.025034'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.123198'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.526707'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.515675'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.212489'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.207373'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.780414' 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;
}
