<!--
function Obj(objName){
	if(document.getElementById){
		 return eval('document.getElementById("' + objName + '")');
	 }
	 else if(document.layers) {
		 return eval("document.layers['" + objName +"']");
	 }
	 else{
	 return eval('document.all.' + objName);
	 }
}
function SelMenu(sel,sum,objID,Cid){

 for(var i=1;i<=sum;i++){
 if(Obj(objID+i)&&Obj(objID+"div_"+i)){
	Obj(objID+"div_"+i).style.display = 'none';
 	Obj(objID+i).className = Cid+"_menuout";
 }
 }

 if(Obj(objID+"div_"+sel)&&Obj(objID+sel)){
 Obj(objID+"div_"+sel).style.display = 'block';
 Obj(objID+sel).className = Cid+"_menuon";

 }
 }
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

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_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' 内容不能为空。\n'; }
  } if (errors) alert('对不起，您提交的表单有如下错误:\n'+errors);
  document.MM_returnValue = (errors == '');
}

function mmLoadMenus() {
  if (window.mm_menu_0225011827_0) return;
                                                    window.mm_menu_0225011827_0 = new Menu("root",136,20,"",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",4,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0225011827_0.addMenuItem("新建项目");
   mm_menu_0225011827_0.hideOnMouseOut=true;
   mm_menu_0225011827_0.bgColor='#555555';
   mm_menu_0225011827_0.menuBorder=1;
   mm_menu_0225011827_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225011827_0.menuBorderBgColor='#FFCC33';
    window.mm_menu_0225020145_0 = new Menu("root",90,20,"",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",4,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0225020145_0.addMenuItem("新建项目");
   mm_menu_0225020145_0.hideOnMouseOut=true;
   mm_menu_0225020145_0.bgColor='#555555';
   mm_menu_0225020145_0.menuBorder=1;
   mm_menu_0225020145_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225020145_0.menuBorderBgColor='#FFCC33';
window.mm_menu_0225021057_0 = new Menu("root",102,18,"",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",3,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0225021057_0.addMenuItem("新建项目");
   mm_menu_0225021057_0.hideOnMouseOut=true;
   mm_menu_0225021057_0.bgColor='#555555';
   mm_menu_0225021057_0.menuBorder=1;
   mm_menu_0225021057_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225021057_0.menuBorderBgColor='#FFCC33';
  window.mm_menu_0225130526_0 = new Menu("root",88,20,"宋体",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",4,0,1000,-5,7,true,false,true,0,true,true);
  mm_menu_0225130526_0.addMenuItem("新建项目");
   mm_menu_0225130526_0.hideOnMouseOut=true;
   mm_menu_0225130526_0.bgColor='#555555';
   mm_menu_0225130526_0.menuBorder=1;
   mm_menu_0225130526_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225130526_0.menuBorderBgColor='#FFCC33';
window.mm_menu_0225133714_0 = new Menu("root",120,20,"宋体",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",4,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0225133714_0.addMenuItem("新建项目");
   mm_menu_0225133714_0.hideOnMouseOut=true;
   mm_menu_0225133714_0.bgColor='#555555';
   mm_menu_0225133714_0.menuBorder=1;
   mm_menu_0225133714_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225133714_0.menuBorderBgColor='#FFCC33';
  window.mm_menu_0225160027_0 = new Menu("root",134,20,"宋体",12,"#000000","#CCCCCC","#CCFFCC","#000000","left","middle",4,0,1000,-5,7,true,false,true,0,false,true);
  mm_menu_0225160027_0.addMenuItem("新建项目");
   mm_menu_0225160027_0.hideOnMouseOut=true;
   mm_menu_0225160027_0.bgColor='#555555';
   mm_menu_0225160027_0.menuBorder=1;
   mm_menu_0225160027_0.menuLiteBgColor='#FFFFFF';
   mm_menu_0225160027_0.menuBorderBgColor='#FFCC33';

mm_menu_0225160027_0.writeMenus();
} // mmLoadMenus()
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function search4(str)
{
   window.open("/so/search.asp?hl=zh-CN&q="+str,"DownWindows2");		
   //if(window.encodeURIComponent)	 
   // window.open("http://www.google.com/search?hl=zh-CN&ie=UTF-8&q="+encodeURIComponent(str),"DownWindows2");
   //else
   // window.open("http://www.google.com/search?hl=zh-CN&q="+str,"DownWindows2");
   //window.location="http://www1.baidu.com/baidu?tn=nanhoocom&word="+str;
   //return false;
}
function search(str)
{
	
   window.open("/so/search.asp?hl=zh-CN&q="+str,"DownWindows2");	
	
  //if(window.encodeURIComponent)	 
    //window.open("http://www.google.com/search?hl=zh-CN&ie=UTF-8&q="+encodeURIComponent(str),"DownWindows2");
   //else
    //window.open("http://www.google.com/search?hl=zh-CN&q="+str,"DownWindows2");
   //window.location="http://www1.baidu.com/baidu?tn=nanhoocom&word="+str;
   
   
   return false;
}
function OpenDown(ID)     
{  
  url = "down.asp?id="+ID;
  popup = window.open(url,"DownWindows","menubar=no,toolbar=yes,location=no,directories=no,status=no,width=300,height=200,left=150,top=100,scrollbars=no");

}   
function UpdateOpenDown(ID)     
{  
  url = "Updatedown.asp?id="+ID;
  popup = window.open(url,"DownWindows","menubar=no,toolbar=no,location=no,directories=no,status=no,width=300,height=200,left=150,top=100,scrollbars=no");

}    
function OpenNext(url)     
{  
    popup = window.open(url,"DownWindows","menubar=no,toolbar=no,location=no,directories=no,status=no,width=300,height=200,left=150,top=100,scrollbars=no");

} 
function SaveAs(){
	html="";
	t=document.all.item(0,0);
	while(t!=null){
		html+=t.outerHTML;
		t=t.nextSibling;
	}
	document.open("text/html","gb2312");
	document.write(html);
	document.execCommand ("SaveAs",true,document.title+"1.htm");
}   
function cgimg(o){
	var zoom=parseInt(o.style.zoom, 10)||100;zoom+=event.wheelDelta/12;
	if (zoom>0) o.style.zoom=zoom+'%';
	return false;
}
//-->
