		
function validateDomain() {
	if (document.SearchForm.domain.value.length<5) {
		//check for at least 5 chars
		alert("Please enter a complete domain name, including either a .com, .org, or .net extension.");
		document.SearchForm.domain.focus();
		return false;
	}

	if (document.SearchForm.domain.value.charAt(0)==".") {
		//check for starting with a '.'
		alert("Please enter a complete domain name, including either a .com, .org, or .net extension.");
		document.SearchForm.domain.focus();
		return false;
	}

	var str = document.SearchForm.domain.value;
	var i;
	var numPeriods;
	numPeriods = 0;

	for (i=0; i<str.length; i++) {
		//check for not more than one '.'
		if (str.charAt(i) == ".") {
			numPeriods = numPeriods + 1;
		}
	}

	if (numPeriods > 1) {
		alert("Please enter a complete domain name without any 'www.' prefix, but include either a .com, .org, or .net extension.");
		document.SearchForm.domain.focus();
		return false;
	}

	var strEnding;
	var strEnd;
	strEnd = str.length;
	strEnding = str.substring(str.lastIndexOf("."),str.length);		
	strEnding = strEnding.toLowerCase();

	//validate for .com, .net or .org 
	switch (strEnding) {
		case ".com" :
		case ".org" :
		case ".net" :
				sendDNS(str);
				break;
		default :
			alert("Please enter a complete domain name, including either a .com, .org, or .net extension.");
			return false;
	} 
	return false;
}

function sendDNS(domain) {
	var url;
	url = "/whois.aspx?domain=" + domain.toString();
	window.open(url.toString(), "_blank", "height=150,width=300");
	return true;
}

function gotoQuickLink(DropDown) {
	if (DropDown.value == '<%=strBaseUrl%>/products/hostingwizard/default.aspx' || DropDown.Value == '/products/hostingwizard/default.aspx')
		openPopUp(DropDown.value, 500,350);
	else if (DropDown.value != '')
		location.href = DropDown.value;
}			
function openPopUp(strURL, pixW, pixH) {
	var sWinProps = "resizable=yes,scrollbars=yes,toolbar=no,location=no,directories=no,status=no,menubar=no,width=" + pixW + ",height=" + pixH + ",top=10,left=10";
	window.open(strURL, "FaqWin", sWinProps);
}