<!--
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_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();
}
MM_reloadPage(true);

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];}
}

			  function showtime(){
			  var now = new Date();
			  var week_str;
			  if(now.getDay()==0){week_str='星期日';}
			  if(now.getDay()==1){week_str='星期一';}
			  if(now.getDay()==2){week_str='星期二';}
			  if(now.getDay()==3){week_str='星期三';}
			  if(now.getDay()==4){week_str='星期四';}
			  if(now.getDay()==5){week_str='星期五';}
			  if(now.getDay()==6){week_str='星期六';}
			  document.write(''+now.getYear()+'年'+(now.getMonth()+1)+'月'+now.getDate()+'日'+week_str);
			  //document.write(''+now.getYear()+'.'+(now.getMonth()+1)+'.'+now.getDate());
			  } 
function check(FMadd)
{

 if(FMadd.name.value=="")
 {
  alert("请输入你的姓名");
  FMadd.name.focus();
  return false;
 }
 
 if(FMadd.title.value=="")
 {
   alert("请输入上访主题");
   FMadd.title.focus();
   return false;
 }
 
 FMadd.submit();
}
function newGuide(section) {
	var xguidewindow = window.open('','', 'height=500,width=740,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no,');
	xguidewindow.location.href = section;xguidewindow.focus();
}
function getradiovalue(radio_name){//取得radio字段值
if(document.all[radio_name].length>1){
	for(var i=0;i<document.all[radio_name].length;i++){
		if(document.all[radio_name][i].checked){return document.all[radio_name][i].value;}
	}
}else{
	if(document.all[radio_name].checked){return document.all[radio_name].value;}
	}
return null;
}
function checkbbs(){
	if(document.all['username'].value==""){alert('请输入帐号!');return false;}
	if(document.all['password'].value==""){alert('请输入密码!');return false;}
return true;
}
function tobbs(){
if(checkbbs()){document.all['bbsform'].submit();document.all['password'].value='';document.all['username'].value='';}
}
//-->