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 vReclama() { var textMsg = "Campurile marcate cu (*) sunt obligatorii"; if($('website').value == "") { showToolTipFader(textMsg,$('website')); $('website').focus(); return false; } if($('persoana').value == "") { showToolTipFader(textMsg,$('persoana')); $('persoana').focus(); return false; } if($('email').value == "") { showToolTipFader(textMsg,$('email')); $('email').focus(); return false; } if($('telefon').value == "") { showToolTipFader(textMsg,$('telefon')); $('telefon').focus(); return false; } if($('durata').value == "") { showToolTipFader(textMsg,$('durata')); $('durata').focus(); return false; } if($('buget').value == "") { showToolTipFader(textMsg,$('buget')); $('buget').focus(); return false; } document.reclamaFrm.submit(); }