this.name='shEAMainWnd'; this.focus(); function initPage() { } var currWePageNo = 1; var fUserClick = 0; function wePage(pageNo) { if (pageNo < 1) pageNo = noWEPages; if (pageNo > noWEPages) pageNo = 1; for (i = 0; i < 10; ++i) { pNo = i * 2 + 1; if (gE('weDiv' + pNo) != null) { if (pNo == (pageNo - 1) * 2 + 1) { gE('weDiv' + pNo).style.display = 'inline'; gE('wePSpan' + (i+1)).style.display = 'inline'; gE('wePAnch' + (i+1)).style.display = 'none'; } else { gE('weDiv' + pNo).style.display = 'none'; gE('wePSpan' + (i+1)).style.display = 'none'; gE('wePAnch' + (i+1)).style.display = 'inline'; } } } currWePageNo = pageNo; fUserClick = 5; } function switchWEPage() { if (fUserClick > 0) { fUserClick = fUserClick - 1; } else { wePage(currWePageNo + 1); fUserClick = 0; } setTimeout('switchWEPage()', 5000); } function validateAsc() { var textMsg = "Completeaza campul pentru un rezultat mai bun"; if($('zi').value == "") { showToolTipFader(textMsg,$('zi')); $('zi').focus(); return false; } if($('luna').value == "") { showToolTipFader(textMsg,$('luna')); $('luna').focus(); return false; } if($('an').value == "") { showToolTipFader(textMsg,$('an')); $('an').focus(); return false; } if($('ora').value == "") { showToolTipFader(textMsg,$('ora')); $('ora').focus(); return false; } if($('min').value == "") { showToolTipFader(textMsg,$('min')); $('min').focus(); return false; } document.calculBioritm.submit(); }