function PopupModelSection()
{
	if (document.searchSection508.Section508Categories.value == "")
	{
		alert("Please select a Category");
		document.searchSection508.Section508Categories.focus();
	}
	else if (document.searchSection508.Section508Models.value == "")
	{
		alert("Please select a Model");
		document.searchSection508.Section508Models.focus();
	}
	else
	{
		var model = document.searchSection508.Section508Models.value;
		var url = "/content/about/admin/section508/modelsectionedit.html?model=" + model;
		window.open(url)
	}
}

function ValidateForm(searchType)
{
	if (searchType == "Section508")
	{
		if (document.searchSection508.Section508Categories.value == "")
		{
			alert("Please select a Category");
			document.searchSection508.Section508Categories.focus();
		}
		else if (document.searchSection508.Section508Models.value == "")
		{
			alert("Please select a Model");
			document.searchSection508.Section508Models.focus();
		}
		else
		{
			document.searchSection508.SearchType.value = "Section508";
                                                                var curModel = document.searchSection508.Section508Models.value;
                                                                var curCategory = document.searchSection508.Section508Categories.value;
                                                                window.location="/content/about/section508/section508detail.html?model=" + curModel;
		}
	}
}

function checkStr(str_in)
{
	var str_out = str_in.replace(/[\r\n]/g, " ");
	str_out = str_out.replace(/[']/g, "''");
	str_out = str_out.replace(/["]/g, "''");

	return str_out;
}

