
<!--


  function TROut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  //src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
  function TROvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  //src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function HROut(src) {
		if (!src.contains(event.toElement)) {
			src.style.cursor = 'default';
		}
  }
  function HROvr(src) {
			if (!src.contains(event.fromElement)) {
			src.style.cursor = 'hand';
		}
  }
  function selectlink(){
    Sel=document.menu.link.selectedIndex;
    Ad=document.menu.link.options[Sel].value;
    if (Ad!=""){parent.location.href=Ad};
  }
  function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
	}
  }
  function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
	}
  }
  function mOvrbtn(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.style.backgroundColor = clrOver;
	}
  }
  function mOutbtn(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.style.backgroundColor = clrIn;
	}
  }
  function mClk(src) {
    if(event.srcElement.tagName=='TD'){
	  src.children.tags('A')[0].click();
    }
  }
 
  function OpenCl(sid){
	whichEl = eval("" + sid);
	//imgmenu = eval("img" + sid);
	if (whichEl.style.display == "none"){
	eval(sid + ".style.display=\"\";");
	//imgmenu.background="images/menu/menuup.gif";
	}
	else
	{
	eval(sid + ".style.display=\"none\";");
	//imgmenu.background="images/menu/menudown.gif";
	}
  }



  function CheckAll(idName,Cell,Count,Checkit){
		for(i=0;i<=Count;i++){      
				if(Checkit>=0){
				eval(idName + Cell + "_" + i + ".style.display=\"\";")
					}else{
					eval(idName + Cell + "_" + i + ".style.display=\"none\";")
				}	  
		}
  }

  function cookRadio(sid,Num){
		//whichEl = eval("document.all." + sid + Num);
		setcookie(sid,Num);
  }
  
  function getcookRadio(sid){	  
		whichEl = eval("document.all." + sid + getcookie(sid));
		whichEl.checked = true;
  }  
  
  function cookCheck(sid){
		whichEl = eval("document.all." + sid);
		if (whichEl.checked == true){
			setcookie(sid,1);
		}else{
			setcookie(sid,-1);
		}
  }
  
  
  function getcookCheck(sid){
		whichEl = eval("document.all." + sid);
		if (getcookie(sid)>=0){
			whichEl.checked = true;
		}else{		
			whichEl.checked = false;
		}
  }  
  
  function cookCheckCl(sid,idName,Cell,Count){
		whichEl = eval("document.all." + sid + Cell);
		if (whichEl.checked == true){
			CheckAll(idName,Cell,Count,'1');
			setcookie(idName + Cell,1);
		}else{
			CheckAll(idName,Cell,Count,'-1');
			setcookie(idName + Cell,-1);
		}
  }
  
  function getcookCheckCl(sid,idName,Cell,Count){
		whichEl = eval("document.all." + sid + Cell);
		if (getcookie(idName + Cell)>=0){
			whichEl.checked = true;
			CheckAll(idName,Cell,Count,'1');
		}else{		
			whichEl.checked = false;
			CheckAll(idName,Cell,Count,'-1');
		}
  }

  function cookOpenCl(sid){
		whichEl = eval("" + sid);
		if (whichEl.style.display == "none"){
		eval(sid + ".style.display=\"\";");	
		setcookie(sid,0);
		}else{		
		eval(sid + ".style.display=\"none\";");
		setcookie(sid,1);
		}
  }
  
  function getcookOpenCl(sid){
		whichEl = eval("" + sid);
		if (getcookie(sid)>0){
			eval(sid + ".style.display=\"none\";");
		}else{		
			eval(sid + ".style.display=\"\";")
		}
  }
  
  function OpenCl_img(sid,img,imgPath1,imgPath2){
	whichEl = eval("" + sid);
	imgmenu = eval("" + img);
	if (whichEl.style.display == "none"){
	eval(sid + ".style.display=\"\";");
	imgmenu.src=imgPath2;
	}
	else
	{
	eval(sid + ".style.display=\"none\";");
	imgmenu.src=imgPath1;
	}
  }
  
  function bt(id,after) { 
	  eval(id+'.filters.blendTrans.stop();'); 
	  eval(id+'.filters.blendTrans.Apply();'); 
	  eval(id+'.src="'+after+'";'); 
	  eval(id+'.filters.blendTrans.Play();'); 
  } 

  function closeThis(){
	  window.close();
  }
  
  
