var $i = function(_id) { return document.getelementbyid(_id); }; var $f = function(_id) { var tid = _id; var tobj = null; try { tobj = document.frames[tid]; } catch(e){}; if (tobj == null) { try { tobj = $i(tid).contentwindow; } catch(e){}; }; return tobj; }; var attachelementevent = function(_obj, _eventname, _handler, _object) { var tobj = _obj; var teventname = _eventname; var thandler = _handler; var teventhandler = _handler; var tobject = _object; if (tobj) { if (tobject) { teventhandler = function(e) { thandler.call(tobject, e); }; }; try {tobj.addeventlistener(teventname, teventhandler, false);} catch(e) { if (teventname == 'keypress') tobj = tobj.document; tobj.attachevent('on' + teventname, teventhandler); }; }; }; var cinstr = function(_strers, _str, _spstr) { var tstrers = _strers; var tstr = _str; var tspstr = _spstr; var tbool = false; if (tstrers) { if (tstrers.indexof(tspstr + tstr + tspstr) != -1) tbool = true; else { if (tstrers.substr(0, tstrers.indexof(tspstr)) == tstr) tbool = true; else { if (tstrers.substr(tstrers.lastindexof(tspstr) + tspstr.length) == tstr) tbool = true; }; }; }; return tbool; }; var createscript = function(_stroid, _strid, _strurl) { var tstroid = _stroid; var tobj = $i(tstroid); if (tobj) { var tstrid = _strid; var tstrurl = _strurl; var tscript = document.createelement('script'); tscript.type = 'text/javascript'; tscript.id = tstrid; tscript.src = tstrurl; tobj.appendchild(tscript); }; }; var iescape = function(_strers) { var tstrers = _strers; tstrers = encodeuricomponent(tstrers); return tstrers; }; var nll = function(_strers) { }; var request = new function() { var tstrers = location.href; var tiname, tivalue, ticount; var tinum = tstrers.indexof('?'); tstrers = tstrers.substr(tinum + 1); var tarrtmp = tstrers.split('&'); for(ticount = 0; ticount < tarrtmp.length; ticount ++) { tinum = tarrtmp[ticount].indexof('='); if(tinum > 0) { tiname = tarrtmp[ticount].substring(0, tinum); tivalue = tarrtmp[ticount].substr(tinum + 1); this[tiname] = tivalue; }; }; }; var setinnerhtml = function(_obj, _strers) { var tobj = _obj; var tstrers = _strers; if (tobj) { tobj.innerhtml = tstrers; var tobjs = tobj.getelementsbytagname('dfn'); for(ti = 0; ti < tobjs.length; ti ++) { try { eval(tobjs[ti].getelementsbytagname('textarea').item(0).value); } catch(e) {}; }; }; };