// JavaScript Document // General routines for Lewisham ECS // This function opens the correct branch of the menu // It requires a function reveal(menu) { if (document.getElementById) { var item = document.getElementById(menu).style; if (item.display == "block") { item.display = "none"; } else { item.display = "block" } return false } else { return true } } // This function assembles email addresses from broken parts // If there is no 'realname' it displays the email address // If there is no 'domainname' it uses lewisham.gov.uk // If there is no subject it uses 'Query from the ICT Advice Site' function display(realname,name,domainname,subject) { var sb_displayname = realname; var sb_domain = domainname; if (sb_domain == "") { sb_domain = "lewisham.gov.uk"} var sb_user = name; var sb_subject = subject; if (sb_subject == "") { sb_subject = "Query from the ICT Advice Site"} var sb_recipient = sb_user + "@" + sb_domain; var sb_url = "mailto:" + sb_recipient + "?subject=" + sb_subject; if (sb_displayname == "") { document.write(sb_recipient.link(sb_url)); } else { document.write(sb_displayname.link(sb_url)); } }