function sf()
	{
	document.email.login_username.focus();
	}

function emailcheck()
        {
	var string1=document.email.login_username.value;
        if(string1!='')
		{
		if (string1.indexOf("@")==-1)
        	        document.email.login_username.value+="@ghearing.com";
		else
			document.email.login_username.value=string1.substring(0,string1.indexOf("@"))+"@ghearing.com";
		}
        };
function loginsite()
	{
	var string2=window.location.href+"";
	if (string2.indexOf("?")==-1)
		top.location.href=window.location.href + "?Home&login";
	else
		top.location.href=window.location.href + "&login";
	}

