function writeJS(){
if (size=="250") {width = "250"; height = "150";}
if (size=="125") {width = "150"; height = "150";} 
if (size=="728") {width = "728"; height = "60";}
if (curr1=="") {curr1 = "USD";}
if (expressedas=="") {expressedas = "USD";}
if (amt=="") {amt = "1.00";}
var str='';
str+='<table border=\"0\" width=\"'+width+'\" cellspacing=\"0\" cellpadding=\"0\">';
str+='<tr>';
str+='<td><table border=\"0\" width=\"'+width+'\" cellspacing=\"0\" cellpadding=\"0\">';
str+='<tr>';
str+='<td valign=\"top\" align=\"center\" bgcolor=\"#70071C\"><strong><font color=\"#FFFFFF\" size=\"3\" face=\"Georgia, \"Times New Roman\", Times, serif\">Currency Converter<\/font></strong><\/td>';
str+='<\/tr>';
str+='<\/table><\/td>';
str+='<\/tr>';
str+='<tr>';
str+='<td><table border=\"0\" width=\"'+width+'\" cellspacing=\"0\" cellpadding=\"0\">';
str+='<tr>';
str+='<td style=\"border-left:1px solid #70071C; border-right:1px solid #70071C;\" valign=\"top\" align=\"center\"><iframe src=\"http:\/\/www.foreignexchangeresource.com/currency-converter.php?curr1='+curr1+'&amt='+amt+'&expressedas='+expressedas+'&size='+size+'\"  width=\"100%\" height=\"'+height+'\" border=\"0\" marginwidth=\"0\" marginheight=\"0\" hspace=\"0\" vspace=\"0\" frameborder=\"0\" scrolling=\"No\"><\/iframe><\/td>';
str+='<\/tr>';
str+='<\/table><\/td>';
str+='<\/tr>';
str+='<\/table>';
str+='<table width="'+width+'" border="0" cellpadding="0" cellspacing="2" bgcolor="#70071C"><tr>';
str+='<td bgcolor="#70071C"><div align="center"><font color="#FFFFFF" size="1">Powered By<br>';
str+='<a href="http://www.foreignexchangeresource.com" target="_blank"><font color="#CCCCCC">Foreign Exchange Resource</font></a> ';
str+='</div></td></tr></table>';
document.write(str);
}
writeJS();
