var EXIT_BAN_TIME = 3600;
var cookiepath = "/brisk/";
-var mlang_commons = { 'imgload_a' : { 'it' : 'Immagine caricate ',
+var mlang_commons = { 'imgload_a' : { 'it' : 'Immagini caricate ',
'en' : 'Loaded images ' },
'imgload_b' : { 'it' : '%.',
'en' : '%.' },
function $(id) { return document.getElementById(id); }
+function dec2hex(d, padding)
+{
+ var hex = Number(d).toString(16);
+ padding = typeof (padding) === "undefined" || padding === null ? padding = 2 : padding;
+
+ while (hex.length < padding) {
+ hex = "0" + hex;
+ }
+
+ return hex;
+}
+
function getStyle(x,IEstyleProp, MozStyleProp)
{
if (x.currentStyle) {
var val_el;
content = user_decorator(el);
- content += state_add(el[0]);
+ content += state_add(el[0],(typeof(el[2]) != 'undefined' ? el[2] : null));
return (content);
}
}
// alert("host: ["+host+"] path: ["+path+"]");
- if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/') {
+ if (url.substring(0,6) == 'http:/' || url.substring(0,7) == 'https:/' || url.substring(0,4) == 'ws:/') {
return (url);
}
else if (url.substring(0,1) == '/') {