If you had searched before asking like it says on the main page this question could have been avoided, you learn from mistakes, anyway, enjoy:
quote:Originally posted by FrutZle
Open your inc_code.js and find the function validate() Add the line in red in the following code at exactly the same place:
function validate(){
if (document.PostTopic.Subject) {
if (trim(document.PostTopic.Subject.value)=="") {
alert("You must enter a Subject")
return false
}
}
if (document.PostTopic.Message) {
if (trim(document.PostTopic.Message.value)=="") {
alert("You must enter a Message")
return false
}
}
document.PostTopic.Submit.disabled = true
return true
}