window.onload = onLoad;

                function onLoad()
                {
                    if (document.getElementById("chkViewAll")!=null){var sa = document.getElementById("chkViewAll");
                    if(typeof(IsPrinterFriendly) == "undefined") sa.checked = false;
                    else sa.checked = true;}
                }

                function toggleAll()
                {
                    var sa = document.getElementById("chkViewAll");
                    var ch = sa.checked;
                    toggleQuestions(ch);
                }

                function toggleQuestions(checked)
                {
                    var secCount = 5;
                    var faqEntryCount = 46;
                    for(var j=1; j<=secCount; j++)
                    {
                        for (var i=0; i<=faqEntryCount; i++)
                        {
	                        var title = document.getElementById("title" + j + i);
                            if(checked == true)
                               expandQuestion(j + i);
                            else
                               collapseQuestion(j + i);
                        }
                    }
                    if(checked == false)
                    {
                      var sa = document.getElementById("chkViewAll");
	                    sa.checked = false;
                    }
                }


                function toggleQuestion(id)
                {
                   var icon = document.getElementById("icon"+id);
                    if (icon == null) return;
                    var title = document.getElementById("title"+id);
                    if (title == null) return;
                    var ans = document.getElementById("answer"+id);
                    if (ans == null) return;
                    var que = document.getElementById("question"+id);
                    if (ans.style.display == '')
                    {
                      if (que != null) que.style.display = 'none';
	                    ans.style.display = 'none';
	                    var sa = document.getElementById("chkViewAll");
	                    sa.checked = false;
	                    icon.src='images/faq_open.gif'
                    }
                    else
                    {
                        if (que != null) que.style.display = '';
	                    ans.style.display = '';
	                    icon.src='images/faq_close.gif'
                    }
                }

                function expandQuestion(id)
                {
                    var title = document.getElementById("title"+id);
                    if (title == null) return;
                    var ans = document.getElementById("answer"+id);
                    if (ans == null) return;
                    var icon = document.getElementById("icon"+id);
                    if (icon == null){
                        return;
                     }
                     else{
                        icon.src='images/faq_close.gif'
                     }
                    var que = document.getElementById("question"+id);
                    if (que != null) que.style.display = '';
                    ans.style.display = '';
                }

                function collapseQuestion(id)
                {
                    var title = document.getElementById("title"+id);
                    if (title == null) return;
                    var ans = document.getElementById("answer"+id);
                    if (ans == null) return;
                    var icon = document.getElementById("icon"+id);
                    if (icon == null){
                        return;
                     }
                     else{
                        icon.src='images/faq_open.gif'
                     }
                    var que = document.getElementById("question"+id);
                    
                    if (que != null) que.style.display = 'none';
                    ans.style.display = 'none';
                }