﻿//分页
function showpage(page,RecordCount,PageSize,PageCount,PageUrl){
   var Tmpstr='page：'+page+'/'+PageCount+' number/page '+PageSize+'  total '+RecordCount+'  page number:'
   var p,n=10;
   //if (PageCount==0||PageCount==1){return;}
   if (page=='1'){Tmpstr+='<font face=webdings color="#FF0000">9</font>';}
   else{Tmpstr+='<a href="'+PageUrl+'page=1" title="first"><font face=webdings>9</font></a> ';}
   p=parseInt((page-1)/n);
   if (p*n>0){Tmpstr+='<a href="'+PageUrl+'page='+p*n+'" title="pre ten page"><font face=webdings>7</font></a> ';}
   Tmpstr+='<b>';
   for (var i=p*n+1;i<p*n+n+1;i++){ 
      if (i==page){Tmpstr+=' <font color="#FF0000">'+i+'</font> ';}
      else{Tmpstr+=' <a href="'+PageUrl+'page='+i+'">'+i+'</a> ';}
      if (i==PageCount){break;}
   }
  Tmpstr+='</b>';
  if (i<PageCount){Tmpstr+='<a href="'+PageUrl+'page='+i+'" title="net ten page"><font face=webdings>8</font></a> ';}
  if (page==PageCount){Tmpstr+='<Font face=webdings color="#FF0000">:</font>';}
  else{Tmpstr+='<a href="'+PageUrl+'page='+PageCount+'" title="last"><font face=webdings>:</font></a>';}
  document.write(Tmpstr);
}
function GetObj(id){return document.getElementById(id);}//获取对象
function showLayer(id){GetObj(id).style.visibility="visible";GetObj(id).style.display="";}//显示层
function hiddenLayer(id){GetObj(id).style.visibility="hidden";GetObj(id).style.display="none";}//隐藏层

//打开新窗口
function OpenWin(url){
	x=450;y=400;
	l=(screen.width/2)-(x/2);
	t=(screen.height/2)-(y/2);
	s="scrollbars=yes,toolbar=no,location=no,status=no,menubar=no,resizable=no";
	s+=" width=" + x + ", height=" + y + ", left=" + l + ", top=" + t;
	window.open(url,"",s);
}
//js输出flash
function showflash(flashURL,flashWIDTH,flashHEIGHT,flashMode){
    if(flashMode==1){flashMode="transparent";}else{flashMode="opaque";}
document.writeln ('<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+'>');
document.writeln ('<PARAM NAME=movie VALUE="'+flashURL+'">');
document.writeln ('<PARAM NAME=wmode VALUE="'+flashMode+'">');
document.writeln ('<PARAM NAME=loop VALUE=true>');//这个也没有
document.writeln ('<PARAM NAME=quality VALUE=high>');//这个没有
document.writeln ('<EMBED src="'+flashURL+'" loop=true wmode="'+flashMode+'" quality=high swLiveConnect=FALSE WIDTH='+flashWIDTH+' HEIGHT='+flashHEIGHT+' TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></EMBED>');
document.writeln ('</OBJECT>');
}

function doZoom(size){GetObj('zoom').style.fontSize=size+'px'} //动态改变文字大小
