YAHOO.namespace('cw.accuracyformcheck');
YAHOO.cw.accuracyformcheck.init = function(e)
{
    YAHOO.util.Event.stopEvent(e);
    var pass = true;
    if(this.uri.value.length == 0)
    {
        alert("Please enter a Web Page Address.");
        this.uri.focus();
        pass = false;
    }
    else if(this.email.value.length == 0)
    {
        alert("Please enter your E-mail Address.");
        this.email.focus();
        pass = false;
    }
    else if(this.category.value.length == 0)
    {
        alert("Please select the category you were blocked for.");
        this.category.focus();
        pass = false;
    }
    else if(this.shouldbe.value.length == 0)
    {
        alert("Please input what you think the page you were blocked for should be categorized as.");
        this.shouldbe.focus();
        pass = false;
    }
    else if(pass)
    {
        this.submit();
    }
}

YAHOO.util.Event.on('accuracycheck', 'submit', YAHOO.cw.accuracyformcheck.init);   