<!--

function loadParent(obj,arr,child_arr,child_obj) {
	var i;
	var selID=0;
	
	for (i=0; i < obj.length; i++)
	{
		obj.options[i] = null;
	}
	
	// set the obj	
	for (i=0; i < arr.length;i++) 
	{	
		var str = new String(arr[i]);
		var str_split = str.split(",");
		
		obj.options[i] = new Option(str_split[1],str_split[1],false,false);
		
		if (selParent == str_split[1])
			selID = i;
	}
	
	obj.options[selID].selected=true;
	
//	load child combo
	loadChild(obj,child_obj,child_arr);
}

function loadChild(parent_obj,obj,arr)
{
	var i=0,j=0;
	var selID=0;
	var arrIdentifier = new String(parent_obj.options[parent_obj.selectedIndex].value);

	while  (obj.options.length > 0 )
		obj.options[0] = null;
		
	if (arrIdentifier=="")
	{
	}
	else
	{			
		var counter = 0;
		
		for (i=0; i<arr.length;i++)
		{	
			var str = new String(arr[i]);
			var str_split = str.split(",");
			
			bolder = false;
			
			if (str_split[0] == arrIdentifier)
			{		
				if (str_split[1].substr(str_split[1].length-4) == ' All')
					bolder = true
					
				obj.options[counter] = new Option(str_split[1],str_split[1],false,false);
				
				if (bolder)
				{
					obj.options[counter].style.color="#333333";
					obj.options[counter].style.backgroundColor='#EAEAFF';
				}
				
				if (selChild==str_split[1])
					selID=counter;
					
				counter++;
			}
		}
		
		if (obj.options.length == 0)
				obj.options[0] = new Option("No Cities available","",false,false);
	}
	
	obj.options[selID].selected=true;
}

function loadCities(form,a,parent)
{
//	Form object
	f = document.forms[form];
	
	if (f)
	{
		f.method='post';
		f.action=a;
		parent.name='combo_country';
	}
	
	f.submit();
}
//-->