function jqAlert(message, title, width, isModal)
{
    if(typeof(title) == "undefined")
	title = "Alert";   //default title
    if(typeof(width) == "undefined")
	width = 400;   //default
    if(typeof(isModal) == "undefined")
	isModal = false;   //default
   
    $("#alert-box").dialog("option", "title", title);
    $("#alert-box").dialog("option", "width", width);
    $("#alert-box").dialog("option", "modal", isModal);
    $("#alert-message").html(message);
    $("#alert-box").dialog("open");
}

function openCaptchaInfo()
{
    var text = "<p>In order to prevent \"bots\" from spamming the comments, we need to verify that you're a human. Instead of having you send in blood and urine samples, we decided it was best to give you a simple I.Q. test. Perhaps someday elections will adopt a similar practice for voters. We can only hope.</p><p>If the question you're given is too esoteric for you, simply refresh the page and a new question will be generated.</p><p>Don't get clever with your answers -- we're just looking for simple answers here. Answers are case-insensitive. And check your spelling.</p>";
    
    //<p>Bots are typically not smart enough to solve simple problems, much like our elected officials in Washington. Therefore, adding randomly generated stupid questions helps keep the site free of spammers who have yet to lose their virginity and take out their frustrations alternately between coding scripts and boffing inflatable women.</p>

    jqAlert(text, "What's with the I.Q. Test?", 600);
}





