﻿<!--
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_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 $(objectId)
{
	if(document.getElementById && document.getElementById(objectId)) 
	{
		// W3C DOM
		return document.getElementById(objectId);
	} 
	else if (document.all && document.all(objectId)) 
	{
		// MSIE 4 DOM
		return document.all(objectId);
	} 
	else if (document.layers && document.layers[objectId]) 
	{
		// NN 4 DOM.. note: this won't find nested layers
		return document.layers[objectId];
	} 
	else 
	{
		return false;
	}
}





function Warning(str)
{
	if (confirm(str))
	{
		return true;
	}
	return false;
}




function AddFavorite()
{
	if (navigator.appName != 'Netscape')
	{
		window.external.AddFavorite(parent.location.href, document.title);
	}
	else
	{
		window.location = parent.location.href;
	}
}





/*
##############################
# 关闭和显示层
##############################
# 23:21 2009-2-4
# 
##############################
*/
function ControlDiv(divName)
{
	if (divName != "")
	{
		var obj = $(divName);

		if (obj.style.visibility == "hidden")
		{
			obj.style.visibility = "visible"; //显示
		}
		else
		{
			obj.style.visibility = "hidden"; //隐藏
		}
	}
}
//-->