<!--//
// This is for the static html page
var ALIAS = "";
var PASSWORD = "";
var GROUPS = "";
var ROLE = "";
var RANK = "";
cookies = document.cookie.split("; ");
for(z=0;z<cookies.length;z++){
cookie = cookies[z].split("=");
if (cookie[0] == 'ALIAS'){ALIAS = replaceChars(cookie[1]);}
if (cookie[0] == 'PASSWORD'){PASSWORD = replaceChars(cookie[1]);}
if (cookie[0] == 'GROUPS'){GROUPS = replaceChars(cookie[1]);}
if (cookie[0] == 'ROLE'){ROLE = replaceChars(cookie[1]);}
if (cookie[0] == 'RANK'){ROLE = replaceChars(cookie[1]);}
}
function replaceChars(entry) {
out = "+"; // replace this
add = " "; // with this
temp = "" + entry; // temporary holder
while (temp.indexOf(out)>-1) {
pos= temp.indexOf(out);
temp = "" + (temp.substring(0, pos) + add + 
temp.substring((pos + out.length), temp.length));
}
return temp;
}
var beginShift = "";var endShift = "";var isShift = "";var fileListLimit = 12;
function doShiftCheck(e,i) {
isShift = "no";
if (window.event.shiftKey){isShift = "yes";}
if (isShift == "yes"){
if((beginShift)&&(endShift)){endShift = "";beginShift = "";}
if (beginShift){endShift = i;}else{beginShift = i;}
if((beginShift)&&(endShift)){
toggleCheckAll();
if (document.forms['keys'].FILE[endShift-1].checked){
document.forms['keys'].FILE[endShift-1].checked = false;
}else{
document.forms['keys'].FILE[endShift-1].checked = true;
}
}
}
//setBGColors();
}///////////////////////
function setBGColors(){
var from = 1;
var to = document.forms['keys'].FILE.length;
for(x=from;x<=to;x++){
if (document.forms['keys'].FILE[x-1].checked){
window["myBG"+x+"A"].bgColor = 'AA0000';
}else{
//changeBG("myBG"+x+"A",'');
window["myBG"+x+"A"].bgColor = '';
}
}
}////////////////////////
function toggleCheckAll(){
if (endShift == 'all'){
beginShift = 0;
endShift = document.forms['keys'].FILE.length;
}
///document.forms['keys'].FILE.checked = true;
var from = beginShift;
var to = endShift;
//alert(from+"..."+to);
for(x=from;x<to;x++){
if (document.forms['keys'].FILE[x].checked){
document.forms['keys'].FILE[x].checked = false;
}else{
document.forms['keys'].FILE[x].checked = true;
}
}
}///////////////////////
//-->