old_fontweight = old_fontcolor = old_fontsize = old_arrow1 = old_arrow2 = ""; function mover_LP(text, fontweight, fontcolor, fontsize, arrow1, arrow2, id) { document.getElementById("LP" + id).innerHTML = ""; if (fontweight != "") { old_fontweight = document.getElementById("LP" + id).style.fontWeight; document.getElementById("LP" + id).style.fontWeight = fontweight; } else { if (old_fontweight != "") document.getElementById("LP" + id).style.fontWeight = old_fontweight; old_fontweight = ""; } if (fontcolor != "") { old_fontcolor = document.getElementById("LP" + id).style.color; document.getElementById("LP" + id).style.color = "#" + fontcolor; } else { if (old_fontcolor != "") document.getElementById("LP" + id).style.color = old_fontcolor; old_fontcolor = ""; } if (fontsize != "") { old_fontsize = document.getElementById("LP" + id).style.fontSize; document.getElementById("LP" + id).style.fontSize = fontsize + "px"; } else { document.getElementById("LP" + id).style.fontSize = old_fontsize; old_fontsize = ""; } if (arrow1 != "") { old_arrow1 = document.getElementById("LPArrow1_" + id).src; document.getElementById("LPArrow1_" + id).src = arrow1; } else { if (old_arrow1 != "") document.getElementById("LPArrow1_" + id).src = old_arrow1; old_arrow1 = ""; } if (arrow2 != "") { old_arrow2 = document.getElementById("LPArrow2_" + id).src; document.getElementById("LPArrow2_" + id).src = arrow2; } else { if (old_arrow2 != "") document.getElementById("LPArrow2_" + id).src = old_arrow2; old_arrow2 = ""; } //alert(old_fontweight + " / " + old_fontcolor + " / " + old_fontsize); document.getElementById("LP" + id).innerHTML = unescape(text); }