I'm not sure it's perfect yet, but at least adding 0-9 and _ helps a bit ;) :
# diff -ibwu check.js.orig check.js --- check.js.orig 2006-09-04 11:19:33.000000000 +0200 +++ check.js 2006-09-04 11:02:19.000000000 +0200 @@ -17,6 +17,6 @@ // check url syntax function checkSyntax (url) { - var syntax = /^https?:\/\/[-a-zA-Z.\/=%?~]+$/; + var syntax = /^https?:\/\/[-a-zA-Z0-9.\/=%?~_]+$/; return syntax.test(url); } Best regards, -- Olivier BERGER <[EMAIL PROTECTED]> Ingénieur Recherche - Dept INF INT Evry (http://www.int-evry.fr) OpenPGP-Id: 1024D/6B829EEC