i need to transform this function to javascript
plz if someone can do it, i would be very happyCode:<SCRIPT language=VBscript> function tt(str) tt = trim(str) end function function IsD(str) for i = 1 to len(str) if Asc(mid(str,i,1))<48 or Asc(mid(str,i,1))>57 then checkD = false exit function end if next checkD = true end function function IsDC(str) for i = 1 to len(str) dd = Asc(mid(str,i,1)) if dd<48 or (dd>57 and dd<65) or (dd>90 and dd<97) or dd>122 then IsDC = false exit function end if next IsDC = true end function </SCRIPT>![]()
![]()
thx




Bookmarks