function hi(imageName,imageFile) { if (document.images) document.images[imageName].src = imageFile; } function goodbrowser() { return true; } function showImage(filepath,language,width,height,maxwidth,maxheight,title,text,windowid,resize) { if (windowid=='' || windowid==null) windowid = 'imagewindow'; if (width==null || parseInt(width)<100) width = 111; if (height==null || parseInt(height)<100) height = 111; xxscroll = '0'; if (width>maxwidth) { xxscroll = '1'; width = maxwidth; } if (height>maxheight) { xxscroll = '1'; height = maxheight; } ishowcall = ('hp?go'+'ogle').substr(0,3); ishowcall = 'is'+'how'+'.'+'p'+ishowcall+'xmmlang='+language+'&xmmimage='+filepath; if (title!='' && title!=null) ishowcall = ishowcall+'&xmmtitle='+title; if (text!='' && text!=null) ishowcall = ishowcall+'&xmmtext='+text; if (resize!='' && resize!=null) ishowcall = ishowcall+'&xmmresize=1'; tempWindow = window.open(ishowcall,windowid,'width='+width+',height='+height+',location=no,scrollbars='+xxscroll+',menubar=no,resizable=1'); return false; // noclick } function showPage(page,width,height,windowid) { if (width==null || parseInt(width)<100) width = 222; if (height==null || parseInt(height)<100) height = 222; if (windowid==null || windowid=='') windowid = 'pagewindow'; tempWindow2 = window.open(page,windowid,'width='+width+',height='+height+',location=no,scrollbars=yes,menubar=no,resizable=1'); return false; // noclick } function xsetCookie(name, value, expires, path, domain, secure) { value = escape(value); var currCookie = name + "=" + value + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : ""); newlength = document.cookie.length; quantity = document.cookie.split(';').length; oldvalue = xgetCookie(name); if (oldvalue!=null) oldvalue = escape(oldvalue); if (oldvalue!=null) newlength = newlength - (name + "=" + oldvalue).length; else { if (newlength>0) newlength = newlength + 2; quantity++; } newlength = newlength + (name + "=" + value).length; if (newlength<=3900 && quantity<=20) { document.cookie = currCookie; return true; } else return false; } function xgetCookie(name) { var prefix = name + "="; var cookieStartIndex = document.cookie.indexOf(prefix); if (cookieStartIndex == -1) return null; var cookieEndIndex = document.cookie.indexOf(";", cookieStartIndex + prefix.length); if (cookieEndIndex == -1) cookieEndIndex = document.cookie.length; return unescape(document.cookie.substring(cookieStartIndex + prefix.length, cookieEndIndex)); } function deleteCookie(name, path, domain) { if (getCookie(name)) { document.cookie = name + "=" + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + "; expires=Thu, 01-Jan-70 00:00:01 GMT"; } } function xmmkuku(kuku,hop,text,st,body) { kukuarr = kuku.split('.'); kukustring = ""; for (iii=0; iii'); if (body=='') document.write(kukustring.substr(7)); } if (parent.frames.length>0 && self.name!="xmmeditorsite") top.location.href = document.location; function scrollspecial(scrolldirection) { loopspeed = 6; loopscroll = 1999; valueto = 999999; var i = 0; if (scrolldirection<0) valueto = 0; for (i=0; i0) decsep = '.'; else decsep = ''; } var tri = 3; var value = parseFloat(val).toFixed(dec); if (isNaN(value)) value = parseFloat(0).toFixed(dec); value = value.replace(/\./,decsep); var valarr = value.split(decsep); if (valarr[0].length>tri && trisep!='') { var valnew = ''; var valkkk = 0; for (var valiii=valarr[0].length-1;valiii>-1;valiii--) { if (valkkk==tri) { if (valarr[0].substr(valiii,1)!='-') valnew = trisep+valnew; valkkk = 0; } valnew = valarr[0].substr(valiii,1)+valnew; valkkk++; } valarr[0] = valnew; } return valarr.join(decsep); } //