It only seems to work if I do it like that:
if(document.Body.document.prevtab2) {
document.Body.document.prevtab2.style="border-top-width:2; border-left-width:2; border-right-width:2; vertical-align:top; border-top:solid; border-top-color:#D8CDAC; border-left:solid; border-left-color:#D8CDAC; border-right:solid; border-right-color:#D8CDAC; padding-left:3; padding-right:3; padding-top:3; padding-bottom:3;";
document.Body.document.prevlink2.style="font-weight:810; color:#000000; text-decoration:none";
document.Body.document.prevlink1.style="color:#CCCCCC; text-decoration:none";
startPrevTab = 2;
}
Is that correct or will it have an impact on something else?