function scaletm(intTmact,intTmtot) {
	var arrTmdiv = new Array()
		arrTmdiv[0] = new Array ("tm","width",91,122,157)
		arrTmdiv[1] = new Array ("tm","height",17,25,34)
		arrTmdiv[2] = new Array ("tm","top",58,75,100)
		arrTmdiv[3] = new Array ("tml","fontSize",11,13,16)
		arrTmdiv[4] = new Array ("tml","lineHeight",13,18,20)
		arrTmdiv[5] = new Array ("tm","left",83,107,143)
		arrTmdiv[6] = new Array ("tm","marg",20,20,31)
	for (i=0;i<intTmtot;i++) {
		for (z=0;z<=4;z++) {
		eval("document.getElementById(\"" + arrTmdiv[z][0] + i + "\").style." + arrTmdiv[z][1] + " = \"" + arrTmdiv[z][resval()+2] + "px\"");
		}
		eval("document.getElementById(\"tm" + i + "\").style.left = \"" + eval(arrTmdiv[6][resval()+2]+i*arrTmdiv[5][resval()+2]) + "px\"");
		//eval("document.getElementById(\"tm" + i + "\").style." + arrTmdiv[3][1] + " = \"" + arrTmdiv[3][resval()+2] + "px\"");
	}
if (intTmact>=0 && intTmact!=1000) {
	var tmId = "tm" + intTmact
	//alert(tmId)
	var oldpic = document.getElementById(tmId).style.backgroundImage;
	//alert(oldpic)
	var newpic = oldpic.split("_")[0] + "_" + resval() + ".gif)";
	eval("document.getElementById(\"" + tmId  + "\").style.backgroundImage = \"" + newpic + "\"");
}
}