﻿//调用<img onload="ResizeImage(this, 110, 110);"/>
function ResizeImage(F,D,G){if(F!=null){imageObject=F}var E=imageObject.readyState;if(E!="complete"){setTimeout("ResizeImage(null,"+D+","+G+")",50);return }var B=new Image();B.src=imageObject.src;var A=B.width;var C=B.height;if(A>D||C>G){a=A/D;b=C/G;if(b>a){a=b}A=A/a;C=C/a}if(A>0&&C>0){imageObject.width=A;imageObject.height=C}}
//调用<script type="text/javascript">InsertFlash("images/top.swf",110,110);</script>
function InsertFlash(Flash,Width,Height){
	document.writeln("<embed src=\"" + Flash + "\"  type=\"application\/x-shockwave-flash\" width=\""+Width+"\" height=\""+Height+"\"  wmode=\"transparent\" ><\/embed>");
}
//反选
function checkAll(thisform){var ids = thisform.elements['id'];var type = typeof(ids.name); if ( type != 'undefined' ){ids.checked = !ids.checked;}else{for(i=0; i<ids.length; i++){ids[i].checked = !ids[i].checked;}}}
//设置字体
function fontZoom(size)
{
 document.getElementById('fontzoom').style.fontSize=size+'px'
}
//改变图片大小
function resizepic(thispic)
{
if(thispic.width>560) thispic.width=560;
}

