I know there has to be an easy solution for this one. When a text field receives an input value of 1,000 or higher - I need an alert to pop-up.

Here's my code that is not working:
function qtyFunction()
{
if(partform.qty.value>=1000){

alert("Quantities 1,000+ are by special quote.");

}
}

In the qty field I have onchange="qtyFunction(this.value);" (I also tried it without this.value in parentheses - no luck.