function findCuisine() 
{
// Always there //
var ctlName = '&Name=' + document.getElementById("CtlSearch1_Name").value;
var ctlDist = '&Dist=' + document.getElementById("CtlSearch1_cboDistrict").options[document.getElementById("CtlSearch1_cboDistrict").selectedIndex].value; 
var ctlCity = '&City=' + document.getElementById("CtlSearch1_cboCitySuburb").options[document.getElementById("CtlSearch1_cboCitySuburb").selectedIndex].value; 
// Always there //

var ctlType = '&Type='+ defType;
var ctlServ = '&Serv='
var ctlLic = '&Lic='
var ctlCuis = '&Cuis='
var ctlPric = '&Pric='
var ctlOut = '&Out='
var ctlChild = '&Child='



if (document.getElementById("CtlSearch1_cboTypes") != null)
	{ctlType = ctlType + document.getElementById("CtlSearch1_cboTypes").options[document.getElementById("CtlSearch1_cboTypes").selectedIndex].value;}; 
 
if (document.getElementById("CtlSearch1_cboServing") != null)
	{ctlServ = ctlServ + document.getElementById("CtlSearch1_cboServing").options[document.getElementById("CtlSearch1_cboServing").selectedIndex].value;}; 

if (document.getElementById("CtlSearch1_cboLicensed") != null)
	{ctlLic = ctlLic + document.getElementById("CtlSearch1_cboLicensed").options[document.getElementById("CtlSearch1_cboLicensed").selectedIndex].value;}; 

if (document.getElementById("CtlSearch1_cboCuisine") != null)
	{ctlCuis = ctlCuis + document.getElementById("CtlSearch1_cboCuisine").options[document.getElementById("CtlSearch1_cboCuisine").selectedIndex].value;}; 

if (document.getElementById("CtlSearch1_cboPrice") != null)
	{ctlPric = ctlPric + document.getElementById("CtlSearch1_cboPrice").options[document.getElementById("CtlSearch1_cboPrice").selectedIndex].value;}; 

if (document.getElementById("CtlSearch1_chkOutdoor") != null)
	{ctlOut = ctlOut + document.getElementById("CtlSearch1_chkOutdoor").checked;}; 

if (document.getElementById("CtlSearch1_chkChildren") != null)
	{ctlChild = ctlChild + document.getElementById("CtlSearch1_chkChildren").checked;}; 

location.href = loc+ctlName+ctlType+ctlServ+ctlLic+ctlDist+ctlCity+ctlCuis+ctlPric+ctlOut+ctlChild;  
}
