
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.263523'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.181442'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.577707'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.703652'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.373090'  >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.649400'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001299'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.102994'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.021404'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000355'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.136503'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039217'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134296'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.347812'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008377'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.469050'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.086436'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.037237'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.090790'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003739'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005571'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.014624'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000071'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.184232'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.007968'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.007384'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000566'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.199951'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.053212'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.088384'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.128972'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.395301'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.460763'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.113516'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008488'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.703652'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.234949'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.014663'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.239366'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.237293'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.022891'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.010689'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.488675'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.090851'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006124'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.094618'  >Sweden          Kronoa         </OPTION>")
	document.write("<OPTION VALUE='0.655893'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.020716'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.113061'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.530512'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.474985'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.191637'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.160057'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.703652'  >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.263523'  >Anguilla        Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.181442'  >Argentina       Peso           </OPTION>")
	document.write("<OPTION VALUE='0.577707'  >Australia       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.703652'  >Bahamas         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.373090'  >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.649400'  >Canada          Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.001299'  >Chile           Peso           </OPTION>")
	document.write("<OPTION VALUE='0.102994'  >China           Yuan Renminbi  </OPTION>")
	document.write("<OPTION VALUE='0.021404'  >China           Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.000355'  >Colombia        Peso           </OPTION>")
	document.write("<OPTION VALUE='0.136503'  >Croatia         Kuna           </OPTION>")
	document.write("<OPTION VALUE='0.039217'  >Czech Republic  Koruna         </OPTION>")
	document.write("<OPTION VALUE='0.134296'  >Denmark         Krone          </OPTION>")
	document.write("<OPTION VALUE='0'  >Estonia         Kroon          </OPTION>")
	document.write("<OPTION VALUE='0.347812'  >Fiji            Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.008377'  >French Polynesia Franc          </OPTION>")
	document.write("<OPTION VALUE='0.469050'  >Ghana           Cedi           </OPTION>")
	document.write("<OPTION VALUE='0.086436'  >Guatemala       Quetzal        </OPTION>")
	document.write("<OPTION VALUE='0.037237'  >Honduras        Lempira        </OPTION>")
	document.write("<OPTION VALUE='0.090790'  >Hong Kong       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.003739'  >Hungary         Forint         </OPTION>")
	document.write("<OPTION VALUE='0.005571'  >Iceland         Krona          </OPTION>")
	document.write("<OPTION VALUE='0.014624'  >India           Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.000071'  >Indonesia       Rupiah         </OPTION>")
	document.write("<OPTION VALUE='0.184232'  >Israel          Shekel         </OPTION>")
	document.write("<OPTION VALUE='0.007968'  >Jamaica         Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.007384'  >Japan           Yen            </OPTION>")
	document.write("<OPTION VALUE='0.000566'  >Korea           Won            </OPTION>")
	document.write("<OPTION VALUE='0'  >Latvia          Lat            </OPTION>")
	document.write("<OPTION VALUE='0'  >Lithuania       Litas          </OPTION>")
	document.write("<OPTION VALUE='0.199951'  >Malaysia        Ringgit        </OPTION>")
	document.write("<OPTION VALUE='0.053212'  >Mexico          Peso           </OPTION>")
	document.write("<OPTION VALUE='0.088384'  >Morocco         Dirham         </OPTION>")
	document.write("<OPTION VALUE='0.128972'  >Myanmar (Burma) Kyat           </OPTION>")
	document.write("<OPTION VALUE='0.395301'  >Netherlands Antilles Guilder        </OPTION>")
	document.write("<OPTION VALUE='0.460763'  >New Zealand     Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.113516'  >Norway          Krone          </OPTION>")
	document.write("<OPTION VALUE='0.008488'  >Pakistan        Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.703652'  >Panama          Balboa         </OPTION>")
	document.write("<OPTION VALUE='0.234949'  >Peru            Sol            </OPTION>")
	document.write("<OPTION VALUE='0.014663'  >Philippines     Peso           </OPTION>")
	document.write("<OPTION VALUE='0.239366'  >Poland          Polish Zloty   </OPTION>")
	document.write("<OPTION VALUE='0.237293'  >Romania         Leu            </OPTION>")
	document.write("<OPTION VALUE='0.022891'  >Russia          Ruble          </OPTION>")
	document.write("<OPTION VALUE='0.010689'  >Serbia          Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.488675'  >Singapore       Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.090851'  >South Africa    Rand           </OPTION>")
	document.write("<OPTION VALUE='0.006124'  >Sri Lanka       Rupee          </OPTION>")
	document.write("<OPTION VALUE='0.094618'  >Sweden          Kronoa         </OPTION>")
	document.write("<OPTION VALUE='0.655893'  >Switzerland     Franc          </OPTION>")
	document.write("<OPTION VALUE='0.020716'  >Thailand        Baht           </OPTION>")
	document.write("<OPTION VALUE='0.113061'  >Trinidad and Tobago Dollar         </OPTION>")
	document.write("<OPTION VALUE='0.530512'  >Tunisia         Dinar          </OPTION>")
	document.write("<OPTION VALUE='0.474985'  >Turkey          Lira           </OPTION>")
	document.write("<OPTION VALUE='0.191637'  >United Arab Emirates Dirham         </OPTION>")
	document.write("<OPTION VALUE='1.160057'  >United Kingdom  Pound          </OPTION>")
	document.write("<OPTION VALUE='0.703652' 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;
}
