// JavaScript Document
function selectMenu(id){
	var display;
	display=document.getElementById("small"+id).style.display;
	if(display=="none"){
			display="block";
	}
		else{
			display="none";
	}	
		document.getElementById("small"+id).style.display=display;
	var i=id;	
	document.getElementById("small"+i).style.display=display;
	var j
	for(var k=1;k<classMenuArr.length;k++){
		if(k!=i){
		 	document.getElementById("small"+k).style.display="none";
		 }
	}
}
function checkSerach(){
	if (document.sform.key.value.length==0){
		alert('请输入关键字');
		document.sform.key.focus();
		return false;
		}
	return true;	
	}
	
	function SetWinHeight(obj)
{
 var win=obj;
 if (document.getElementById)
 {
  if (win && !window.opera)
  {
   if (win.contentDocument && win.contentDocument.body.offsetHeight) 
    win.height = win.contentDocument.body.offsetHeight; 
   else if(win.Document && win.Document.body.scrollHeight)
    win.height = win.Document.body.scrollHeight;
  }
 }
}

