function checkProgramSearch() {
	if (document.forms["program_gs"]) {
	

		// reset the query string
		var newQueryString = "";

		// get the query terms
		if (document.forms["program_gs"].elements["keywords"].value != "") {
			if (document.forms["program_gs"].elements["keywords"].value != "Search by Keyword") {
				newQueryString = document.forms["program_gs"].elements["keywords"].value + " ";
				if (newQueryString != "") {
					if (newQueryString != "Search by Keyword")
					{
						newQueryString += " AND ";
					}
				}
			}
		}

		// this is the program country
		if (document.forms["program_gs"].elements["DC_Coverage_Country"].value != "" && document.forms["program_gs"].elements["DC_Coverage_Country"].value != "All") {
			newQueryString += "inmeta:DC_Coverage_Country~" + document.forms["program_gs"].elements["DC_Coverage_Country"].value + " ";
			if (newQueryString != "") {
				newQueryString += " AND ";
			}
		}


        newQueryString += "inmeta:DC_type~Program Page" + " ";
		
	// set the form back
		document.forms["program_gs"].elements["q"].value = newQueryString;
	}

}
