//http://www.ajaxray.com/blog/2007/11/08/jquery-controlled-dependent-or-cascading-select-list-2/ 
	function makeSublist(parent,child,isSubselectOptional)
	{
		$("body").append("<select style='display:none' id='"+parent+child+"'></select>");
		$('#'+parent+child).html($("#"+child+" option"));
		$('#'+child).html("<option> --- </option>");		
		$('#'+parent).change(
			function()
			{
				var parentValue = $('#'+parent).attr('value');
				$('#'+child).html($("#"+parent+child+" .sub_"+parentValue).clone());
				if(isSubselectOptional) $('#'+child).prepend("<option> -- Select -- </option>");
			}
		);
	}

	$(document).ready(function()
	{
		makeSublist('parent','child',false, '1');
		makeSublist('child','grandsun',false);
			
		makeSublist('parent2','child2',false, '1');
		makeSublist('child2','grandsun2',false);	
	});
	