function changenews(id){
	var tx1 = document.getElementById('tx1');
	var tx2 = document.getElementById('tx2');
	var tx3 = document.getElementById('tx3');
	
	var flash1 = document.getElementById('flash1');
	var flash2 = document.getElementById('flash2');
	var flash3 = document.getElementById('flash3');
	
	var xinwen1 = document.getElementById('xinwen1');
	var xinwen2 = document.getElementById('xinwen2');
	var xinwen3 = document.getElementById('xinwen3');
	
	var sh,shxin,shflash;
	var hid1,hid2,hidflash1,hidflash2,hidxin1,hidxin2;
	type = id;
	if(id=='1'){
		sh = tx1;    shxin = xinwen1;		shflash = flash1;
		
		hid1 = tx2;  hidxin1 = xinwen2;		hidflash1 = flash2;
		hid2 = tx3;  hidxin2 = xinwen3;		hidflash2 = flash3;
	}
	else if(id=='2'){
		sh = tx2;    shxin = xinwen2;		shflash = flash2;
		
		hid1 = tx1;  hidxin1 = xinwen1;		hidflash1 = flash1;
		hid2 = tx3;  hidxin2 = xinwen3;		hidflash2 = flash3;
	}
	else if(id=='3'){
		sh = tx3;    shxin = xinwen3;		shflash = flash3;
		
		hid1 = tx1;  hidxin1 = xinwen1;		hidflash1 = flash1;
		hid2 = tx2;  hidxin2 = xinwen2;		hidflash2 = flash2;
	}
	
	sh.width=116;
	sh.className="lan";
	sh.style.background="url(images/tu023.jpg)";
	sh.style.cursor="";
	shxin.style.display="";
	shflash.style.display="";
	
	hid1.width=94;
	hid1.className="";
	hid1.style.background="url(images/tu024.jpg)";
	hid1.style.cursor="hand";
	hidxin1.style.display="none";
	hidflash1.style.display="none";
	
	hid2.width=94;
	hid2.className="";
	hid2.style.background="url(images/tu024.jpg)";
	hid2.style.cursor="hand";
	hidxin2.style.display="none";
	hidflash2.style.display="none";
	
}

function checklogin(){
	var username = document.login.username.value;
	var password = document.login.password.value;
	
	if(username==""){
		alert('ÇëÌîÐ´ÓÃ»§Ãû£¡');
	}
	else if(password==""){
		alert("ÇëÌîÐ´ÃÜÂë£¡");
	}
	else{
		document.login.submit();
	}
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
