function carSlideShow(){
	
	ajaxObject1 = new sack();
  ajaxObject1.requestFile = 'car_slide_show.php';
  ajaxObject1.method = "POST";
  
	ajaxObject1.onCompletion = function(){

                           var Answer = ajaxObject1.response;
                           document.getElementById('pic_right').innerHTML = Answer;
                           setTimeout( "carSlideShow()", 5000 );
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject1.runAJAX();
	
}

function showBrandModels(brand_id, div_num){
	
	ajaxObject2 = new sack();
  ajaxObject2.requestFile = 'brand_models_process.php';
  ajaxObject2.setVar("brand_id", brand_id);
  ajaxObject2.setVar("div_num", div_num);
  ajaxObject2.method = "POST";
  
	ajaxObject2.onCompletion = function(){

                           var Answer = ajaxObject2.response;
                           document.getElementById('s_type_sel_'+div_num).innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject2.runAJAX();
	
}

function showSortSearchResults(search_sort, search_sort_ord){
	
	ajaxObject3 = new sack();
  ajaxObject3.requestFile = 'search_process.php';
  ajaxObject3.setVar("search_sort", search_sort);
  ajaxObject3.setVar("search_sort_ord", search_sort_ord);
  ajaxObject3.method = "POST";
  
	ajaxObject3.onCompletion = function(){

                           var Answer = ajaxObject3.response;
                           document.getElementById('s_results').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject3.runAJAX();
	
}

function showADBrandModels(brand_id, sel_type){
	
	ajaxObject4 = new sack();
  ajaxObject4.requestFile = 'brand_models_process.php';
  ajaxObject4.setVar("brand_id", brand_id);
  ajaxObject4.setVar("sel_type", sel_type);
  ajaxObject4.method = "POST";
  
	ajaxObject4.onCompletion = function(){

                           var Answer = ajaxObject4.response;
                           document.getElementById('s_type_sel').innerHTML = Answer;
                           if(sel_type=='car_profile_type'){
                           	showADBrandModelVersions('');
                           }
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject4.runAJAX();
	
}

function sortAdminCars(sort_field){
	
	ajaxObject5 = new sack();
  ajaxObject5.requestFile = 'search_car_process.php';
  ajaxObject5.setVar("sort_field", sort_field);
  ajaxObject5.method = "POST";
  
	ajaxObject5.onCompletion = function(){

                           var Answer = ajaxObject5.response;
                           document.getElementById('cars_results').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject5.runAJAX();
	
}

function showCarRequestFRM(car_id){
	
	ajaxObject6 = new sack();
  ajaxObject6.requestFile = 'car_request.php';
  ajaxObject6.setVar("car_id", car_id);
  ajaxObject6.method = "POST";
  
	ajaxObject6.onCompletion = function(){

                           var Answer = ajaxObject6.response;
                           document.getElementById('car_request_frm').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject6.runAJAX();
	
}

function CarRequestProcess(f1){
	
	var cr_car_id = f1.cr_car_id.value;
	var at_person = f1.at_person.value;
	var at_address = f1.at_address.value;
	var at_zip = f1.at_zip.value;
	var at_city = f1.at_city.value;
	var at_country = f1.at_country.value;
	var at_phone = f1.at_phone.value;
	var at_email = f1.at_email.value;
	var at_comments = f1.at_comments.value;
	
	ajaxObject7 = new sack();
  ajaxObject7.requestFile = 'car_request_process.php';
  
  ajaxObject7.setVar("cr_car_id", cr_car_id);
  ajaxObject7.setVar("at_person", at_person);
  ajaxObject7.setVar("at_address", at_address);
  ajaxObject7.setVar("at_zip", at_zip);
  ajaxObject7.setVar("at_city", at_city);
  ajaxObject7.setVar("at_country", at_country);
  ajaxObject7.setVar("at_phone", at_phone);
  ajaxObject7.setVar("at_email", at_email);
  ajaxObject7.setVar("at_comments", at_comments);
  
  ajaxObject7.method = "POST";
  
	ajaxObject7.onCompletion = function(){

                           var Answer = ajaxObject7.response;
                           
                           var ResArrs = Answer.split("#-#-#");
                           document.getElementById('msg_request').innerHTML = ResArrs[1];
                           if(ResArrs[0]=='1'){
                           	f1.reset();
                           }
                           
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject7.runAJAX();
	
}

function ContactRequestProcess(f1){
	
	var at_person = f1.at_person.value;
	var at_address = f1.at_address.value;
	var at_zip = f1.at_zip.value;
	var at_city = f1.at_city.value;
	var at_country = f1.at_country.value;
	var at_phone = f1.at_phone.value;
	var at_email = f1.at_email.value;
	var at_comments = f1.at_comments.value;
	
	ajaxObject8 = new sack();
  ajaxObject8.requestFile = 'contact_request_process.php';

  ajaxObject8.setVar("at_person", at_person);
  ajaxObject8.setVar("at_address", at_address);
  ajaxObject8.setVar("at_zip", at_zip);
  ajaxObject8.setVar("at_city", at_city);
  ajaxObject8.setVar("at_country", at_country);
  ajaxObject8.setVar("at_phone", at_phone);
  ajaxObject8.setVar("at_email", at_email);
  ajaxObject8.setVar("at_comments", at_comments);

  ajaxObject8.method = "POST";

	ajaxObject8.onCompletion = function(){

                           var Answer = ajaxObject8.response;
                           
                           var ResArrs = Answer.split("#-#-#");
                           document.getElementById('msg_request').innerHTML = ResArrs[1];
                           if(ResArrs[0]=='1'){
                           	f1.reset();
                           }
                           
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject8.runAJAX();
	
}

function showChSubscribers(sel_value){
	
	if(sel_value=='checks'){
	
	ajaxObject9 = new sack();
  ajaxObject9.requestFile = 'ch_subscribers_process.php';
  ajaxObject9.method = "POST";
  
	ajaxObject9.onCompletion = function(){

                           var Answer = ajaxObject9.response;
                           document.getElementById('ch_subscribers').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject9.runAJAX();
	
	} else {
		document.getElementById('ch_subscribers').innerHTML = '';
	}
	
}

function showSortArchiveResults(arch_sort_ord){
	
	ajaxObject10 = new sack();
  ajaxObject10.requestFile = 'archive_process.php';
  ajaxObject10.setVar("arch_sort_ord", arch_sort_ord);
  ajaxObject10.method = "POST";
  
	ajaxObject10.onCompletion = function(){

                           var Answer = ajaxObject10.response;
                           document.getElementById('arch_results').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject10.runAJAX();
	
}

function showADBrandModelVersions(car_type){
	
	brand_id = document.getElementById('car_brand_id').value;
	
	ajaxObject11 = new sack();
  ajaxObject11.requestFile = 'brand_models_process.php';
  ajaxObject11.setVar("brand_id", brand_id);
  ajaxObject11.setVar("car_type", car_type);
  ajaxObject11.setVar("sel_type", 'car_profile_versions');
  ajaxObject11.method = "POST";
  
	ajaxObject11.onCompletion = function(){

                           var Answer = ajaxObject11.response;
                           document.getElementById('s_version_sel').innerHTML = Answer;
                           
  };        // Specify function that will be executed after file has been found
	ajaxObject11.runAJAX();
	
}