
        function validateDomainname()
        {
            var domainname = document.domainreg.domainname.value
            re = new RegExp("^[a-zA-Z0-9][a-zA-Z0-9\\-]*$");

            if (domainname.length >= 3 && domainname.length <= 63 && re.test(domainname))
            {
                sendAllTlds(document.domainreg)
            }
            else
            {
                alert("Domain Name invalid. A Domain Name may only contain letters (a-z), numbers (0-9), hyphens (-) and (3-63) characters")
                return false
            }
        }

        function sendAllTlds(thisForm)
        {
            var i,sendStr = '?first=Y'
            for (i = 0; i < thisForm.tld.length; i++)
                if (thisForm.tld.options[thisForm.tld.selectedIndex].value != thisForm.tld.options[i].value)
                    sendStr += '&tld=' + thisForm.tld.options[i].value

            if (thisForm.suggestalternatives.checked)
            {
                for (i = 0; i < thisForm.tld.length; i++)
                    sendStr += '&' + thisForm.tld.options[i].value + '=Y'
            }
            else
            {
                sendStr += '&' + thisForm.tld.options[thisForm.tld.selectedIndex].value + '=Y'
            }
            thisForm.action = thisForm.action + sendStr
        }



	/*
		Clear default form value script- by JavaScriptKit.com
		Featured on JavaScript Kit (http://javascriptkit.com)
		Visit javascriptkit.com for 400+ free scripts!
	*/

	function clearText(thefield){
		if (thefield.defaultValue==thefield.value)
		thefield.value = ""
	} 