<!--
	function selectObject()
	{
		var args = selectObject.arguments;
		if (args.length == 2)
		{
			//获取相关参数值
			var p_Obj = args[0];
			var p_Value = args[1];
			var p_ObjType = "";
			//判断是否是对象
			if (p_Obj != null && p_Obj != "undefined")
			{
				p_ObjType = p_Obj.type;
				if (p_ObjType != null && p_ObjType != "undefined")
				{
					p_ObjType = p_ObjType.toLowerCase();
				}
				else
				{
					p_ObjType = p_Obj[0].type.toLowerCase();
				}
				//判断对象类型
				if (p_ObjType == "radio")
				{
					selectRadio(p_Obj,p_Value);
				}
				else if (p_ObjType == "select-one")
				{
					selectOption(p_Obj,p_Value);
				}
				else if (p_ObjType == "checkbox")
				{
					if (p_Value == "[object]")
					{
						selectAllCheckBox(p_Obj,p_Value);
					}
					else
					{
						selectCheckBox(p_Obj,p_Value);
					}
				}
			}
		}
		else
		{
			alert("JS Error selectObject() args.length=*" + args.length + "*");
		}
	}

	function selectRadio(p_Obj,p_Value)
	{
		if (itemNo(p_Obj) == 1)
		{
			if (p_Obj.value == p_Value)
			{
				p_Obj.checked = true;
			}
		}
		else if (itemNo(p_Obj) > 1)
		{
			for(i = 0; i < p_Obj.length; i++)
			{
				if (p_Obj[i].value == p_Value)
				{
					p_Obj[i].checked = true;
				}
			}
		}
	}

	function selectOption(p_Obj,p_Value)
	{
		for (i = p_Obj.length-1; i >= 0; i--)
		{
			if (p_Obj.options[i].value == p_Value)
			{
				p_Obj.options[i].selected = true;
			}
		}
	}
	
	function selectCheckBox(p_Obj,p_Value)
	{
		if (p_Value != "")
		{
			p_Value = p_Value.replace(/ ,/g,",");
			p_Value = p_Value.replace(/, /g,",");
			if (p_Value.charAt(0) == ",")
			{
				do
				{ 
					p_Value = p_Value.slice(1); 
				}
				while (p_Value.charAt(0) == ",");
			}
			if (p_Value.charAt(p_Value.length - 1) == ",")
			{
				do
				{ 
					p_Value = p_Value.slice(0, p_Value.length - 1);
				}
				while (p_Value.charAt(p_Value.length - 1) == ",");
			}
		}
		if (itemNo(p_Obj) == 1)
		{
			if ((","+p_Value+",").indexOf(","+p_Obj.value+",") != -1)
			{
				p_Obj.checked = true;
			}
		}
		else if (itemNo(p_Obj) > 1)
		{
			for(i = 0; i < p_Obj.length; i++)
			{
				if ((","+p_Value+",").indexOf(","+p_Obj[i].value+",") != -1)
				{
					p_Obj[i].checked = true;
				}
			}
		}
	}

	function selectAllCheckBox(p_Obj1,p_Obj2)
	{
		if (p_Obj1.checked)
		{
			if (itemNo(p_Obj2) == 1)
			{
				p_Obj2.checked = true;
			}
			else if (itemNo(p_Obj2) > 1)
			{
				for(i = 0; i < p_Obj2.length; i++)
				{
					p_Obj2[i].checked = true;
				}
			}
		}
		else
		{
			if (itemNo(p_Obj2) == 1)
			{
				p_Obj2.checked = false;
			}
			else if (itemNo(p_Obj2) > 1)
			{
				for(i = 0; i < p_Obj2.length; i++)
				{
					p_Obj2[i].checked = false;
				}
			}
		}
	}

	function itemNo(p_Obj)
	{
		var result = 0;
		if (p_Obj != null && p_Obj != "undefined")
		{
			if (p_Obj == "[object]")
			{
				result = 1;
				if (p_Obj.length != "undefined" && p_Obj.length > 1)
				{
					result = p_Obj.length;
				}
			}
		}
		return result;
	}

	function notChecked(p_Obj)
	{
		var result = true;
		if (itemNo(p_Obj) == 1)
		{
			if (p_Obj.checked)
			{
				result = false;
			}
		}
		else if (itemNo(p_Obj) > 1)
		{
			for(i = 0; i < p_Obj.length; i++)
			{
				if (p_Obj[i].checked)
				{
					result = false;
					break;
				}
			}
		}
		return result;
	}

	function isChecked(p_Obj)
	{
		var result = true;
		if (notChecked(p_Obj))
		{
			result = false;
		}
		return result;
	}
//-->