﻿function selectScope(ctl)
{
	
	boScopes = document.getElementById("idSearchScope");
	var i = 0;
	while (i < cboScopes.options.length)
	{
		if(cboScopes.options[i].text == ctl.value)
		{
			
			cboScopes.selectedIndex = i;
			break;
		}
		i++;
	}
}



function redirectMe()
{

	var qs = "";
	var searchUrl = "";
	if (document.getElementById("radScope1").checked)
	{
		searchUrl = "/cchpsearch/pages/results.aspx?s=";
		qs = "CCHP";
	}
	else
	{
		searchUrl = "/cchpsearch/pages/providerresults.aspx?s=";
		qs = "Providers";
	}

	window.location = searchUrl + qs + "&k=" + document.getElementById("idSearchString").value;
}
