﻿	/*========================= 设置字体大中小 start =============*/
	function doZoom(size){
		var artibody = document.getElementById('artibody');
		if(!artibody){
			return;
		}
		var artibodyChild = artibody.childNodes;
		artibody.style.fontSize = size + 'px';
		//再对artibody div内的直接html节点设置fontSize属性
		for(var i = 0; i < artibodyChild.length; i++){
			if(artibodyChild[i].nodeType == 1){
				artibodyChild[i].style.fontSize = size + 'px';
			}
		}
	}
	//========================= 设置字体大中小 end =============

	//========================= 打印正文部分 start =============
	//print js begin
	function LoadPrintJsCallBack(){
		if(typeof forSPrint == "object" && forSPrint.Print){
			forSPrint.Print();
		}
	}
	function LoadPrintJs(){
		var jsFile = "images/print.js";  //打印主js文件url
		jsFile += "?t="+ (new Date()).getTime();
		var js = document.createElement("script");
		js.setAttribute("src",jsFile);
		js.setAttribute("type","text\/javascript");
		js.setAttribute( "id", "sinaPrintJsUrl");
		//for ie
		js.onreadystatechange = function(){
			if(js.readyState=="loaded"){
				LoadPrintJsCallBack();
			}
		}
		//for ff
		js.onload = LoadPrintJsCallBack;
		document.body.insertBefore(js,null); // null for ff
		//alert(jsFile);
	}
	/*print js end
	========================= 打印正文部分 end =============
	************************开始定义xmlhttp对象实例*************************
	*/
	function createAjax() {
		var _xmlhttp;
		try {
			_xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); //IE的创建方式
		}
		catch (e) {
			try {
				_xmlhttp=new XMLHttpRequest(); //FF等浏览器的创建方式
			}
			catch (e) {
				_xmlhttp=false; //如果创建失败，将返回false
			}
		}
		return _xmlhttp; //返回xmlhttp对象实例
	}
	/*
	**********************结束定义xmlhttp对象实例****************************
	*/
