	function ChangeCategory(category) {
		document.getElementById("select_model").innerHTML = "";
		document.getElementById("search_by_model_button").style.display = "none";

		if (category.value == 1) {
			document.getElementById("make_contracts").style.display = "block";
			document.getElementById("make_simfree").style.display = "none";
			document.getElementById("make_accessories").style.display = "none";
			document.getElementById("make_pdas").style.display = "none";

			if (document.search_by_model.make.options[document.search_by_model.make.selectedIndex].value != '') {
				LoadModels(document.search_by_model.make.options[document.search_by_model.make.selectedIndex]);
			}
		} else if (category.value == 2) {
			document.getElementById("make_contracts").style.display = "none";
			document.getElementById("make_simfree").style.display = "block";
			document.getElementById("make_accessories").style.display = "none";
			document.getElementById("make_pdas").style.display = "none";

			if (document.search_by_model.manufacturers_id.options[document.search_by_model.manufacturers_id.selectedIndex].value != '0') {
				LoadModelsManufacturers(document.search_by_model.manufacturers_id.options[document.search_by_model.manufacturers_id.selectedIndex].value);
			}
		} else if (category.value == 4) {
			document.getElementById("make_contracts").style.display = "none";
			document.getElementById("make_simfree").style.display = "none";
			document.getElementById("make_accessories").style.display = "none";
			document.getElementById("make_pdas").style.display = "block";

			if (document.search_by_model.manufacturers_pdas_id.options[document.search_by_model.manufacturers_pdas_id.selectedIndex].value != '0') {
				LoadModelsManufacturersPDA(document.search_by_model.manufacturers_pdas_id.options[document.search_by_model.manufacturers_pdas_id.selectedIndex].value);
			}
		}else {
			document.getElementById("make_contracts").style.display = "none";
			document.getElementById("make_simfree").style.display = "none";
			document.getElementById("make_accessories").style.display = "block";
			document.getElementById("make_pdas").style.display = "none";

			if (document.search_by_model.manufacturers_id.options[document.search_by_model.manufacturers_id.selectedIndex].value != '0') {
				LoadModelsAccessories(document.search_by_model.manufacturers_id.options[document.search_by_model.manufacturers_id.selectedIndex].value);
			}
		}
	}

	function LoadModels(make) {
		if (make.value != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make.value
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function LoadModelsManufacturers(make) {
		if (make.value != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make.value,
					manufacturers_id: make.value
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function LoadModelsManufacturersPDA(make) {
		if (make.value != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make.value,
					manufacturers_id: make.value
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}


	function LoadModelsAccessories(make) {
		if (make.value != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make.value,
					manufacturers_id1: make.value
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function LoadModelsGetParameter(make) {
		if (make != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make,
					model_value: "<?=$_GET['model']?>",
					model: "<?=$_GET['model']?>"
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function LoadModelsManufacturersGetParameter(make) {
		if (make != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make,
					manufacturers_id: make,
					model: "<?=$_GET['model']?>"
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function LoadModelsManufacturersPDAGetParameter(make) {
		if (make != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make,
					manufacturers_id: make,
					model: "<?=$_GET['model']?>"
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}


	function LoadModelsAccessoriesGetParameter(make) {
		if (make != '') {
			jQuery.post(
  				'get_models.php',
  				{
    					type: "request",
    					make_value: make,
					manufacturers_id1: make,
					model: "<?=$_GET['model']?>"
  				},
  				onModelsLoadSuccess
			);
		} else {
			document.getElementById("select_model").innerHTML = "";
			document.getElementById("search_by_model_button").style.display = "none";
		}

	}

	function onModelsLoadSuccess(data)
	{
		document.getElementById("select_model").innerHTML = "<br />" + data;
		document.getElementById("search_by_model_button").style.display = "block";
	}

var cot_loc0=(window.location.protocol == "https:")? "https://secure.comodo.net/trustlogo/javascript/cot.js" :
"http://www.trustlogo.com/trustlogo/javascript/cot.js";
document.writeln('<script language="JavaScript" src="'+cot_loc0+'" type="text\/javascript"><\/script>');
