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 validateContest() { var conName=$('conName'); var conEmail=$('conEmail'); var conPhone=$('conPhone'); var conAddress=$('conAddress'); var conCounty=$('conCounty'); var conCity=$('conCity'); if($('conTitle')) { if(!valProt($('conTitle'),"Denumire fotografie!","req")) { return false; } } if($('conDescription')) { if(!valProt($('conDescription'),"Adaugati o mica descriere fotografiei!","req")) { return false; } } if($('conPhoto')) { if(!valProt($('conPhoto'),"Ataseaza fotografie!","req")) { return false; } } if($('conQuestion')) { var gigi = document.getElementsByClassName('conAnswer'); var su = false; for(i=0; i 1) { } else { showToolTipFader(mess,field); field.focus(); return false; } } return true; }