// JavaScript Document
var alphaNumericChars = /[^0-9a-zA-Z]/
var numericChars = /[^0-9]/

var failed = false;
if(numericChars.test(tr_id)) { failed = true; }

if(failed == false) {
	window.document.write('<iframe src="http://tweetreel.com/embed.php?id='+tr_id+'&res=640" width="640" height="640" frameborder="0" marginheight="0" marginwidth="0"></iframe>');
} else {
	window.document.write('Error, check your input settings');
}