function chklogin()
{
	
	if (trim(document.login.uname.value) =="" && trim(document.login.pwd.value)=="") 
	{
		alert("Please enter your username and password in the fields provided.")
		document.login.uname.focus()
		return false
	}
	if (trim(document.login.uname.value) =="") 
	{
		alert("Please enter your username.")
		document.login.uname.focus()
		return false
	}
	if (trim(document.login.pwd.value) == "")
	{
		alert("Please enter your password.")
		document.login.pwd.focus()
		return false
	}
	//return true
}


function forgotlink()
{
	document.forgotaction.uname.value = document.login.uname.value
	document.forgotaction.pwd.value = document.login.pwd.value
	document.forgotaction.submit()
	return true
}

function gobutton()
{
	if (chklogin())
	{
		document.goaction.uname.value = document.login.uname.value
		document.goaction.pwd.value = document.login.pwd.value
		document.goaction.submit()
		return true
	}
	return false
}

function chklogin2()
{
	alert("nope");
	return false;
}

function homeregisterbutton()
{
	document.homeregisteraction.submit()
	return true
}

function setcoveragecitysearch()
{
	if (document.quickprovidersearch.coveragecity.value == 0)
	{
		document.quickprovidersearch.coveragecityuse.checked = 0
	}
	else			
	{
		document.quickprovidersearch.coveragecityuse.checked = -1
		document.quickprovidersearch.coveragecountyuse.checked = 0
		document.quickprovidersearch.coveragecounty.value = 0
	}
}
function setcoveragecountysearch()
{
	if (document.quickprovidersearch.coveragecounty.value == 0)
	{
		document.quickprovidersearch.coveragecountyuse.checked = 0
	}
	else			
	{
		document.quickprovidersearch.coveragecityuse.checked = 0
		document.quickprovidersearch.coveragecity.value = 0
		document.quickprovidersearch.coveragecountyuse.checked = -1 
	}
}

function setcoveragecountyclear()
{
	if (document.quickprovidersearch.coveragecountyuse.checked)
	{	document.quickprovidersearch.coveragecountyuse.checked = 0
		document.quickprovidersearch.coveragecounty.value = 0
	}
	else
		document.quickprovidersearch.coveragecountyuse.checked = -1;
}
function setcoveragecityclear()
{
	if (document.quickprovidersearch.coveragecityuse.checked)
	{
		document.quickprovidersearch.coveragecityuse.checked = 0
		document.quickprovidersearch.coveragecity.value = 0
	}
	else
		document.quickprovidersearch.coveragecityuse.checked = -1;
}
function advancedprovidersearchlink ()
{
	document.advancedprovidersearchaction.submit()
	return true
}

function quickprovidersearchbutton ()
{
	document.quickprovidersearchaction.coveragecity.value = document.quickprovidersearch.coveragecity.value
	document.quickprovidersearchaction.coveragecounty.value = document.quickprovidersearch.coveragecounty.value
	document.quickprovidersearchaction.submit()
	return true
}

