3 if(document.activeElement.tagName !=
'INPUT'){
4 evt = (evt) ? evt : ((window.event) ? window.event :
'');
5 var ky = evt.keyCode ? evt.keyCode : evt.which;
6 if(!evt.ctrlKey && !evt.altKey && !evt.shiftKey){
20 h = Math.floor(t/3600);
21 m = Math.floor((t%3600)/60);
27 $(
'timing').innerHTML = h +
':' + m +
':' +s;
29 setTimeout(
"updateTime(t,tm)",1000);
32 window.location.reload();
38 if($(
'timer') && ms>=itv) {
40 var sec = Math.floor(ms/1000);
41 var dsec = Math.floor((ms%1000)/100);
42 $(
'timer').innerHTML = sec +
'.' + dsec;
44 clearInterval(timerid);
52 timerid = setInterval(
"demiSecTimer()",itv);
73 ugd = $(
'male').
checked ?
'm' :
'f';
74 uinum = $(
'icon').selectedIndex;
75 $(
'userIconImg').innerHTML =
'<img src="img/' + ugd +
'_' + uinum +
'.gif" alt="' + uinum +
'">';
78 dngd = $(
'male').
checked ?
'm' :
'f';
79 dninum = $(
'dnicon').selectedIndex;
80 $(
'dniconImg').innerHTML =
'<img src="img/' + dngd +
'_' + dninum +
'.gif" alt="' + dninum +
'">';
84 $(
'notice').innerText = sNotice;
227 var oXmlHttp =
zXmlHttp.createRequest();
229 oXmlHttp.open(
"post", sendto,
true);
230 oXmlHttp.setRequestHeader(
"Content-Type",
"application/x-www-form-urlencoded");
231 oXmlHttp.onreadystatechange =
function () {
232 if (oXmlHttp.readyState == 4) {
233 if (oXmlHttp.status == 200) {
240 oXmlHttp.send(sBody);
244 shwData = sdata.parseJSON();
246 window.location.href = shwData[
'url'];
247 }
else if(!shwData[
'innerHTML']) {
248 $(
'error').innerHTML=sdata;
251 sDv = shwData[
'value'];
257 sDi = shwData[
'innerHTML'];
260 if(sDi[
'id'] !==
''){
261 $(
id).innerHTML = sDi[
id];
263 $(
id).innerHTML =
'';
267 sDd = shwData[
'display'];
271 $(
id).style.display = sDd[
id];
275 if(shwData[
'timer'] && typeof(timerid)==
'undefined'){
280 window.location.reload();
288 var oXmlHttp =
zXmlHttp.createRequest();
290 oXmlHttp.open(
"post",
"chat.php",
true);
291 oXmlHttp.setRequestHeader(
"Content-Type",
"application/x-www-form-urlencoded");
292 oXmlHttp.onreadystatechange =
function () {
293 if (oXmlHttp.readyState == 4) {
294 if (oXmlHttp.status == 200) {
301 oXmlHttp.send(sBody);
302 if(mode ==
'send'){$(
'chatmsg').
value =
'';$(
'sendmode').
value =
'ref';}
304 refchat = setTimeout(
"chat('ref',rtime)",rtime);
309 chatdata = jsonchat.parseJSON();
310 if(chatdata[
'msg']) {
311 $(
'lastcid').
value=chatdata[
'lastcid'];
313 for(var cid in chatdata[
'msg']) {
314 if(cid ==
'toJSONString') {
continue;}
315 newchat += chatdata[
'msg'][cid];
317 $(
'chatlist').innerHTML = newchat + $(
'chatlist').innerHTML;
322 var sourceObj = typeof oSourceObj ==
"string" ? document.getElementById(oSourceObj) : oSourceObj;
323 var targetObj = typeof oTargetObj ==
"string" ? document.getElementById(oTargetObj) : oTargetObj;
324 var openTip = oOpenTip ||
"";
325 var shutTip = oShutTip ||
"";
326 if(targetObj.style.display!=
"none"){
328 targetObj.style.display=
"none";
329 if(openTip && shutTip){
330 sourceObj.innerHTML = shutTip;
333 targetObj.style.display=
"block";
334 if(openTip && shutTip){
335 sourceObj.innerHTML = openTip;
function demiSecTimerStarter(msec)
function getRequestBody(oForm)
function chat(mode, reftime)
function openShutManager(oSourceObj, oTargetObj, shutAble, oOpenTip, oShutTip)
< inputtype="radio"name="tplrefresh"value="0"<?phpif(!$tplrefresh){?> checked
function postCmd(formName, sendto)
function updateTime(timing, mode)
function showNotice(sNotice)
function showChatdata(jsonchat)
function itemmixchooser()