Planet Technology WLS-1280 User Manual

Page 145

Advertising
background image

142

// 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<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;

}

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<a.length; i++)

Advertising