configure('javascript URI', '../');function CountryChanged($country){ global $conn; $blank='"; $endhtml=''; $provinces=''; $provinces.=''; while ($regtown = mysql_fetch_array($result)){ $provinces .= ''; } $objResponse = new xajaxResponse(); $html=$tophtml.$provinces.$endhtml; $objResponse->assign('select_province_div', 'innerHTML', $html); $html=$blank.$endhtml; $objResponse->assign('select_town_div', 'innerHTML', $html); $objResponse->assign('select_suburb_div', 'innerHTML', $html); $objResponse->assign('select_region_div', 'innerHTML', $html); $objResponse->assign('select_localregion_div', 'innerHTML', $html); return $objResponse;}function ProvinceChanged($province){ global $conn; $blank='"; $endhtml=''; $towns=''; $towns.=''; while ($regtown = mysql_fetch_array($result)){ $towns .= ''; } $query="SELECT distinct region FROM destinations WHERE province = '$province' and region > ' ' order by region"; $result = mysql_query($query,$conn) or die(mysql_error()); $tophtml2=''; $regions=''; $regions.=''; while ($regtown = mysql_fetch_array($result)){ $regions .= ''; } $objResponse = new xajaxResponse(); $html=$tophtml.$towns.$endhtml; $objResponse->assign('select_town_div', 'innerHTML', $html); $html=$tophtml2.$regions.$endhtml2; $objResponse->assign('select_region_div', 'innerHTML', $html); $html=$blank.$endhtml; $objResponse->assign('select_suburb_div', 'innerHTML', $html); $objResponse->assign('select_localregion_div', 'innerHTML', $html); return $objResponse;}function TownChanged($town){ global $conn; $blank=''; $endhtml=''; $suburbs=''; $suburbs.=''; while ($regtown = mysql_fetch_array($result)){ $suburbs .= ''; $query="SELECT distinct subregion FROM destinations WHERE region = '$region' and subregion > ' ' order by subregion"; $result = mysql_query($query,$conn) or die(mysql_error()); $tophtml=''; $localregions=''; $localregions.=''; while ($regtown = mysql_fetch_array($result)){ $localregions .= ''; } $query="SELECT distinct subregion2 FROM destinations WHERE region = '$region' and subregion2 > ' ' order by subregion2"; $result = mysql_query($query,$conn) or die(mysql_error()); while ($regtown = mysql_fetch_array($result)){ $localregions .= ''; } $objResponse = new xajaxResponse(); $html=$tophtml.$localregions.$endhtml; $objResponse->assign('select_localregion_div', 'innerHTML', $html); return $objResponse;}function CategoryChanged($category){ global $conn; $blank=''; $endhtml=''; $activitytypes=''; $activitytypes.=''; while ($regtown = mysql_fetch_array($result)){ $activitytypes .= '