<!--
function eaddr (name, srv, param) {
	var eml = "mailto:" + name +  "\@" + srv;
	if (param) {
		eml+="?"+param;
	}
	window.location.href (eml);
}

function setcssstylewithid(t, p, v) {
	var element;

	element = document.getElementById(t);

	if (element)
		eval('element.style.' + p + " = '" + v + "'");
}

function len(str) {

	return String(str).length;
}

function mid(str, start, len) {
	if (start < 0 || len < 0) return "";

	var iend, ilen = String(str).length;

	if (start + len > ilen)
        	iend = ilen;
	else
		iend = start + len;

	return String(str).substring(start, iend);
}

function instr(strsearch, charsearchfor) {
	for (i=0; i < len(strsearch); i++)
		if (charsearchfor == mid(strsearch, i, 1)) {

			return i;
		}

	return -1;
}

function deletecookie(name, url) {
	var ss = String(url).split("://");

	var ms = ss[1];

	var rs = ".";

	if (instr(ms, "@") != -1) {
		ss = ms.split("@");

		ms = ss[1];
	}

	if (mid(ms, 0, 4) == "www.") {
		ss = ms.split("www.");

		ms = ss[1];
	}

	if (instr(ms, "/") != -1) {
		ss = ms.split("/");

		ms = ss[0];
	}

	if (instr(ms, ":") != -1) {
		ss = ms.split(":");

		ms = ss[0];
	}

	rs = rs + ms;

	document.cookie = name + "=; expires=Wed, 03-Jan-90 00:00:01 GMT" + "; domain=" + rs + "; path=/";
}
// -->

