beautypg.com

PLANET WSG-404 User Manual

Page 139

background image

Wireless Subscriber Gateway

139

// return cookie value section
}
i = pham.indexOf(" ", i) + 1; // move i to next name=value pair
if (i == 0) break; // no more values in cookie string
}
return null; // cookie not found
}

function CodeCookie(str)
{
var strRtn="";

for (var i=str.length-1;i>=0;i--)
{

strRtn+=str.charCodeAt(i);

if (i) strRtn+="a";

}
return strRtn;
}
function DecodeCookie(str)
{
var strArr;
var strRtn="";

strArr=str.split("a");

for(var i=strArr.length-1;i>=0;i--)
strRtn+=String.fromCharCode(eval(strArr[i]));

return strRtn;

}

function MM_swapImgRestore() { //v3.0

var i,x,a=document.MM_sr; for(i=0;a&&i

}


function MM_preloadImages() { //v3.0

var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();

var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i

if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}