function searchlist1(form, value, index)
{
	var tmp =0;

		try{
		var valuelist = eval("vlevel" + ".split('*')");
		var textlist = eval("tlevel" + ".split('*')");
		}
	    catch (ex)
		{
		document.frm.select1.options.length = 1;
		document.frm.select1.options[0].value = "0";
		document.frm.select1.options[0].text = "=空=";searchinit2();	
		return false;
		}

	document.frm.select1.options.length = valuelist.length+1;
	document.frm.select1.options[0].value = "0";
	document.frm.select1.options[0].text = "-选择-";
	//document.frm.select1.selectedIndex = 0;
	var tt = 0;
	for(var i=0; i<valuelist.length; i++)
	{
		document.frm.select1.options[i+1].value = valuelist[i];
		document.frm.select1.options[i+1].text = textlist[i];
		if ( valuelist[i] == index )
		{
			tt = 1;
			document.frm.select1.selectedIndex = i+1;
		}
	}
	if (tt == 0)
		document.frm.select1.selectedIndex = 0;

	searchinit2();
	
	return false;
}

function searchlist2(form, index)
{
	var valuecode = form.select1.options[form.select1.selectedIndex].value;

	if (valuecode == 0)
	{
		try{document.frm.select2.options.length = 1;}catch(s20){}
		try{document.frm.select2.options[0].value = "0";}catch(s225){}
		try{document.frm.select2.options[0].text = "-选择-";}catch(s226){}
		try{document.frm.select2.selectedIndex = 0;}catch(s227){}
		searchinit3();
		return false;
	}

	try{
		var valuelist = eval("vlevel" + valuecode + ".split('*')");
		var textlist = eval("tlevel" + valuecode + ".split('*')");
        }
        catch (ex)
        {
		try{document.frm.select2.options.length = 1;}catch(s24){}
		try{document.frm.select2.options[0].value = "0";}catch(s25){}
		try{document.frm.select2.options[0].text = "=空=";}catch(s26){}
		try{document.frm.select2.selectedIndex = 0;}catch(s2227){}
		searchinit3();
		return false;
        }

	try{document.frm.select2.options.length = valuelist.length;}catch(s21){}
	var tt = 0;
	for(var i=0; i<valuelist.length; i++)
	{
		try{document.frm.select2.options[i].value = valuelist[i];}catch(s22){}
		try{document.frm.select2.options[i].text = textlist[i];}catch(s23){}
		if ( valuelist[i] == 0 )
		{
			tt = 1;
			try{document.frm.select2.selectedIndex = i;} catch(s27){}
		}
	}
	if (tt == 0)
		try{document.frm.select2.selectedIndex = 0;} catch(s28){}
	
	searchinit3();
	
	return false;
}

function searchlist3(form, index)
{
        try{var valuecode = form.select2.options[form.select2.selectedIndex].value;}catch(s30){}

        if (valuecode == 0)
        {
		try{document.frm.select3.options.length = 1;}catch(s31){}
		try{document.frm.select3.options[0].value = "0";}catch(s32){}
		try{document.frm.select3.options[0].text = "-选择-";}catch(s33){}
		try{document.frm.select3.selectedIndex = 0;}catch(s327){}
		searchinit4();
		
		return false;
        }

	try{ 
		var valuelist = eval("vlevel" + valuecode + ".split('*')");
       		var textlist = eval("tlevel" + valuecode + ".split('*')");
	}

	catch (ex)
	{
		try{document.frm.select3.options.length = 1;}catch(s34){}
		try{document.frm.select3.options[0].value = "0";}catch(s35){}
		try{document.frm.select3.options[0].text = "=其它=";}catch(s36){}
		try{document.frm.select3.selectedIndex = 0;}catch(s337){}
		searchinit4();
		
		return false;
	}

	try{document.frm.select3.options.length = valuelist.length + 1;}catch (ee){}
	var tt = 0;
	for(var i=0; i<valuelist.length + 1; i++)
        {
		if (i == valuelist.length)
		{
			try{document.frm.select3.options[i].value = "0";}catch (et){}
			try{document.frm.select3.options[i].text = "=其它=";}catch (ey){}
			continue;
		}
		try{document.frm.select3.options[i].value = valuelist[i];}catch (eu){}
		try{document.frm.select3.options[i].text = textlist[i];}catch (ei){}
		if ( valuelist[i] == 0 )
		{
			tt = 1;
			try{document.frm.select3.selectedIndex = i;} catch(s37){}
        	}
        }
	if (tt == 0)
		try{document.frm.select3.selectedIndex = valuelist.length;} catch(s38){}
        searchinit4();
        
        return false;
}

function searchlist4(form, index)
{
        try{var valuecode = form.select3.options[form.select3.selectedIndex].value;}catch(s40){}

        if (valuecode == 0)
        {
		try{document.frm.select4.options.length = 1;}catch(s41){}
		try{document.frm.select4.options[0].value = "0";}catch(s42){}
		try{document.frm.select4.options[0].text = "-选择-";}catch(s43){}
		try{document.frm.select4.selectedIndex = 0;}catch(s427){}
		return false;
        }

	try{
		var valuelist = eval("vlevel" + valuecode + ".split('*')");
       	var textlist = eval("tlevel" + valuecode + ".split('*')");
	}

	catch (ex)
	{
		try{document.frm.select4.options.length = 1;}catch(s44){}
		try{document.frm.select4.options[0].value = "0";}catch(s45){}
		try{document.frm.select4.options[0].text = "=其它=";}catch(s46){}
		try{document.frm.select4.selectedIndex = 0;}catch(s4227){}
		return false;
	}

	try{document.frm.select4.options.length = valuelist.length + 1;}catch (s4ee){}
	var tt = 0;
	for(var i=0; i<valuelist.length + 1; i++)
        {
		if (i == valuelist.length)
		{
			try{document.frm.select4.options[i].value = "0";}catch (s4et){}
			try{document.frm.select4.options[i].text = "=其它=";}catch (s4ey){}
			continue;
		}
		try{document.frm.select4.options[i].value = valuelist[i];}catch (s4eu){}
		try{document.frm.select4.options[i].text = textlist[i];}catch (s4ei){}
		if ( valuelist[i] == 0 )
		{
			tt = 1;
			try{document.frm.select4.selectedIndex = valuelist.length;} catch(s47){}
        	}
        }
	if (tt == 0)
		try{document.frm.select4.selectedIndex = 0;} catch(s48){}
        return false;
}
function searchinit1(value, index)
{
	searchlist1(document.frm, value, index)
}

function searchinit2(index)
{
	searchlist2(document.frm, index)
}

function searchinit3(index)
{
        searchlist3(document.frm, index)
}
function searchinit4(index)
{
        searchlist4(document.frm, index)
}



