function GGHandleScript(Script) { var ary = 0 if (Script != "") { for (Count=0; Count < Script.length; Count++) { TempChar=Script.substring (Count, Count+1); if (TempChar==".") { ary = 1 } } switch(ary) { case 1: var scripts = Script.split("."); break; case 0: var scripts=new Array() scripts[0] = "bump"; scripts[1] = Script; break; } for (i = 0; i < scripts.length; i++ ) { switch(scripts[i].substring(0,1)){ case "0": case "1": case "2": case "3": case "4": case "5": case "6": case "7": case "8": case "9": frames['frmGetquestions'].location.replace("core/getquestion.asp?qno=" + scripts[i]) break; case "x": parent.location.href="index.asp?stage=offline" break; } } } }