function validateBlankField(a){if(trim(a.value)==""){err=document.getElementById("error");err.style.display="block";err.innerHTML="";err.innerHTML="<center>All fields marked with a (*) are mandatory. Please enter the required data.</center><br>";a.value="";a.focus();return false;}return true;}function trim(a){while(a.substring(0,1)==" "){a=a.substring(1,a.length);}while(a.substring(a.length-1,a.length)==" "){a=a.substring(0,a.length-1);}return a;}function validateRadio(a){var b=false;if(a.length!=null){for(var c=0;c<a.length;c++){if(a[c].checked){b=true;break;}}}else{if(a.checked){b=true;}}return b;}function parse_domain_sld(a){err=document.getElementById("domain_checker_parse");if(a==""){err.style.display="block";err.innerHTML="Domain name cannot be blank. Kindly enter a domain name to search for.";return false;}if(a.substring(0,4)=="www."){err.style.display="block";err.innerHTML="Please do not include www. or http:// before the domain name";return false;}if(a.substring(0,5)=="http:"){err.style.display="block";err.innerHTML="Please do not include www. or http:// before the domain name";return false;}if(a.match(" ")){err.style.display="block";err.innerHTML="Domain name invalid. Domain name cannot contain Spaces.";return false;}if(a.match("_")){err.style.display="block";err.innerHTML="Domain name invalid. Domain name can only contain numbers and alphabets along with a Hyphen.";return false;}return true;}
