<!--
function submitform() {
var valid = "abcdefghijklmnopqrstuvwxyz0123456789-ABCDEFGHIJKLMNOPQRSTUVWXYZ";
var ok = "yes";
var temp;
var maxcouk=64;
var min=3;
if (document.dform.Dname.value.length > 0) {
 for (var i=0; i<document.dform.Dname.value.length; i++) {
 temp = "" + document.dform.Dname.value.substring(i, i+1);
   if (i == 0 && document.dform.Dname.value.substring(i, i+1) == "-") {
   alert("Invalid entry - string must not start with a hyphen");
   document.dform.Dname.focus();
   document.dform.Dname.select();
   return false;
   } // end if
   if (i == document.dform.Dname.value.length-1 && document.dform.Dname.value.substring(i, i+1) == "-") {
   alert("Invalid entry - string must not end with a hyphen");
   document.dform.Dname.focus();
   document.dform.Dname.select();
   return false;
   } // end if
 if (valid.indexOf(temp) == "-1") ok = "no";
 } // end for
 if (ok == "no") {
 alert("Invalid entry - only characters and numbers and hyphen are valid");
 document.dform.Dname.focus();
 document.dform.Dname.select();
 return false;
 }  // end if
 var sf=document.dform.Suffix;
  if (sf.options[sf.selectedIndex].value==".co.uk"
  	||sf.options[sf.selectedIndex].value==".ltd.uk"
  	||sf.options[sf.selectedIndex].value==".net.uk"
  	||sf.options[sf.selectedIndex].value==".org.uk"
  	||sf.options[sf.selectedIndex].value==".plc.uk"){
  	var totaldom = eval(document.dform.Dname.value.length + sf.options[sf.selectedIndex].value.length);
    if (totaldom > maxcouk) {
    alert("Domain names of more than 64 characters are not allowed.");
    document.dform.Dname.focus();
    document.dform.Dname.select();
  return false;
  } // end if
  }
  if (document.dform.Dname.value.length < min) {
    alert("Domain names of less than 3 characters are not allowed.");
    document.dform.Dname.focus();
    document.dform.Dname.select();
  return false;
  } // end if
 } // end if
document.dform.submit();
return true;
} // end function
//-->