﻿// JScript 文件
var fsize=12;
function zoomin(i) 
{ 

  	newZoom= parseInt(result.style.zoom)+5+'%';

	result.style.zoom =newZoom;
	parent.document.getElementById("showresult").style.height=200;
   parent.document.getElementById("showresult").style.height=document.body.scrollHeight+30;


}
function zoomout(i) 
{ 
	newZoom= parseInt(result.style.zoom)-5;

	if(newZoom<10)
	{
		newZoom=10;
		alert("再小就看不见了！");
	}
	
	result.style.zoom =newZoom +'%';
   parent.document.getElementById("showresult").style.height=200;
   parent.document.getElementById("showresult").style.height=document.body.scrollHeight+30;


}
function zoomin2(i) 
{ 
  fsize=fsize+i;
  var tmpstr=fsize+"px";
  result.style.fontSize=tmpstr;
}
function zoomout2(i) 
{ 
  if(fsize<4) return;
  fsize=fsize-i;
  var tmpstr=fsize+"px";
   result.style.fontSize=tmpstr;
}

function zoom2(i) 
{ 
  fsize=12;
  var tmpstr=fsize+"px";
  result.style.fontSize=tmpstr;
}
function zoom(i) 
{ 
	
	result.style.zoom = '100%';
	parent.document.getElementById("showresult").style.height=200;
   parent.document.getElementById("showresult").style.height=document.body.scrollHeight+30;

}
