function loadModelsCombobox(brand) { loadRequest("/ajax/sync_actions.php?action=getBrandModelsUniqueXML&brand="+brand, generateCombobox, 'option', 'model'); } function searchBrandModels(brand, searchword) { if(searchword.length > 1) { loadRequest("/ajax/sync_actions.php?action=searchBrandModels&brand="+brand+"&model_like="+searchword+"", writeHTML, 'none', 'showMobileModels'); } } /* When a user is selecting a model, then show the send button * */ function onSelectBrandModel(brand, model) { // Set data $('model').value = ''; $('model_selected').value = model; // Set the view elements // ENABLE table rows and fields $('row_model_selected').style.visibility = 'visible'; $('row_model_selected').style.visibility = 'visible'; $('model_selected').style.visibility = 'visible'; $('request_ota_sync').style.visibility = 'visible'; $('frm_sync_reset').style.visibility = 'visible'; // DISABLE table rows and fields $('row_model_search').style.visibility = 'hidden'; // LOCK the combobox $('brand').disabled = true; } function resetSyncForm() { // Set data $('model_selected').value = ''; $('row_model_selected').style.visibility = 'hidden'; $('row_model_selected').style.visibility = 'hidden'; $('model_selected').style.visibility = 'hidden'; $('request_ota_sync').style.visibility = 'hidden'; $('frm_sync_reset').style.visibility = 'hidden'; $('row_model_search').style.visibility = 'visible'; $('brand').disabled = false; } function requestOTASync(brand, model) { } /* This is for checking the listboxes when a contact is added, the contact * must be unique according to the number. */ function checkContacts(lb1, lb2) { // Load in the values in arrays var array_1 = new Array(); var array_2 = new Array(); for(var i=0; i'; } } } if(msg != '') document.getElementById('error_message').innerHTML = msg; else document.getElementById('error_message').innerHTML = ''+msg+''; } function removeContacts(lb) { var array_string = ""; for(var i=0; i