// JavaScript Document
<!--
var pxmlObj = false;
//Creating new AJAX object
if(window.XMLHttpRequest){
	pxmlObj = new XMLHttpRequest();	
} else if(window.ActiveXObject) {
	pxmlObj = new ActiveXObject("Microsoft.XMLHTTP");	
}

function get_model(divTag, ptr_man, step) {
	//Display the spinning recycle sign
	//This is jquery syntax.
	$('#list1Loading').css({ display: "inline" });
	var obj = document.getElementById(divTag);
	var manufacturer = document.getElementById(ptr_man);
	
	
	//alert(ptr_man);
	var man_id = manufacturer.options[manufacturer.selectedIndex].value;
	
	if(man_id == -2){
		obj = document.getElementById("manufacturer_drop_down");	
		document.getElementById('model_list').innerHTML = '';
		document.getElementById('model_drop_down').innerHTML = '';
	}
	
	if(pxmlObj){
		//document.write("/admin/show_nav_news.php?show_in_nav="+value+"&cid="+cid);
		pxmlObj.open("GET", "/ww_admin/get_drop_down_info.php?step="+step+"&id="+man_id, true);
		pxmlObj.onreadystatechange = function(){
			if(pxmlObj.readyState == 4 && pxmlObj.status == 200){
				obj.innerHTML = pxmlObj.responseText;	
				document.getElementById('model_list').innerHTML = '';
				$('#list1Loading').hide();
			}
		}
		
		pxmlObj.send(null);
	} 
}



function get_product(divTag, ptr_man, step) {
	$('#list2Loading').css({ display: "inline" });
	var obj = document.getElementById(divTag);
	var printer = document.getElementById(ptr_man);
	
	var print_id = printer.options[printer.selectedIndex].value;
	
	if(pxmlObj){
		//document.write("/admin/show_nav_news.php?show_in_nav="+value+"&cid="+cid);
		pxmlObj.open("GET", "/ww_admin/get_drop_down_info.php?step="+step+"&id="+print_id, true);
		pxmlObj.onreadystatechange = function(){
			if(pxmlObj.readyState == 4 && pxmlObj.status == 200){
				obj.innerHTML = pxmlObj.responseText;	
				$('#list2Loading').hide();
			}
		}
		pxmlObj.send(null);
	} 
}

function get_manufacturer_type(divTag, ptr_man, step) {
	$('#list2Loading').css({ display: "inline" });
	var obj = document.getElementById(divTag);
	var printer = document.getElementById(ptr_man);
	var manufacturer_type = document.getElementById('list1');
	
	var print_id = printer.options[printer.selectedIndex].value;
	var manu_id = manufacturer_type.options[manufacturer_type.selectedIndex].value;
	
	if(pxmlObj){
		//document.write("/ww_admin/get_drop_down_info.php?step="+step+"&id="+print_id+"&manu_id="+manu_id);
		pxmlObj.open("GET", "/ww_admin/get_drop_down_info.php?step="+step+"&id="+print_id+"&menu_id="+manu_id, true);
		pxmlObj.onreadystatechange = function(){
			if(pxmlObj.readyState == 4 && pxmlObj.status == 200){
				obj.innerHTML = pxmlObj.responseText;	
				$('#list2Loading').hide();
			}
		}
		pxmlObj.send(null);
	} 
}


function get_ink(divTag, ptr_man, step){
	$('#list3Loading').css({ display: "inline" });
	var obj = document.getElementById(divTag);
	var printer = document.getElementById(ptr_man);
	
	var print_id = printer.options[printer.selectedIndex].value;
	
	if(pxmlObj){
		//document.write("/ww_admin/get_drop_down_info.php?step="+step+"&id="+print_id+"&manu_id="+manu_id);
		pxmlObj.open("GET", "/ww_admin/get_drop_down_info.php?step="+step+"&id="+print_id, true);
		pxmlObj.onreadystatechange = function(){
			if(pxmlObj.readyState == 4 && pxmlObj.status == 200){
				obj.innerHTML = pxmlObj.responseText;	
				$('#list3Loading').hide();
			}
		}
		pxmlObj.send(null);
	} 
}

-->