// JavaScript Document

function email (p3, p2, p4, p1)
{
	eml = p1+p2+"@"+p3+p4;
	return eml;
}

function show_addr (login, sc)
{
	document.write (email(p3, p2, p4, p1));
}

function process_addr (p3, p2, p4, p1)
{
	eml = "mailto:" + email(p3, p2, p4, p1);
	window.location.href = eml;
}

function explode( delimiter, string ) {    // Split a string by string
    // 
    // +   original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
    // +   improved by: kenneth
    // +   improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net)
 
    var emptyArray = { 0: '' };
 
    if ( arguments.length != 2
        || typeof arguments[0] == 'undefined'
        || typeof arguments[1] == 'undefined' )
    {
        return null;
    }
 
    if ( delimiter === ''
        || delimiter === false
        || delimiter === null )
    {
        return false;
    }
 
    if ( typeof delimiter == 'function'
        || typeof delimiter == 'object'
        || typeof string == 'function'
        || typeof string == 'object' )
    {
        return emptyArray;
    }
 
    if ( delimiter === true ) {
        delimiter = '1';
    }
 
    return string.toString().split ( delimiter.toString() );
}

function showHideLoginForm()
{
	if(document.getElementById("hidden_auth_form"))
	{
		var auth_form = document.getElementById("hidden_auth_form");
		
		if(auth_form.style.display == "none" || auth_form.style.display == "")
			auth_form.style.display = "block";
		else
			auth_form.style.display = "none";
	}
}

function hideLoginAuthForm()
{
	if(document.getElementById("hidden_auth_form"))
		document.getElementById("hidden_auth_form").style.display = "none";
}
