"Recently," Jon Beebe writes, "I was asked to bid a mobile version of an existing web site for a Credit Union."

"I started by inspecting their current site to see how much could be reused, and was instantly greeted by embeded javascript on the page"

<script type="text/javascript">
var c
var t
var WasDogKicked
var     CurrentTop
var     CurrentLeft

function sessionTimeout() {
        WasDogKicked = parent.document.getElementById('AutoLogoffKicker');   
        if (WasDogKicked.value > 0)     {
                t=setTimeout("sessionTimeout()",360000)
                WasDogKicked.value = 0;
        }
        else {
        thisobj = parent.document.getElementById('TimeoutDIV');
                CurrentTop = parent.document.body.scrollTop + 40
                CurrentLeft = parent.document.body.scrollLeft + 70
                thisobj.style.top = CurrentTop;
                thisobj.style.left = CurrentLeft;
        thisobj.style.display = 'block';
        timedCount();
        }
}

if (0!=0) {
        t=setTimeout("sessionTimeout()",360000)
        }
        
var c1=60
var t1
function timedCount()
        {
                if (c1>0) {
                        WasDogKicked = parent.document.getElementById('AutoLogoffKicker');   
                        if (WasDogKicked.value > 0)     {
                                WasDogKicked.value = 0;
                                HideWindow();
                        }
=== snipped ===

Jon continues, "maybe for the mobile version I'll go with WasCatKicked?"

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!