var cm=null;
document.onclick = new Function("show(null)")

function getPos(el,sProp) {
    var iPos = 0
    while (el!=null) {
        iPos+=el["offset" + sProp]
        el = el.offsetParent
    }
    return iPos
}

function show(el,m) {
        if (m) {
                m.style.display='block';
                m.style.pixelLeft = getPos(el,"Left");
                m.style.pixelTop = getPos(el,"Top") + el.offsetHeight;
				m.style.zIndex = 200;
        }
        if ((m!=cm) && (cm)) cm.style.display='none'
        cm=m
}

function isset(varname)  
{
    if(typeof( window[ varname ] ) != undefined) 
    {
        return true;
    }
    else 
    {
        return false;
    }
}

function checkMail(strEmail)
{
	var x = strEmail;
	var filter  = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (filter.test(x))
	{
		return false;
	}
	else
	{
		return true;
	}
}

function spamproof(strEmail)
{
	window.open("mailto:"+strEmail.replace("-NOSPAM-",""));
}