<script language=JavaScript>
function autoResizepic()
{
var picTarget=document.getElementById("text").getElementsByTagName("img");
if(picTarget){
for(var i=0;i<picTarget.length;i++)
{
if(picTarget[i].width>560){picTarget[i].height=picTarget[i].height*560/picTarget[i].width;picTarget

[i].width=560;} 
if(parseInt(picTarget[i].style.width)>560){picTarget[i].style.height=parseInt(picTarget[i].style.height)

*560/parseInt(picTarget[i].style.width);picTarget[i].style.width=560+"px";} 
}
}
}
window.onload=function(){
autoResizepic();
}
</script> 
