function checkRemeber(){ if(document.login.remember.checked) { document.login.remember.checked = false; }else{ document.login.remember.checked = true; } } function openRows(obj){ row1Obj = document.getElementById('passrow1'); row2Obj = document.getElementById('passrow2'); if(obj.checked){ row1Obj.style.visibility = "visible"; row2Obj.style.visibility = "visible"; row1Obj.style.display = "block"; row2Obj.style.display = "block"; }else{ row1Obj.style.visibility = "hidden"; row2Obj.style.visibility = "hidden"; row1Obj.style.display = "none"; row2Obj.style.display = "none"; } } function order(field, url){ url += "?"; url += "&order=" + field; location.href = url; } function openBrowse(check, divId) { divObj = document.getElementById('tbl_' + divId); fileObj = document.getElementById('imagefile_' + divId); if(check.checked) { divObj.style.visibility = "visible"; }else{ divObj.style.visibility = "hidden"; fileObj.value = ''; } } function changeOrder(idObj, move){ id = idObj.id.replace('a_', ''); var vals = id.split('_'); switch(move) { case "down": var nextOrder = parseInt(vals[vals.length - 1]); nextOrder++; var upperDivId = 'div_' + vals[0] + '_' + vals[1]; var lowerDivId = 'div_' + vals[0] + '_' + nextOrder; break; case "up": var prevOrder = parseInt(vals[vals.length - 1]); prevOrder--; var upperDivId = 'div_' + vals[0] + '_' + prevOrder; var lowerDivId = 'div_' + vals[0] + '_' + vals[1]; break; } var upperdivObj = document.getElementById(upperDivId); var lowerdivObj = document.getElementById(lowerDivId); if(upperdivObj) { var upperHTML = lowerdivObj.innerHTML;} if(lowerdivObj) { var lowerHTML = upperdivObj.innerHTML; } if(upperdivObj) { upperdivObj.innerHTML = upperHTML; } if(lowerdivObj) { lowerdivObj.innerHTML = lowerHTML; } } var addUnl = new Array(); function addUnlimited(slot, startNum, stopNum){ var num = parseInt(addUnl['unlimitedCount_' + slot]); var newnum = num + 1; var IdStr = slot + '_' + slot + '_' + startNum; var newIdStr = slot + '_' + slot + '_' + newnum; var slotDiv = 'moreupload_' + slot; slotDivObj = document.getElementById(slotDiv); slotDivCont = slotDivObj.innerHTML; var moreDivObj = document.getElementById('moreContainer_' + slot); var moreDivCont = moreDivObj.innerHTML; newContents = slotDivCont.replace(IdStr, newIdStr); newContents = newContents.replace(IdStr, newIdStr); if((stopNum == 0) || (newnum < stopNum)) { moreDivObj.innerHTML = moreDivCont + newContents; addUnl['unlimitedCount_' + slot] = newnum; }else{ alert('Sorry! You are not allowed to upload more files for this slot.'); } } function resetContainer(slot, startNum){ var id = 'moreContainer_' + slot; addUnl['unlimitedCount_' + slot] = startNum; var containerObj = document.getElementById(id); containerObj.innerHTML = ''; } function showPreview(sTblId, hTblId){ var showTblObj = document.getElementById(sTblId); var hideTblObj = document.getElementById(hTblId); hideTblObj.style.visibility = "hidden"; hideTblObj.style.display = "none"; showTblObj.style.visibility = "visible"; showTblObj.style.display = "block"; } function modifyPreview(formName, field, type){ var idObj = document.getElementById('tpl_' + field); if(idObj) { switch(type) { case 'text': var innerVal = eval('document.' + formName + '.' + field + '.value'); break; case 'editor': var frmName = field + '___Frame'; editor_frame = document.getElementById(frmName); editor_source = editor_frame.contentWindow.document.getElementById('eEditorArea'); var mContents = editor_source.contentWindow.document.body.innerHTML; var innerVal = mContents; break; } idObj.innerHTML = innerVal; } } function show_details(obj){ tblObj = document.getElementById('ddtable'); for(i=0;i 1){ for(k=0;k