// Form Validation

// when the DOM is ready...
$(document).ready(function() {

    /*
    var container = $('div.errorContainer');
	
	// validate the form when it is submitted
    var validator = $("#form").validate({
    errorContainer: container,
    errorLabelContainer: $("ul", container), wrapper: 'li', meta: "validate"
    });
    */

    /* not used but could be
    $(".cancel").click(function() {
    validator.resetForm();
    });
    */

    var mystr = $(".contexthelp-default").html();

    $("form input,form select").focus(function(myElementID) {
        var str = $(".contexthelp-" + this.id).html();
        $(".contexthelp-default").html(str);
    });

    // The onBlur event
    $("form input,form select").blur(function(myElementID) {
        $(".contexthelp-default").html(mystr);
    });

});
