/**
 *  Function to view a section within an XHTML page.  Closes other
 *  sections when a new section is opened.
 */

function toggleView(obj,arr) {

     if (arr) {for (var i = 0; i < arr.length; i++) {

          var svael = document.getElementById(arr[i]);
          svael.style.display = 'none';

     }}

     var el           = document.getElementById(obj);
     el.style.display = 'block';

}

/**
 *  Function to view hide all sections within an XHTML page.
 */

function toggleHideAll(arr) {

     if (arr) {for (var i = 0; i < arr.length; i++) {

          var svael = document.getElementById(arr[i]);
          svael.style.display = 'none';

     }}

}

/**
 *  Function to execute the system namespace xmodawct_truecolorsajax
 */

function doTrueColorsAjax(cssdiv,selval,sid) {

     if (!cssdiv)  {return;}
     if (!selval)  {return;}
     if (!sid)  {return;}

     var requestTrueColorsAjax = new Request({method: 'get', url: 'http://www.awishcometrue.com/index.php'});

     requestTrueColorsAjax.send('app=core&ns=xmodawct_truecolorsajax&sid=' + sid + '&cssdiv=' + cssdiv + '&selval=' + selval);

     return;

}
