//launches a new window in the center of the screen
function newWin(url, w, h, name) 
{
l = (screen.availWidth-10 - w) / 2;
t = (screen.availHeight-20 - h) / 2;

features = "width="+w+",height="+h+",left="+l+",top="+t;
features += ",screenX="+l+",screenY="+t;
features += ",scrollbars=1,resizable=1,location=0";
features += ",menubar=0,toolbar=0,status=0";

var myWin = window.open(url, name, features);
myWin.focus();
}

//toggles the visibility of a faq row
function toggleFaq(faqid)
{
    if(document.getElementById("Faq" + faqid).style.display == "none")
    {
        document.getElementById("Faq" + faqid).style.display = "";
        //document.getElementById("FaqImage" + faqid).src = "/images/faq/minus.gif";
    }
    else
    {
        document.getElementById("Faq" + faqid).style.display = "none";
        //document.getElementById("FaqImage" + faqid).src = "/images/faq/plus.gif";
    }
}
