	var ajax = new sack();
	
	function getCategoryList1(sel)
	{
		var groupId = sel.options[sel.selectedIndex].value;
		document.getElementById('alertCategory').options.length = 0;			
		
		if(groupId.length>0){
			ajax.requestFile = 'getCategory1.php?groupId='+groupId;	// Specifying which file to get
			ajax.onCompletion = createCategories1;	// Specify function that will be executed after file has been found
			ajax.runAJAX();		// Execute AJAX function
		}
	}
	
	function createCategories1()
	{
		var obj = document.getElementById('alertCategory');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
	}	
	
	function getSubCategoryList1(sel)
	{
		var categoryCode = sel.options[sel.selectedIndex].value;
		document.getElementById('alertSubCat').options.length = 0;	// Empty category select box
		if(categoryCode.length>0){
			
			ajax.requestFile = 'getSubCategory1.php?catId='+categoryCode;	// Specifying which file to get
			ajax.onCompletion = createSubCategories1;	// Specify function that will be executed after file has been found
			ajax.runAJAX();		// Execute AJAX function
		}
	}
	
	function createSubCategories1()
	{
		var obj = document.getElementById('alertSubCat');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
	}	
	
	function getMakeList1(sel)
	{
		var subCategoryCode = sel.options[sel.selectedIndex].value;
		document.getElementById('alertMake').options.length = 0;	// Empty category select box
		if(subCategoryCode.length>0){
			
			ajax.requestFile = 'getMake1.php?subCatId='+subCategoryCode;	// Specifying which file to get
			ajax.onCompletion = createMakes1;	// Specify function that will be executed after file has been found
			ajax.runAJAX();		// Execute AJAX function
		}
	}
	
	function createMakes1()
	{
		var obj = document.getElementById('alertMake');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
	}	
	
	function getModelList1(sel)
	{
		var makeCode = sel.options[sel.selectedIndex].value;
		document.getElementById('alertModel').options.length = 0;	// Empty category select box
		if(makeCode.length>0){
			
			ajax.requestFile = 'getModel1.php?make='+makeCode;	// Specifying which file to get
			ajax.onCompletion = createModels1;	// Specify function that will be executed after file has been found
			ajax.runAJAX();		// Execute AJAX function
		}
	}
	
	function createModels1()
	{
		var obj = document.getElementById('alertModel');
		eval(ajax.response);	// Executing the response from Ajax as Javascript code	
	}	