// Peasy Javascript recommend-o-tron: reads the page URL and a
// random e-mail subject and message, then bungs it in a mailto
// link. NB: \r in first func skips the recipient address; if you want
// carriage returns in the message body, use %0a instead. This is
// because everything to do with computers is rubbish. NB2: you can't
// have multiple rets (ie, %0a%0a will still be one carriage return).
// This is also because everything to do with etc etc.

function recommend()
{ document.write("<a href='mailto:\r?Subject=" + find_rand_subject() + "&amp;Body=" + find_rand_body() + "%0a%0a" + document.location.href + "'>Recommend this feature to a chum</a>"); }

function find_rand_subject()
{
var rand_subject = new Array(
"Recommending fun websites since 1891",
"I found this moderately interesting",
"Tiny Horsey = Excellent"
);
return find_rand_bit(rand_subject);
}

function find_rand_body()
{
var rand_body = new Array(
"Dearest friend,%0aI thought I would take 4.2 seconds to demonstrate my everlasting affection for you and recommend this most excellent feature.%0aIt is from the best Internet Web Site on the Internet, www.tinyhorsey.co.uk%0aI hope you enjoy it as much as I did.%0aLet us get together soon and play that game you like involving tubes.%0aHERE IS THE FEATURE:"
);
return find_rand_bit(rand_body);
}

function find_rand_bit(rand_bits)
{ return (rand_bits[Math.round(Math.random() * rand_bits.length - 0.5)]); }