if(typeof jQuery!='undefined'){jQuery('document').ready(function($){var commentform=$('#commentform');commentform.prepend('
');var statusdiv=$('#comment-status');commentform.submit(function(){var formdata=commentform.serialize();statusdiv.html(''+orizon_script_vars.info+'
');var formurl=commentform.attr('action');$.ajax({type:'post',url:formurl,data:formdata,error:function(XMLHttpRequest,textStatus,errorThrown){var orizon_script_vars={"success":"Thanks for your comment. We appreciate your response.","error":"Please wait a while before posting your next comment!","error2":"You might have left one of the fields blank, or be posting too quickly!","info":"Processing..."};statusdiv.html(''+orizon_script_vars.error2+'
');},success:function(data,textStatus){if(textStatus=="success") statusdiv.html(''+orizon_script_vars.success+'
');else statusdiv.html(''+orizon_script_vars.error+'
');commentform.find('textarea[name=comment]').val('');}});return false;});});}