var MOT="menuOut";var MOV="menuOver";var NE="none";function closemenu(){Menu1.className=MOT;Menu2.className=MOT;Menu3.className=MOT;Menu4.className=MOT;Menu5.className=MOT;Menu6.className=MOT;Menu7.className=MOT;SubMenu1.style.display=NE;SubMenu2.style.display=NE;SubMenu3.style.display=NE;SubMenu4.style.display=NE;SubMenu5.style.display=NE;SubMenu6.style.display=NE;SubMenu7.style.display=NE;}function subMenuOpen(e){e.className=MOV;eval("Sub"+e.id+".style.display='inline'");}function subMenuOpenE(e){e.className=MOV+"E";eval("Sub"+e.id+".style.display='inline'");}function subMenuClose(e){e.className=MOT;eval("Sub"+e.id+".style.display='none'");}function subMenuCloseE(e){e.className=MOT+"E";eval("Sub"+e.id+".style.display='none'");}function subMenuOver(e){e.className="sub"+MOV;}function subMenuOut(e){e.className="sub"+MOT;}function openTaarifonWindow(){var tUL='/tarifp1/Tarifp1.html';var tWP='width='+screen.width+',height=400,toolbar=no,status=yes,scrollbars=yes';var taarifon=window.open(tUL,'taarifon',tWP);}function setDataType(cValue){var isDate=new Date(cValue);if(isDate=="NaN"){if(isNaN(cValue)){cValue=cValue.toUpperCase();return cValue;}else{return(String.fromCharCode(48+cValue.length)+cValue);}}else{var mD=new String();mD=isDate.getFullYear()+" ";mD+=isDate.getMonth()+" ";mD+=isDate.getDate();+" ";mD+=isDate.getHours();+" ";mD+=isDate.getMinutes();+" ";mD+=isDate.getSeconds();return mD;}}function sortTable(col,tableToSort){window.status='Sorting.....';var iCurCell=col+tableToSort.cols;var totalRows=tableToSort.rows.length;var bSort=0;var colArray=new Array();var oldIndex=new Array();var indexArray=new Array();var bArray=new Array();var newRow,newCell;var i,c,j;for(i=1;i<tableToSort.rows.length;i++){colArray[i-1]=setDataType(tableToSort.cells(iCurCell).innerText);iCurCell=iCurCell+tableToSort.cols;}for(i=0;i<colArray.length;i++){bArray[i]=colArray[i];}colArray.sort();for(i=0;i<colArray.length;i++){indexArray[i]=i+1;for(j=0;j<bArray.length;j++){if(colArray[i]==bArray[j]){for(c=0;c<i;c++){if(oldIndex[c]==(j+1)){bSort=1;}}if(!bSort){oldIndex[i]=(j+1);}bSort=0;}}}for(i=0;i<oldIndex.length;i++){newRow=tableToSort.insertRow();newRow.className="viewtd";for(c=0;c<tableToSort.cols;c++){newCell=newRow.insertCell();newCell.innerHTML=tableToSort.rows(oldIndex[i]).cells(c).innerHTML;}}for(i=1;i<totalRows;i++){tableToSort.moveRow((tableToSort.rows.length-1),1);}for(i=1;i<totalRows;i++){tableToSort.deleteRow();}window.status='Finished sorting.';}

