﻿function getObject(elementId){
	if(document.getElementById){
		return document.getElementById(elementId);
	}else if(document.all){
		return document.all[elementId];
	}else if(document.layers){
		return document.layers[elementId];
	}
}
function ReImgSize() {
	var pressImg = getObject("pressimg");
	if (pressImg.width>120 && pressImg.width>pressImg.height) {
	    pressImg.style.marginTop=parseInt((120-(120/pressImg.width)*pressImg.height)/2) + "px";
		pressImg.width=120;
	} else if(pressImg.height>120) {
		pressImg.height=120;
	}
}