function submitComment(){if($("name").value==""){alert("Please enter your name!");$("name").focus();return}if($("comment").value==""){alert("Please enter your comment!");$("comment").focus();return}if($("code").getValue()==""){alert("Please enter security code!");$("code").focus();return false}new Ajax.Updater("commentsDiv","ajax/comment.php",{parameters:{programId:$("programId").getValue(),name:$("name").getValue(),email:$("email").getValue(),comment:$("comment").getValue(),code:$("code").getValue()}})}function submitBrokenDownload(){if($("code").getValue()==""){alert("Please enter security code!");$("code").focus();return false}new Ajax.Updater("brokenDownloadDiv","ajax/brokenDownload.php",{parameters:{programId:$("programId").getValue(),code:$("code").getValue()}})}function submitContact(){if($("name").getValue()==""){alert("Please enter your name!");$("name").focus();return false}if($("message").getValue()==""){alert("Please enter your message!");$("message").focus();return false}if($("code").getValue()==""){alert("Please enter security code!");$("code").focus();return false}new Ajax.Updater("contactDiv","ajax/contact.php",{parameters:{name:$("name").getValue(),email:$("email").getValue(),subject:$("subject").getValue(),message:$("message").getValue(),code:$("code").getValue()}})}function submitPad(){if($("firstCategory").getValue()<=0){alert("Please choose category!");return false}if($("pad").getValue()==""){alert("Please enter pad url!");return false}if($("code").getValue()==""){alert("Please enter security code!");return false}new Ajax.Updater("contactDiv","ajax/pad.php",{parameters:{url:$("pad").getValue(),firstCategory:$("firstCategory").getValue(),secondCategory:$("secondCategory").getValue(),thirdCategory:$("thirdCategory").getValue(),code:$("code").getValue()},evalScripts:true})}function writeDocument(a){document.write(a)};
