function checkName()
{
    if(get('resultsPlace').innerHTML =='')
	if(get('domain_name').value.match(/^([a-zA-Z0-9]+(\-?[a-zA-Z0-9]*)){2,63}$/)) showCheckForm(); else showHint();
}

function showCheckForm()
{
	
	get('domain_name').style.border="2px solid green";
	get('checkTable').style.display='';
	get('checkbutton').style.display='';
		get('hint').style.display='none';
}

function showHint()
{
	get('domain_name').style.border="2px solid red";
	get('checkTable').style.display='none';
	get('hint').style.display='';
	get('checkbutton').style.display='none';
}
