var twtTitle  = document.title;
var twtUrl    = location.href;
var maxLength = 140 - (twtUrl.length + 1);
if (twtTitle.length > maxLength) {
twtTitle = twtTitle.substr(0, (maxLength - 3))+'...';
}
var twtLink = 'http://twitter.com/home?status='+encodeURIComponent(twtTitle + ' ' + twtUrl);
document.write('<img src="http://www.businessenglishmaterials.com/images/twitter.jpg"  border="0" alt="Tweet This!" /'+'> <a href="'+twtLink+'" target="_blank"'+'><font size="1">Tweet This!<'+'/a>');
