//iframe自动适应高度代码
var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1]
var FFextraHeight=getFFVersion>=0.1? 16 : 0 

function dyniframesize(down) { 
var pTar = null; 
if (document.getElementById){ 
pTar = document.getElementById(down); 
} 
else{ 
eval('pTar = ' + down + ';'); 
} 
if (pTar && !window.opera){ 

pTar.style.display="block" 

if (pTar.contentDocument && pTar.contentDocument.body.offsetHeight){ 

pTar.height = pTar.contentDocument.body.offsetHeight+FFextraHeight; 
} 
else if (pTar.Document && pTar.Document.body.scrollHeight){ 

pTar.height = pTar.Document.body.scrollHeight; 
} 
} 

} 
//可以使用另外一种方法
function sizeChange() 
{ 
window.status=AAA.document.body.scrollHeight;  
document.all.AAA.height=AAA.document.body.scrollHeight; 
} 



