how to validate credit card number
<p>I just want to validate credit card number in the javascript, I have used regular expression for digit numbers, but I don't know why is not working!!! here is my function as per below:</p>

<pre><code>function validate_creditcardnumber()
{

var re16digit=/^\d{16}$/
if (document.myform.CreditCardNumber.value.search(re16digit)==-1)
alert("Please enter your 16 digit credit card numbers");
return false;

}
</code></pre>

<p>Any help would be appreciated</p>
