$(window).ready(
    function () {
        $("#json-input").linedtextarea();

        $("#json-input").bind('paste', function() {
            alert("paste");
        });

        $("#json-input").blur(function() {
            alert("blur");
        });
    });

@@ -139,21 +139,214 @@
     
-alert(%22paste%22
+// Need a timeout since paste event does not give the content%0A            // of the clipboard.%0A            setTimeout(function()%7B%0A                validate_job_data($(%22#json-input%22).val());%0A            %7D,100
 );%0A 
@@ -416,39 +416,102 @@
     
+v
 al
-ert(%22blur%22);%0A        %7D);%0A    %7D);%0A
+idate_job_data($(%22#json-input%22).val());%0A        %7D);%0A    %7D);%0A%0Avalidate_job_data = function() %7B%0A%7D

Add validation function.