javascript url validation help
<p>If user enters a URL, as soon as they 
have completed the URL and hit enter the URL 
will appear below the text box and the text 
box will be emptied again. </p>

<p>It will only do this if it is a validly formed URL. For example if 
someone writes <code>blahbla.243</code>, this will not do 
anything as it is not a valid URL. </p>

<p>It will, however, accept any variations that are valid 
such as <code>http://www.url.com</code> or <code>www.url.co.uk</code> and
<code>url.com.au</code>. </p>

<p>And it will remove anything after 
the end of the country code for example if 
the person types <code>www.abc.net/dlkjfk</code> then 
only <code>www.abc.net</code> will be accepted.</p>

<p>Thank you!</p>