// Example:
// alert( readCookie("myCookie") );
function readCookie(name){
  var cookieValue = "";
  var search = name + "=";
  if(document.cookie.length > 0)
  { 
    offset = document.cookie.indexOf(search);
    if (offset != -1)
    { 
      offset += search.length;
      end = document.cookie.indexOf(";", offset);
      if (end == -1) end = document.cookie.length;
      cookieValue = unescape(document.cookie.substring(offset, end))
    }
  }
  return cookieValue;
}

// Example:
// writeCookie("myCookie", "my name", 24);
// Stores the string "my name" in the cookie "myCookie" which expires after 24 hours.
function writeCookie(name, value, hours){
  var expire = "";
  if(hours != null){
    expire = new Date((new Date()).getTime() + hours * 3600000);
    expire = "; expires=" + expire.toGMTString();
  }
  document.cookie = name + "=" + escape(value) + expire;
}


  
  //设置cookie
  function setcookie(name,value){
    var d1=new Date();
    d1.setTime(d1.getTime() + 365*(24*60*60*1000));	     		 //到期时间为1年
    var expiredate=d1.toGMTString(); 						
    document.cookie = name + "=" + value + "; expires="+expiredate;  //建立cookie
    count=value;
  }
  //获得cookie的值
  function getcookie(name){
    var c = document.cookie.split("; ");
    for (var i=0; i < c.length; i++){
	  var b = c[i].split("=");
	  if(name == b[0]) return unescape(b[1]);
    }
    return 0;
  } 
  //放大缩小图片
  function whellResize_img(e, o){
    var zoom = parseInt(o.style.zoom, 10) || 100;
    zoom += event.wheelDelta / 12;
    if (zoom > 0) o.style.zoom = zoom + '%';
    return false;
  }
	
	//读Cookies集合
	function getCookieGroup(Num){
		var SaveDataLength = 1000
		var Xcookies="";
		var Xcookies = getcookie("Setting"); 
		if( Num>=1 && Num<=SaveDataLength ){
			//alert(Xcookies.length)
			if (Xcookies.length==SaveDataLength){ 
				//alert(Xcookies.slice(Num-1,Num))
				return Xcookies.slice(Num-1,Num)
			}else{
				return "0"
			}	
		}else{
			return Xcookies
		}
	}

  //写Cookies集合
	function setCookieGroup(Num,Data){
		var SaveDataLength = 1000 
		Data=Data.slice(0,1)
		if(Data==""){Data="0"}
		var Xcookies=""
		Xcookies = getcookie("Setting");
		if (Xcookies.length==SaveDataLength){ 
			Xcookies=Xcookies.slice(0,Num-1) + Data + Xcookies.slice(Num,Xcookies.length)
		}else{
			Xcookies=""
			for(i=1;i<=SaveDataLength;i++){
				Xcookies+="0";
			}
		}	
		//alert(Xcookies)
		setcookie('Setting',Xcookies);
	}
	
	  
  function setCookGrOpenCl(Num,sid){
		whichEl = eval("" + sid);
		if (whichEl.style.display == "none"){
			eval(sid + ".style.display=\"\";");	
			setCookieGroup(Num,'0');
		}else{		
			eval(sid + ".style.display=\"none\";");
			setCookieGroup(Num,'1');
		}
  }
  
  function getCookGrOpenCl(Num,sid){
		whichEl = eval("" + sid);
		if (getCookieGroup(Num)>0){
			eval(sid + ".style.display=\"none\";");
		}else{		
			eval(sid + ".style.display=\"\";")
		}
  }
	
	function setCookGrCheckCl(Num,sid,idName,Cell,Count){
		whichElchkCL = eval("document.all." + sid + Cell);
		if (whichElchkCL.checked == true){
			GrCheckAll(idName,Cell,Count,'0');
			setCookieGroup(Num,'0');
		}else{
			GrCheckAll(idName,Cell,Count,'1');
			setCookieGroup(Num,'1');
		}
  }
  
  function getCookGrCheckCl(Num,sid,idName,Cell,Count){
		whichElchkCL = eval("document.all." + sid + Cell);
		if (getCookieGroup(Num)==0){
			whichElchkCL.checked = true;
			GrCheckAll(idName,Cell,Count,'0');
		}else{		
			whichElchkCL.checked = false;
			GrCheckAll(idName,Cell,Count,'1');
		}
  }
	
	function GrCheckAll(idName,Cell,Count,Checkit){
		for(i=0;i<=Count;i++){      
			if(Checkit==0){
				eval(idName + Cell + "_" + i + ".style.display=\"\";")
			}else{
				eval(idName + Cell + "_" + i + ".style.display=\"none\";")
			}	  
		}
  }
	
	function setCookGrCheck(Num,sid){
		whichElchk = eval("document.all." + sid);
		if (whichElchk.checked == true){
			setCookieGroup(Num,'0');
		}else{
			setCookieGroup(Num,'1');
		}
  }
  
  
  function getCookGrCheck(Num,sid){
		whichElchk = eval("document.all." + sid);
		if (getCookieGroup(Num)==0){
			whichElchk.checked = true;
		}else{		
			whichElchk.checked = false;
		}
  } 
	
	function setCookGrRadio(Num,Data){
		//whichEl = eval("document.all." + sid + Num);
		setCookieGroup(Num,Data);
  }
  
  function getCookGrRadio(Num,sid){	  
		whichElrdo = eval("document.all." + sid + getCookieGroup(Num));
		whichElrdo.checked = true;
  } 
	
	function WriteFlash(flash,_width,_height) {
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + _width + "\" height=\"" + _height + "\">");
	document.writeln("  <param name=\"movie\" value=\"" + flash + "\" />");
	document.writeln("  <param name=\"quality\" value=\"high\" />");
	document.writeln("  <param name=\"wmode\" value=\"transparent\" />");
	document.writeln("  <embed src=\"" + flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + _width + "\" height=\"" + _height + "\" wmode=\"transparent\"></embed>");
	document.writeln("</object>");
}

