<!--
// 鼠标移入
function mouseover(obj){
	obj.style.backgroundColor='#FFFDF2';
	obj.style.cursor="hand";
}
// 鼠标点击
function mouseURL(obj,url){
	obj.style.cursor="hand";
	window.location=url;
}
//鼠标移出
function mouseout(obj){
	obj.style.backgroundColor='';
	obj.style.cursor="hand";
}
//鼠标点击
function showtable(Menuid,obj,picobj){
	for(i=0;i<13;i++){
		if(i==Menuid){
			if(obj[i].style.display=="none"){
				obj[i].style.display="inline";
				picobj[i].background="images/button_16.gif";
			}else{
				obj[i].style.display="none";
				picobj[i].background="images/button_19.gif";
			}
		}else{
			obj[i].style.display="none";
			picobj[i].background="images/button_19.gif";
		}
	}
	document.cookie="T="+Menuid;//写COOKIES
}

///取得ＣＯＯＫＩＥＳ值
function getCookie(name)
{	// 使用名称参数取得Cookie值, null表示Cookie不存在
  var strCookies = document.cookie;
  var cookieName = name + "=";  // Cookie名称
  var valueBegin, valueEnd, value;
  // 寻找是否有此Cookie名称
  valueBegin = strCookies.indexOf(cookieName);
  if (valueBegin == -1) return null;  // 没有此Cookie
  // 取得值的结尾位置
  valueEnd = strCookies.indexOf(";", valueBegin);
  if (valueEnd == -1)
      valueEnd = strCookies.length;  // 最後一个Cookie
  // 取得Cookie值
  value = strCookies.substring(valueBegin+cookieName.length,valueEnd);
  return value;
}//end function getCookie

// 检查Cookie是否存在
function checkCookieExist(name)
{											
  if (getCookie(name))
      return true;
  else
      return false;
}//end function checkCookieExist

//从ＣＯＯＫＩＥＳ对应设置菜单状态
function settable(){
	if(checkCookieExist("T")){
		T[getCookie("T")].style.display="inline";
		img[getCookie("T")].background="images/button_16.gif";
	}
}
//搜索验证
function CheckSearch(){
	if(document.Search.K.value==""){
		alert("请输入关键词！");
		document.Search.K.focus();
		return false;
	}
}
//设置被先表格颜色
function ModThisBgColor(obj,thisobj){
	if(thisobj.checked){
		obj.style.backgroundColor='#FFF7D0';
	}else{
		obj.style.backgroundColor='#FBFBFB';
	}
}
//-->
function TableMouseOver(Obj,strtitle){
	Obj.style.backgroundColor='#FFFFFF';
	Obj.title=strtitle;
	Obj.style.cursor="hand";
}
function TableMouseOut(Obj){
	Obj.style.backgroundColor='';
}
function feedback(){
if (document.feed.comment.value==""){
alert("请输入意见或建议的内容！");
document.feed.comment.focus();
return false;
}
if(!checkmail(document.feed.sender_email.value)){
alert("请输入您的电子邮箱地址！");
document.feed.sender_email.focus();
return false;
}
}
//邮箱验证函数
function checkmail(email)
{
if (email=="" )
return false;


	invalidChars = " /:"

	if (email == "") {
		return (false);
	}

	for (i=0; i < invalidChars.length; i++) {
		badChar = invalidChars.charAt(i)
		if (email.indexOf(badChar,0) != -1) {
			return (false);
		}
	}

	atPos = email.indexOf("@", 1)
	if (atPos == -1) {
		return (false);
	}

	//if (email.indexOf("@", atPos + 1) != -1) {
	//	return (false);
	//}

	periodPos = email.indexOf(".", atPos)
	if (periodPos == -1) {
		return (false);
	}

	if (periodPos + 3 > email.length) {
		return (false);
	}

	return (true);
}
