// JavaScript Document
function ChangeMenu(tid,id,count,className1,className2)
{
	var tid = document.getElementById(tid);  //ȡid
	var c1 = tid.getElementsByTagName("div").length; //ȡĿ
	for(i=0;i<c1;i++)   //ѭıĿı
	{
		tid.getElementsByTagName("div")[i].className=className1;
	}
	tid.getElementsByTagName("div")[count].className=className2; //ıtidı
	var OoMenu = document.getElementById(id); //ȡݵĶ
	var c = OoMenu.getElementsByTagName("li").length; //ȡĿ
	for(i=0;i<c;i++)  //ѭظĿ
	{
		OoMenu.getElementsByTagName("li")[i].style.display="none";
	}
	OoMenu.getElementsByTagName("li")[count].style.display="block";   //ʾtid
}

function openwin(url) {
  var wth=window.screen.width; 
  var hth=window.screen.heigth;
  var lefth,topth;
  if(wth==1024)
	{
	  hth=400;
	  lefth =0;
	  wth=730;
	  topth=0;
	}
  else if(wth==800)
	{
	  hth=400;
	  lefth =0;
	  wth=500;
	  topth=0;
	}
  else
	{
	  hth=400;
          lefth =0;
	  wth=730;
          topth=0;
	}
  var oth="toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,left="+lefth+",top="+topth;
  oth = oth+",width="+wth+",height="+hth ;
  var newwin=window.open(url,"newwin",oth);
   newwin.focus();
  return false;
}