function ChangeKind(){
	var rName = 'idKindSelect' //要替换名称
	var src = rName + (event.srcElement.id.replace(rName,'')*1+1)
  var ChangeItem = "[ 0 ]";
	for(i=1;i<event.srcElement.options.length;i++){
		if(event.srcElement.options(i).selected == true){
			ChangeItem = event.srcElement.options(i).innerHTML
			ChangeItem = ChangeItem.substring(11,13)
		}
	}

	for(i=1;i<document.getElementById(src).options.length;i++){
			tmpStr=document.getElementById(src).options(i).innerHTML.substring(5,7);
		if(tmpStr==ChangeItem){
			document.getElementById(src).options(i).style.color='#000000'
		}else{
			document.getElementById(src).options(i).style.color='#CCCCCC'
		}
	}

}


function WriteFlash(flash,_width,_height,transparent) {
	if (transparent==1) transparent="transparent"  //透明
	if (transparent==2) transparent="opaque"       //不遮盖DIV
	document.writeln("<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0\" width=\"" + _width + "\" height=\"" + _height + "\">");
	document.writeln("  <param name=\"movie\" value=\"" + flash + "\" />");
	document.writeln("  <param name=\"quality\" value=\"high\" />");
	document.writeln("  <param name=\"wmode\" value=\"" + transparent + "\" />");
	document.writeln("  <embed src=\"" + flash + "\" quality=\"high\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" type=\"application/x-shockwave-flash\" width=\"" + _width + "\" height=\"" + _height + "\" wmode=\"transparent\"></embed>");
	document.writeln("</object>");
}

// -->	
