function fillCategory(){ // this function is used to fill the category list on load
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 21

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 22
} // end of JS function function SelectSubCat(){ // ON or after selection of category this function will work removeAllOptions(document.select_location.city); addOption(document.select_location.city, "", "Select City", ""); removeAllOptions(document.select_location.address); addOption(document.select_location.address, "", "Select Address", ""); // Collect all element of subcategory for various cat_id
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 42

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 44
} ////////////////// function SelectSubCat2(){ // ON or after selection of category this function will work removeAllOptions(document.select_location.address); addOption(document.select_location.address, "", "Select Address", ""); // Collect all element of subcategory for various cat_id if(document.select_location.city.value == 'Deerfield'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Huntington Beach'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Irvine'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Ladera Ranch'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Newport Beach'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Santa Ana'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Sugar Land'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
}if(document.select_location.city.value == 'Tustin'){
Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid input syntax for integer: "" in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 76

Warning: pg_fetch_array() expects parameter 1 to be resource, boolean given in /home/ocwebs/project/htdocs/javascript/js_locations.php on line 77
} } ////////////////// function removeAllOptions(selectbox) { var i; for(i=selectbox.options.length-1;i>=0;i--) { //selectbox.options.remove(i); selectbox.remove(i); } } function addOption(selectbox, value, text ) { var optn = document.createElement("OPTION"); optn.text = text; optn.value = value; selectbox.options.add(optn); }