irit,
you're almost there.
js has loose data typing, so you can't declare your vars as int...though you can name them similarly (intMin, intMax) to keep them straight.
looks like you need to reverse your <= & >= to make your code block execute when the field value is outside your range: if ((frm1.num.value < min) && (frm1.num.value > max))
to reset your field, you can use this:
document.formname.fieldname.value = "";
to notify the user, an alert is probably easiest:
alert("I am alerting you!"

;
also, if you want execution of your script to halt after the alert, use "return false;"
here's what your function may look like:
function validate_input(intMin, intMax) {
if ((frm1.num.value < intMin) && (frm1.num.value > intMax)) {
// notify user
alert("Your input is outside the acceptable range."

;
// reset the field
frm1.num.value = "";
// stop execution
return false;
}
}