function isValidDomainChars(strTest) {

	var strValidChars = "1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-";
	
	var i = 0;
	for (i = 0; i < strTest.length; i++) {
		if (strValidChars.indexOf(strTest.charAt(i)) == -1) {
			//i = strTest.length;
			return false;			
		}
	}
	return true;
}

function isLeadingHyphen(strTest) {

	if (strTest.charAt(0) == "-") {
		
		return true;			
	}
	else {
		return false;
	}
}

function isTrailingHyphen(strTest) {

	if (strTest.charAt(strTest.length - 1) == "-") {
		
		return true;			
	}
	else {
		return false;
	}
}
