VB Code:
  1. Response.Write("Your Cellphone Number:<input type='textbox' onblue='validateTelephone' name='oCELLPHONE'/><br>")

I Have the Following VB Script Code:
VB Code:
  1. Sub validateTelephone()
  2.   if mid(document.frmCustomerDetails.txtTelephone.value,1,1) <>"(" then
  3.      MsgBox "The Telephone Number must be in the Form: (000)000-0000",8,"Error"
  4.      
  5.         elseif mid(document.frmCustomerDetails.txtTelephone.value,9,1) <>"-" then
  6.      MsgBox "The Telephone Number must be in the Form: (000)000-0000",8,"Error"
  7. end if
  8. end sub

I Dont know where to Put This, I Tried in the Body which Gave Errors, Then I Tried in the Head in its own [script] ,[/script] and then it worked but the following error for document.frmCustomerDetails.txtTelephone.

I Know is Suppose to be request.form(oCELLPHONE) instead of document.frmCustomerDetails.txtTelephone but that doesnt Work. That is Why I Posted the Vb Code Fully.
Where is this thing Wrong? Onblur is used, then thats maybe why request is getting the error since I think request is only for Posts or Not?

Thanks