//reloads the window if Nav4 resized
function MM_reloadPage(init) {　

　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);
//Resume Error
function killErrors() {
return true;
}
window.onerror = killErrors;
//防止被frame
  if (top.location != self.location)top.location=self.location;
  
//页面滚动Begin
function scrollit() {
for (I=1; I<=5000; I++){
parent.scroll(1,I)
}
}

function scrollit1() {
for (I=5000; I>1; I=I-1){
parent.scroll(1,I)
}
};
//Search Keyword
function KeyWord()
{
	if (document.Search.q.value == "监狱信息网")
	{
	document.Search.q.value = "";
	}
}
　if (top.location != self.location)top.location=self.location;
//Zoom word
function zoomIn() {
　　newZoom= parseInt(Context.style.zoom)+10+'%'
　　Context.style.zoom =newZoom;
} 
function zoomOut() {
　　newZoom= parseInt(Context.style.zoom)-10+'%'
　　Context.style.zoom =newZoom;
}
//栏目切换
var butt = new Array;

function init_Sponsr(){
for (var i=1; i<butt.length; i++){
eval("document.getElementById('butt"+i+"').innerHTML=butt["+i+"]")
}
}
　
function GetObj(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 Sponsr(index,flag){
for(var i=0;i<9;i++){
if(GetObj("Sponsrcon"+i)&&GetObj("Sponsrm"+i)){
GetObj("Sponsrcon"+i).style.display = 'none';
GetObj("Sponsrm"+i).className = "SponsrOff";
}
}
if(GetObj("Sponsrcon"+index)&&GetObj("Sponsrm"+index)){
GetObj("Sponsrcon"+index).style.display = 'block';
GetObj("Sponsrm"+index).className = "SponsrOn";
}
}

function Tab2A(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabAtxt"+i)&&GetObj("tabA"+i)){
GetObj("tabAtxt"+i).style.display = 'none';
GetObj("tabA"+i).className = "popOff";
}
}
if(GetObj("tabAtxt"+index)&&GetObj("tabA"+index)){
GetObj("tabAtxt"+index).style.display = 'block';
GetObj("tabA"+index).className = "popOn";
}
}

function Tab2C(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabCtxt"+i)&&GetObj("tabC"+i)){
GetObj("tabCtxt"+i).style.display = 'none';
GetObj("tabC"+i).className = "popOff";
}
}
if(GetObj("tabCtxt"+index)&&GetObj("tabC"+index)){
GetObj("tabCtxt"+index).style.display = 'block';
GetObj("tabC"+index).className = "popOn";
}
}

function Tab2B(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabBtxt"+i)&&GetObj("tabB"+i)){
GetObj("tabBtxt"+i).style.display = 'none';
GetObj("tabB"+i).className = "tabOff";
}
}
if(GetObj("tabBtxt"+index)&&GetObj("tabB"+index)){
GetObj("tabBtxt"+index).style.display = 'block';
GetObj("tabB"+index).className = "tabOn";
}
}

function Tab2D(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabDtxt"+i)&&GetObj("tabD"+i)){
GetObj("tabDtxt"+i).style.display = 'none';
GetObj("tabD"+i).className = "tabOff";
}
}
if(GetObj("tabDtxt"+index)&&GetObj("tabD"+index)){
GetObj("tabDtxt"+index).style.display = 'block';
GetObj("tabD"+index).className = "tabOn";
}
}

function Tab2E(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabEtxt"+i)&&GetObj("tabE"+i)){
GetObj("tabEtxt"+i).style.display = 'none';
GetObj("tabE"+i).className = "tabOff";
}
}
if(GetObj("tabEtxt"+index)&&GetObj("tabE"+index)){
GetObj("tabEtxt"+index).style.display = 'block';
GetObj("tabE"+index).className = "tabOn";
}
}

function Tab2F(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabFtxt"+i)&&GetObj("tabF"+i)){
GetObj("tabFtxt"+i).style.display = 'none';
GetObj("tabF"+i).className = "tabOff";
}
}
if(GetObj("tabFtxt"+index)&&GetObj("tabF"+index)){
GetObj("tabFtxt"+index).style.display = 'block';
GetObj("tabF"+index).className = "tabOn";
}
}

function Tab2G(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabGtxt"+i)&&GetObj("tabG"+i)){
GetObj("tabGtxt"+i).style.display = 'none';
GetObj("tabG"+i).className = "tabOff";
}
}
if(GetObj("tabGtxt"+index)&&GetObj("tabG"+index)){
GetObj("tabGtxt"+index).style.display = 'block';
GetObj("tabG"+index).className = "tabOn";
}
}

function Tab2H(index,flag){
for(var i=0;i<9;i++){
if(GetObj("tabHtxt"+i)&&GetObj("tabH"+i)){
GetObj("tabHtxt"+i).style.display = 'none';
GetObj("tabH"+i).className = "tab2Off";
}
}
if(GetObj("tabHtxt"+index)&&GetObj("tabH"+index)){
GetObj("tabHtxt"+index).style.display = 'block';
GetObj("tabH"+index).className = "tab2On";
}
}

function Close() {
	window.close();
}

function down()
{
	if (window.event.keyCode=="13"){
	return false;
	}
}

function doView(id)
{
	var title,View;
	title = document.View.reTitle.value;
	View = document.View.reView.value;
	UpView(id,title,View);
	return false;
}