function ConcatMail(addy, domain, end, cssclass, filler)
{
    var mail;
    mail = addy + "@" + domain + "." + end;

    document.write("<a href=\"mailto:");
    document.write(mail);
    document.write("\"");
    if (cssclass != "") {
        document.write(" class=\"");
        document.write(cssclass);
        document.write("\"");
    }
    document.write(">");
    if (filler != "") {
        document.write(filler);
    }
    else {
        document.write(mail);
    }
    document.write("</a>");
}

function popup(url, name)
{
  params = makeParam('757','655');
  popup_win = window.open(url,name,params);
}

function makeParam(width, height)
{
  return "width=" + width + ",height=" + height + ",resizable=yes,toolbar=no,scrollbars=yes,status=no"
}

function updatePic(url)
{
  var source = url;
  var newPic = "<img src=\"../" + source + "\" alt=\"\" />";
  document.getElementById("pic").innerHTML = newPic;
}

function createFAQ()
{
    var faqList = document.getElementById("faqList");
    var faqListLists = faqList.childNodes;
    for (i = 0; i < faqListLists.length; i++)
    {
        faqListLists[i].style.cursor = "pointer";
        addEvent(faqListLists[i], "click", showRelatingAnswer);
        faqListLists[i].childNodes[1].style.display = "none";
    }
}

function showRelatingAnswer()
{
    var faqListLists = this.parentNode.childNodes;
    for (i = 0; i < faqListLists.length; i++)
    {
        faqListLists[i].style.fontWeight = "normal";
        faqListLists[i].childNodes[1].style.display = "none";
        faqListLists[i].style.listStyleImage = "url('../img/plus.gif')";
    }
    this.style.listStyleImage = "url('../img/minus.gif')";
    this.style.fontWeight = "bold";
    this.style.borderColor = "c0c0c0";
    this.style.backgroundColor = "#FBFBFB";
    this.childNodes[1].style.display = "block";
    this.childNodes[1].style.fontWeight = "normal";
    
}

function addEvent( obj, type, fn ) { 
  if ( obj.attachEvent ) { 
    obj['e'+type+fn] = fn; 
    obj[type+fn] = function(){obj['e'+type+fn]( window.event );} 
    obj.attachEvent( 'on'+type, obj[type+fn] ); 
  } else 
    obj.addEventListener( type, fn, false ); 
} 
