﻿/** * Generic client library * @version 1.0 (15-03-2007) * @author Gabriele Falcioni (postmaster AT strafnet DOT com) */function decodeEmail(userIdAsCommaSeparatedStrings) {	var addr = "";	for (var i = 0; i < arguments.length; ++i) {		switch (i) {		case 0:			break;		case 1:			addr += "@";			break;		default:			addr += ".";		}		addr += arguments[i];	}	var markup = "<a href=\"mailto:" + addr + "\">" + addr + "</a>";	document.write(markup);}function openWindow(url,name,width,height) {	var attrs="";	if (width != null && width != "") {		attrs += "innerWidth=" + String(width);	}	if (height != null && height != "") {		if (attrs.length > 0) attrs += ",";		attrs += "innerHeight=" + String(height);	}	if (attrs.length > 0) attrs += ",";	attrs += "titlebar,resizable,scrollbars";	window.open(url,name,attrs);	return false;}function closeWindow() {	window.close();	return false;}function goBack() {	window.history.back();	return false;}function disableEventHandler(e) {	if (!e) var e = window.event;	e.cancelBubble = true;	if (e.stopPropagation) e.stopPropagation();}function disableContextMenu() {	document.oncontextmenu = disableEventHandler;}