Code for making the comment field required on checkout page in magento 1
Note : put this code in skin/frontend/default/your_theme/js/ your_theme /opc/checkout.js
var commentform = new Validation('comment-form', { onSubmit : false, stopOnFirst : false, focusOnError : false});
if (!commentform.validate()){
return false;
}