function is_object(cVar){ return typeof(cVar=="object") ? true : false; } function my_confirmLink(mgtext){ return confirm(mgtext); } function my_confirmSubmit(mgtext,targetform,setaction){ var agree=confirm("Megerősítés a következőhöz:\n"+mgtext); if (agree){ if(setaction) eval("document.all."+targetform+".action='"+setaction+"'"); eval("document.all."+targetform+".submit();"); return true ; }else{ return false ; } } function my_confirmSelect1(targetform,selectname){ var MSelVal = eval("document.all."+selectname+".value"); var MSelText = eval("document.all."+selectname+".options[document.all."+selectname+".selectedIndex].innerHTML"); if(MSelVal){ my_confirmSubmit(MSelText,targetform,MSelVal); } } function my_miniview(myurl,mytitle,mywidth,myheight){ window.open(myurl, mytitle, "personalbar=no,frame=no,toolbar=no,location=no,resizable=yes,status=no,scrollbars=no,menubar=no,width="+mywidth+",height="+myheight+""); } function my_imageview(myimgurl,mytitle,mywidth,myheight){ pichview = window.open('Pv', 'Pv', "personalbar=no,frame=no,toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width="+mywidth+",height="+myheight+"",false); pichview.document.write(""); pichview.document.close(); pichview.focus(); } var OBS_ocnt = 0; function OBS_hide(cvb){ eval("clearTimeout(document.all."+cvb+".itCloseTimer);"); eval("document.all."+cvb+".itCloseTimer = setTimeout(\"document.all."+cvb+".style.display='none'\", 400)"); eval("clearTimeout(document.all."+cvb+".itOpenTimer);"); OBS_ocnt_dec('"+cvb+"'); } function OBS_writeToData(vTarget,vData){ pichview = window.open('Pv', 'Pv', "personalbar=no,frame=no,toolbar=no,location=no,resizable=yes,status=no,scrollbars=yes,menubar=no,width=400,height=300",false); pichview.document.write(unescape(vData)); } function OBS_show(cvb){ eval("clearTimeout(document.all."+cvb+".itOpenTimer);"); eval("document.all."+cvb+".itOpenTimer = setTimeout(\"document.all."+cvb+".style.display=''\", 400)"); eval("clearTimeout(document.all."+cvb+".itCloseTimer);"); OBS_ocnt_inc('"+cvb+"'); } function OBS_ocnt_inc(){ OBS_ocnt++; window.status=OBS_ocnt; if(00) { for (i=0; i< coll.length; i++) coll(i).runtimeStyle.visibility = 'hidden'; } /* var coll = document.all.tags("IFRAME"); if (coll.length>0) { for (i=0; i< coll.length; i++) coll(i).runtimeStyle.visibility = 'hidden'; } */ } } function MME_Cor(sObj,tObj){ tObj.style.top = sObj.offsetTop + sObj.offsetHeight-9; tObj.style.left = sObj.offsetLeft+5; } function OBS_ocnt_dec(){ OBS_ocnt--; window.status=OBS_ocnt; if(0==OBS_ocnt){ var coll = document.all.tags("SELECT"); if (coll.length>0) { for (i=0; i< coll.length; i++) coll(i).runtimeStyle.visibility = 'visible'; } /* var coll = document.all.tags("IFRAME"); if (coll.length>0) { for (i=0; i< coll.length; i++) coll(i).runtimeStyle.visibility = 'visible'; } */ } } function OBS_ChangeLocation(cLink,cTarget){ if(cTarget=='_self' | cTarget==''){ window.open( cLink,'_self'); } } function CM_over(obj){ obj.cells[0].className = "CMIcon1Over"; obj.cells[1].className = "CMTextOver"; obj.cells[2].className = "CMIcon2Over"; } function CM_out(obj){ obj.cells[0].className = "CMIcon1"; obj.cells[2].className = "CMIcon2"; obj.cells[1].className = "CMText"; } function OBS_ChBg(tObj,tColor){ tObj.runtimeStyle.backgroundColor=tColor; } function OBS_ClrBg(tObj){ tObj.runtimeStyle.removeAttribute('backgroundColor'); } function my_tv_colapse(SelTag,onDir){ if(SelTag.style.display=='none'){ }else{ } } function onHiOpc(anoer){ anoer.style.filter = 'Alpha(Opacity=100)'; } function onLoOpc(anoer){ anoer.style.filter = 'Alpha(Opacity=60)'; } function escape_minimal(mpars){ var mparse = new String(mpars); re = /%/ig; mparse = mparse.replace(re,"%25"); re = /"/ig; mparse = mparse.replace(re,"%22"); re = /'/ig; mparse = mparse.replace(re,"%27"); re = /`/ig; mparse = mparse.replace(re,"%60"); return mparse; } // %27 %22 %60 %25 // ' " ` % /* */ function SetCookie (name, value) { var argv = SetCookie.arguments; var argc = SetCookie.arguments.length; var expires = (argc > 2) ? argv[2] : null; var path = (argc > 3) ? argv[3] : null; var domain = (argc > 4) ? argv[4] : null; var secure = (argc > 5) ? argv[5] : false; document.cookie = name + "=" + escape (value) + ((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + ((path == null) ? "" : ("; path=" + path)) + ((domain == null) ? "" : ("; domain=" + domain)) + ((secure == true) ? "; secure" : ""); } function getCookieVal(offset) { var endstr = document.cookie.indexOf (";", offset); if (endstr == -1) endstr = document.cookie.length; return unescape (document.cookie.substring(offset, endstr)); } function GetCookie(name) { var arg = name+"="; var alen = arg.length; var clen = document.cookie.length; var i = 0; while (i < clen) { var j = i + alen; if (document.cookie.substring(i, j) == arg) return getCookieVal(j); i = document.cookie.indexOf(" ", i) + 1; if (i == 0) break; } return null; } var keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789+/="; function encode64(inp){ var out = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; do { chr1 = inp.charCodeAt(i++); //Grab the first byte chr2 = inp.charCodeAt(i++); //Grab the second byte chr3 = inp.charCodeAt(i++); //Grab the third byte enc1 = chr1 >> 2; enc2 = ((chr1 & 3) << 4) | (chr2 >> 4); enc3 = ((chr2 & 15) << 2) | (chr3 >> 6); enc4 = chr3 & 63; if (isNaN(chr2)) { enc3 = enc4 = 64; } else if (isNaN(chr3)) { enc4 = 64; } out = out + keyStr.charAt(enc1) + keyStr.charAt(enc2) + keyStr.charAt(enc3) + keyStr.charAt(enc4); chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = ""; } while (i < inp.length); return out; } function decode64(inp){ var out = ""; var chr1, chr2, chr3 = ""; var enc1, enc2, enc3, enc4 = ""; var i = 0; var base64test = /[^A-Za-z0-9\+\/\=]/g; if (base64test.exec(inp)) { //Do some error checking alert("There were invalid base64 characters in the input text.\n" + "Valid base64 characters are A-Z, a-z, 0-9, ´+´, ´/´, and ´=´\n" + "Expect errors in decoding."); } inp = inp.replace(/[^A-Za-z0-9\+\/\=]/g, ""); do { enc1 = keyStr.indexOf(inp.charAt(i++)); enc2 = keyStr.indexOf(inp.charAt(i++)); enc3 = keyStr.indexOf(inp.charAt(i++)); enc4 = keyStr.indexOf(inp.charAt(i++)); chr1 = (enc1 << 2) | (enc2 >> 4); chr2 = ((enc2 & 15) << 4) | (enc3 >> 2); chr3 = ((enc3 & 3) << 6) | enc4; out = out + String.fromCharCode(chr1); if (enc3 != 64) { out = out + String.fromCharCode(chr2); } if (enc4 != 64) { out = out + String.fromCharCode(chr3); } chr1 = chr2 = chr3 = ""; enc1 = enc2 = enc3 = enc4 = ""; } while (i < inp.length); return out; }