/* $Id$ */ function sm_addPage(url,priority,changeFreq,lastChanged) { var table = document.getElementById('sm_pageTable').getElementsByTagName('TBODY')[0]; var ce = function(ele) { return document.createElement(ele) }; var tr = ce('TR'); var td = ce('TD'); var iUrl = ce('INPUT'); iUrl.type="text"; iUrl.style.width='95%'; iUrl.name="sm_pages_ur[]"; if(url) iUrl.value=url; td.appendChild(iUrl); tr.appendChild(td); td = ce('TD'); td.style.width='150px'; var iPrio = ce('SELECT'); iPrio.style.width='95%'; iPrio.name="sm_pages_pr[]"; for(var i=0; i 1) { firstRow.parentNode.removeChild(firstRow); } } var cnt = table.getElementsByTagName('TR').length; if(cnt%2) tr.className="alternate"; table.appendChild(tr); } function sm_loadPages() { for(var i=0; i