[color gray]//---------------------------------------------------------------------------
// Check to see if dubugging is enabled :
//---------------------------------------------------------------------------
[/color][b]if(!eval(debug)==true)
var debug = false;;
[/b][color gray]//---------------------------------------------------------------------------
// Let's load some JavaScripts :
//---------------------------------------------------------------------------
[/color][b]function load_script(filename) {
var script = document.createElement('script');
script.type = 'text/javascript';
script.src = filename;
document.getElementsByTagName('head')[0].appendChild(script);
if(debug)
monitor(dynScripts, filename);
}
[/b][color gray]//---------------------------------------------------------------------------
// Let's load some Stylesheets :
//---------------------------------------------------------------------------
[/color][b]function load_stylesheet(filename) {
var css = document.createElement('link');
css.rel = 'stylesheet';
css.type = 'text/css';
css.href = filename;
document.body.appendChild(css);
if(debug)
monitor(dynStyles, filename);
}
[/b][color gray]//---------------------------------------------------------------------------
// Watch the status - IF enabled :
//---------------------------------------------------------------------------
[/color][b]function stat() {
[/b][color gray]// IF debugging is enabled, then dump via the dynStatus() function :[/color][b]
if(debug)
dynStatus();
[/b][color gray]// ELSE say that debugging is disabled ::[/color][b]
else
alert('Debug not enabled');
}
[/b]