//根据Id获取当前文档中的标签对象
function getObjectById(id)
{
	return document.getElementById(id);
}
//根据Name获取当前文档中的标签对象数组
function getObjectByName(name)
{
	return document.getElementsByName(name);
}
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：打开一个新窗口
//'函数名|过程名：gWindowOpen(window_name,window_url)
//参数：
//返回值：
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function gWindowOpen(window_url,w,h)
{	
	window_para="location=0,status=0,width="+w+",height="+h+",resizable=0,menubar=0,toolsbar=0,scrollbars=1";
	//window.open(window_url,"_blank",window_para);	
	open(window_url,"",window_para);
	return false;
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：Email验证函数
//'函数名|过程名：emailIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function emailIsOK(str)
{
	var regE = /^\D\w{1,}@\w{1,}(\.\w{1,}){1,}$/;
	return regE.test(str);
}




//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：数字验证函数
//'函数名|过程名：numberIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function numberIsOK(str)
{
	var x = /^(\d{1,}\.\d{1,})|(\d{1,})$/;
	return x.test(str);
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：电话验证函数
//'函数名|过程名： telIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function telIsOK(str)
{
	//固定电话
	var regE1 = /^(\d{3}|\d{4})-(\d{7}|\d{8})$/;
	//手机
	var regE2 = /^0(\d{11})$/;
	return (regE1.test(str)|| regE2.test(str));
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：传真验证函数
//'函数名|过程名： faxIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function faxIsOK(str)
{
	//固定电话
	var regE1 = /^(\d{3}|\d{4})-(\d{7}|\d{8})(-\d{1,}){0,}$/;
	//手机
	return regE1.test(str);
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：邮编验证函数
//'函数名|过程名： postIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function postIsOK(str)
{
	var regE = /^(\d{6})$/;
	return regE.test(str);
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：日期编验证函数
//'函数名|过程名： dateIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function dateIsOK(str)
{
	var regE = /^\d{4}-\d{1,2}-\d{1,2}$/;
	return regE.test(str);
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：时间编验证函数
//'函数名|过程名： timeIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function timeIsOK(str)
{
	var regE = /^\d{2}:\d{1,2}:\d{1,2}$/;
	return regE.test(str);
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：网址验证函数
//'函数名|过程名： urlIsOK(str)
//参数：字符串str
//返回值：true|false
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function urlIsOK(str)
{
	//var regE = /^http:\/\/\w{1,}(\.\w{1,}){1,}$/;
	var regE = /^http:\/\/(\w|\W){1,}(\.(\w|\W){1,}){1,}$/;
	
	return regE.test(str);
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：页面跳转函数
//'函数名|过程名：pageGoTo(temp)
//参数：所输入的页面数值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function pageGoTo(n,pagecount)
{
	var obj = document.getElementById("pageskip");
	var temp=0;
	var url = self.location.href;
	
	if (parseInt(n)==0)
	{			
		if(event.keyCode==13)
		{			
			if(!numberIsOK(obj.value))
			{
				temp=1+"";
			}
			else
			{
				temp=obj.value+"";
			}
			//进行页面总数与当前页容错处理
			if(parseInt(temp)>parseInt(pagecount))
			{
				temp = pagecount;
			}
			self.location.href=getLocationHref("page",temp);
		}	
	}
	else
		if(parseInt(n)==1){
			if(!numberIsOK(obj.value))
			{
				temp=1+"";
			}
			else
			{
				temp=obj.value+"";
			}		
			//进行页面总数与当前页容错处理
			if(parseInt(temp)>parseInt(pagecount))
			{
				temp = pagecount;
			}
			self.location.href=getLocationHref("page",temp);
	}

}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：改变验证码
//'函数名|过程名：changeCode()
//参数：所输入的页面数值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function changeCode()
{
	var obj = document.getElementById("img1");
	obj.src="/public/getcode.asp";
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：全部选中
//'函数名|过程名：selectAll()
//参数：所输入的页面数值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function selectAll()
{	
	var obj = document.getElementsByName("checkzi");
	var obj1 = document.getElementById("checkall");
	if (obj!=null)
	{
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].disabled==false)
			{
				obj[i].checked = !obj[i].checked;
			}
		}
	}

}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：验证是否有选中的记录
//'函数名|过程名：checkSelect()
//参数：所输入的页面数值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function checkSelect(action1,type1)
{	
	var obj = document.getElementsByName("checkzi");
	var obj1 = document.getElementById("checkall");
	var form_obj=document.getElementById("form1");
	//alert(obj.length);
	var n=0;
	if (obj!=null)
	{
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].checked)
			{
				if(type1.indexOf("delall")>=0)
				{
					if(confirm("你确认要删除吗，删除后无法恢复？"))
					{
						form_obj.action=action1+type1;
						form_obj.submit();
						return true;
					}
					else
					{
						return false;
					}
				}
				else
					if(type1.indexOf("checkall")>=0)
					{
						if(confirm("你确认要审核吗？"))
						{
							form_obj.action=action1+type1;
							form_obj.submit();
							return true;
						}
						else
						{
							return false;
						}
					}
					else
						if(type1.indexOf("uncheckall")>=0)
						{
							if(confirm("你确认要对所选记录取消审核吗？"))
							{
								form_obj.action=action1+type1;
								form_obj.submit();
								return true;
							}
							else
							{
								return false;
							}							
						}
						else
							if(type1.indexOf("commendall")>=0)
							{
								if(confirm("你确认要推荐所选记录吗？"))
								{
									form_obj.action=action1+type1;
									form_obj.submit();
									return true;
								}
								else
								{
									return false;
								}	
							}
							else
								if(type1.indexOf("uncommendall")>=0)
								{
									if(confirm("你确认要取消推荐所选记录吗？"))
									{
										form_obj.action=action1+type1;
										form_obj.submit();
										return true;
									}
									else
									{
										return false;
									}	
								}
			}
		}
		alert("没有选中任何记录，无法进行操作!");
		return false;
	}
	alert("没有选中任何记录，无法进行操作!");
	return false;
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：验证是否有选中的记录要开放
//'函数名|过程名：checkShowSelect()
//参数：所输入的页面数值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function checkShowSelect()
{	
	var obj = document.getElementsByName("checkzi");
	var obj1 = document.getElementById("checkall");
	//alert(obj.length);
	var n=0;
	if (obj!=null)
	{
		for(i=0;i<obj.length;i++)
		{
			if(obj[i].checked)
			{
				if(confirm("你确认要开放选中的权限吗？"))
				{
					return true;
				}
				else
				{
					return false;
				}
			}
		}
		alert("没有选中任何记录，无法操作!");
		return false;
	}
	alert("没有选中任何记录，无法操作!");
	return false;
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：获取广告位置参数
//'函数名|过程名：getValue(temp)
//参数：传入的广告位置值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function getValue(temp1,temp2)
{
	//alert(temp2);
	var obj =  document.getElementById("ad_locid");
	var obj2 =  document.getElementById("ad_tishi");
	obj2.value=temp2;
	obj.value=temp1;
	showAdDiv();
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：显示广告层
//'函数名|过程名：showAdDiv()
//参数：传入的广告位置值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function showAdDiv()
{
	//alert(event.clientX);
	var x = 20;
	var y = 20;
	var obj = document.getElementById("addiv");
	if(obj.style.display=="block")
	{
		obj.style.position = "absolute";
		obj.style.pixelLeft = event.clientX+x;
		obj.style.pixelTop = event.clientY+y;
		obj.style.display="none";
	}
	else if(obj.style.display=="none")
	{
		obj.style.position = "absolute";
		//obj.style.backgroundColor="#ff0000";
		//obj.style.zoom = 2;
		obj.style.pixelLeft = event.clientX+x;
		obj.style.pixelTop = event.clientY+y;
		obj.style.display="block";
	}
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：产品价格一改变，优惠价格自动添加
//'函数名|过程名：price2Change(temp)
//参数：传入的广告位置值
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function price2Change(temp)
{
	var obj = document.getElementById("chanpin_price2");
	obj.value=temp;
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：设置站点VOD数量
//'函数名|过程名：vodSetNo(obj,n)
//参数：传入的点击对象
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function vodSetNo(obj,n)
{
	var obj1 = document.getElementById("vod_no"+n);
	if(!numberIsOK(obj1.value))
	{
		alert("VOD必须为数字！");
		obj1.select();
		return false;
		//obj.href=obj.href+"&vod_no="+5;
	}
	else
	{
		if(parseInt(obj1.value)>5)
		{
			alert("VOD数目不能超过5个！");
			obj1.select();
			return false;
			//obj.href=obj.href+"&vod_no="+5;
		}
		else
		{
			obj.href=obj.href+"&vod_no="+obj1.value;
		}
	}
	//alert(obj.href);
	return true;
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：保存会员组的权限标志
//'函数名|过程名：levelSave(x)
//参数：传入的点击对象
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function levelSave(x)
{
	var obj=document.getElementById("form_level");
	//alert(obj.action+"&id="+x);
	obj.action=obj.action+"&id="+x;
	obj.submit();
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：保存广告的点击数
//'函数名|过程名：AdSaveHits(p_id)
//参数：传入的点击广告对象的ID
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function AdSaveHits(p_id)
{
	//alert(p_id);
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		xmlhttp.open("GET","/public/adsavehits.asp?p_id="+p_id,false);
		xmlhttp.send(null);
		//alert(xmlhttp.responseText);
		xmlhttp=null;
	}
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：保存企业会员的手工排序
//'函数名|过程名：sortSave(n,obj)
//参数：传入排序文本框的ID及所点击对象
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function cSortSave(n,obj,sFileName)
{
	//obj为所点击的对象,n为排序文本框ID数字
	//alert(sFileName+"?action=sort&id="+n);
	var obj1 = document.getElementById("sort_"+n);
	if(!numberIsOK(obj1.value))
	{
		alert("手工排序必须为数字且数字越大越靠前（≤1000）！");
		obj1.select();
		return false;
	}
	else
		if(parseInt(obj1.value)>1000)
		{
			alert("手工排序必须为数字且数字越大越靠前（≤1000）！");
			obj1.select();
			return false;			
		}
		else
		{
			//所填符合要求
			obj.href=sFileName+"?action=sort&c_sort="+obj1.value+"&id="+n;
			return true;
		}
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：点击父类产品类别时，调出其子类
//'函数名|过程名：pGetClassChild(c_parentid)
//参数：传入的点击父类产品ID
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function pGetClassChild(obj_id,c_parentid)
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		xmlhttp.open("GET","/public/pgetclasschild.asp?obj_id="+obj_id+"&c_parentid="+c_parentid,false);
		xmlhttp.send(null);
		var obj=document.getElementById("table_class_"+obj_id);
		if(parseInt(unescape(xmlhttp.responseText))>=0)
		{			
			var i_pid=parseInt(unescape(xmlhttp.responseText));
			xmlhttp=null;
			for(i=1;i<=3;i++)
			{
				var obj=document.getElementById("span_class_"+i);
				if(obj.className=="span_class_last" && i==1)
				{
					//点击的是商业机会
					for(j=1;j<=5;j++)
					{
						//判断当前选中的是供、求、招、合及代理中的什么
						var obj1=document.getElementById("tr_class_"+j);
						if(obj1.className=="tr_class_last")
						{
							location.href="/information_list.asp?i_pid="+i_pid+"&classid="+j;
						}						
					}					
				}
				else
					if(obj.className=="span_class_last" && i==2)
					{
						//点击的是产品库						
						location.href="/product_list.asp?classid="+i_pid;
					}				
			}			
		}
		else
		{
			obj.innerHTML=unescape(xmlhttp.responseText);
			xmlhttp=null;
		}
	}	
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：点击商业机会或者产品库时调出其产品的所有类别
//'函数名|过程名：pClassShow()
//参数：无
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function pClassShow()
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		xmlhttp.open("GET","/public/pclassshow.asp",false);
		xmlhttp.send(null);
		var obj2=document.getElementById("span_class_show");
		obj2.innerHTML=unescape(xmlhttp.responseText);
		xmlhttp=null;
	}	
}



//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：点击商业机会或者产品库时调出其产品的所有类别
//'函数名|过程名：cMemberShow()
//参数：无
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function cMemberShow()
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		xmlhttp.open("GET","/public/c_membershow.asp",false);
		xmlhttp.send(null);
		var obj2=document.getElementById("span_class_show");
		obj2.innerHTML=unescape(xmlhttp.responseText);
		xmlhttp=null;
	}	
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：点击首页文章头部类别后调用类别相应文章内容！
//'函数名|过程名：aClassContentShow(classid,rows_no,cut_no)
//参数：classid为文章类别ID,rows_no为提取几条记录,cut_no为截取长度！
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function aClassContentShow(classid,rows_no,cut_no)
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		xmlhttp.open("GET","/public/aclasscontentshow.asp?rows_no="+rows_no+"&cut_no="+cut_no+"&classid="+classid,false);
		xmlhttp.send(null);
		var obj2=document.getElementById("span_class_content");
		var obj3=document.getElementById("span_class_content_more");
		//alert(obj2);
		obj2.innerHTML=unescape(xmlhttp.responseText);		
		obj3.innerHTML="<a href='/article_list.asp?classid="+classid+"'>更多…</a>";
		xmlhttp=null;
	}	
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：分类信息详细或者产品信息详细页面，点击详细信息和发表评论时的变化
//'函数名|过程名：changeSpanInformation(n)
//参数：n代表点击哪个
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function changeSpanInformation(n)
{
	//alert(n);
	for(i=1;i<=3;i++)
	{
		var obj=document.getElementById("span_information_"+i);
		obj.style.backgroundColor="#ffffff";
		obj.style.fontWeight="normal";
	}
	var obj1=document.getElementById("span_information_"+n);
	obj1.style.backgroundColor="#aaaaaa";
	obj1.style.fontWeight="bold";
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：更改站点VOD数量
//'函数名|过程名：vodShow(n)
//参数：VOD数量
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※

function vodShow(n)
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		//alert(n);
		xmlhttp.open("GET","/public/vodshow.asp?id="+n,false);
		xmlhttp.send(null);
		var obj=document.getElementById("div_vod");
		obj.innerHTML=unescape(xmlhttp.responseText);	
		xmlhttp=null;
	}	
}

//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：级联地区选项
//'函数名|过程名：showCity(n)
//参数：选择哪个父地区的城市
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function showCity(n)
{
	var xmlhttp=null;
	if(window.XMLHttpRequest)
	{
		xmlhttp = new XMLHttpRequest();
	}
	else
		if(window.ActiveXObject)
		{
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
	if(xmlhttp!=null)
	{
		//xmlhttp对象已经建立
		xmlhttp.open("GET","/public/showCity.asp?rootid="+n,false);
		xmlhttp.send(null);
		var obj=document.getElementById("c_city");
		obj.innerHTML="";
		var xx = unescape(xmlhttp.responseText);
		//得到单个option,包括值与显示内容,格式为“值,内容”
		var option_array=xx.split("$");
		var nn=0
		for(i=0;i<option_array.length;i++)
		{
			nn = nn+1;
			//得到单个option
			var option_value = option_array[i].split(",")[0];
			var option_show = option_array[i].split(",")[1];
			var option = document.createElement("OPTION");
			option.text = option_show;
			option.value = option_value;
			obj.add(option);
		}
		xmlhttp=null;
	}
}

<!--
//***********默认设置定义显示渐显渐隐的文本框.*********************
tPopWait=50;		//停留tWait豪秒后显示提示。
tPopShow=2000;		//显示tShow豪秒后关闭提示
showPopStep=20;
popOpacity=90;   //初时透明度
fontcolor="#cc0000";
bgcolor="#E9EDF3";
bordercolor="orange";

//***************内部变量定义*****************
sPop=null;curShow=null;tFadeOut=null;tFadeIn=null;tFadeWaiting=null;

//document.write("<style type='text/css'id='defaultPopStyle'>");
//document.write(".cPopText {background-color: " + bgcolor + ";color:" + fontcolor + "; border: 1px " + bordercolor + " solid; font-size: 9pt;letter-spacing : 1pt;padding-right: 4px; padding-left: 4px; height: 20px; padding-top: 2px; padding-bottom: 2px; filter: Alpha(Opacity=0)}");
//document.write("</style>");
//document.write("<span id='dypopLayer' style='position:absolute;z-index:1000;' class='cPopText'></span>");


function showPopupText()
{
	var o=event.srcElement;
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!="")
	{
		o.dypop=o.alt;
		o.alt="";
	}
	if(o.title!=null && o.title!="")
	{
		o.dypop=o.title;
		o.title="";
	}
	if(o.dypop!=sPop) 
	{
		sPop=o.dypop;
		clearTimeout(curShow);
		clearTimeout(tFadeOut);
		clearTimeout(tFadeIn);
		clearTimeout(tFadeWaiting);	
		if(sPop==null || sPop=="")
		{
			dypopLayer.innerHTML="";
			dypopLayer.style.filter="Alpha()";
			dypopLayer.filters.Alpha.opacity=0;	
		}
		else
		{
			if(o.dyclass!=null)
				popStyle=o.dyclass 
			else
				popStyle="cPopText";
			curShow=setTimeout("showIt()",tPopWait);
		}
	}
}

function showIt(){
		dypopLayer.className=popStyle;
		dypopLayer.innerHTML=sPop;
		popWidth=dypopLayer.clientWidth;
		popHeight=dypopLayer.clientHeight;
		if(MouseX+0+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
			else popLeftAdjust=0;
		if(MouseY+0+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
			else popTopAdjust=0;
		dypopLayer.style.left=MouseX+12+document.body.scrollLeft+popLeftAdjust;
		dypopLayer.style.top=MouseY+0+document.body.scrollTop+popTopAdjust;
		dypopLayer.style.filter="Alpha(Opacity=0)";
		fadeOut();
}

function fadeOut(){
	if(dypopLayer.filters.Alpha.opacity<popOpacity) {
		dypopLayer.filters.Alpha.opacity+=showPopStep;
		tFadeOut=setTimeout("fadeOut()",1);
		}
		else {
			dypopLayer.filters.Alpha.opacity=popOpacity;
			tFadeWaiting=setTimeout("fadeIn()",tPopShow);
			}
}

function fadeIn(){
	if(dypopLayer.filters.Alpha.opacity>0) {
		dypopLayer.filters.Alpha.opacity-=1;
		tFadeIn=setTimeout("fadeIn()",1);
		}
}
//document.onmouseover=showPopupText;
//
var currentpos,timer;
function initialize(){
	timer=setInterval("scrollwindow()",60);
	}
function noscroll(){
	clearInterval(timer);
	}
function scrollwindow(){
	currentpos=document.body.scrollTop;
	window.scroll(0,++currentpos);
	if (currentpos != document.body.scrollTop) noscroll();
	}
//document.onmousedown=noscroll
//document.ondblclick=initialize




//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：JS保留地址栏所有参数并增加新的参数
//'函数名|过程名：getLocationHref(str1,value1)
//参数：str1:参数名称，value1：参数值
//返回值：新的地址
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function getLocationHref(str1,value1)
{
	var strResult = "";
	var url=self.location.href;
	var paras = self.location.search;
	var startPos=0;
	var endPos=0;
	
	if(str1=="" || value1=="")
	{
		//获取原路径
		strResult = url;
	}
	else
	{
		str1 = str1.toLowerCase();
		
		if(paras=="")
		{
			//地址栏中无任何参数
			strResult = url+"?"+str1+"="+value1;
		}
		else
		{
			//有参数才进行判断
			if(paras.indexOf(str1)>=0)
			{
				//地址栏中已经有此参数			
				//判断str1是否为最后一个参数
				startPos = paras.indexOf(str1);
				if(parseInt(paras.indexOf("&",startPos+str1.length))<0)
				{
					//str1最后一个参数
					strResult = paras.substr(0,startPos)+str1+"="+value1;
				}
				else
				{
					//str1非最后一个参数
					endPos = paras.indexOf("&",startPos+str1.length);
					//strResult = paras.substr(0,startPos)+str1+"="+value1+paras.substr(endPos);
					strResult = paras.substr(0,startPos)+str1+"="+value1+paras.substr(endPos);
					
				}
			}
			else
			{
				//地址栏中无此参数
				strResult = paras+"&"+str1+"="+value1;
			}
		}

	}
	return strResult;
}


//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
//说明：根据点击的分类不同，连接到产品页面或者商机页面
//'函数名|过程名：goToUrl(classid)
//参数：classid，分类ID
//返回值：无
//作者：李善举
//QQ：36525595
//E-mail：lishanju@sina.com
//※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※※
function gotoUrl(classid,linkName)
{
	//alert(top.location.href+classid);
	//return;
	/*var information_type=parent.document.getElementById("information_type").value;
	if (parseInt(information_type)!=0)
	{
		top.location.href="/information_list.asp?iType="+classid+"&type="+information_type;
	}
	else
	{*/
		var url = linkName+"?classid="+classid;
		window.open(url,"","");
		//top.location=url;
	//}
}