// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function ShowHide(id) {
    obj = document.getElementById(id);
    if (obj.style.display != 'none'){
	   obj.style.display = 'none'; 		
    }
    else {
 	   obj.style.display = 'inline';

    }
}

function generate_address( username, host, tld ) {
    var atsign = "&#64;";
    var addr = username + atsign + host + tld;
    document.write("<" + "a" + " " + "href=" 
					+ "mail" + "to:" + addr + ">" 
					+ addr + "<\/a>");
}
