Warning: session_start() [function.session-start]: open(/var/chroot/home/content/j/p/l/jplonergan/tmp/sess_5fa34cca621f6e4156bc9e8fe3060ea8, O_RDWR) failed: No such file or directory (2) in /home/content/j/p/l/jplonergan/Lonergan/main.php on line 26
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/j/p/l/jplonergan/Lonergan/main.php:26) in /home/content/j/p/l/jplonergan/Lonergan/main.php on line 26
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/j/p/l/jplonergan/Lonergan/main.php:26) in /home/content/j/p/l/jplonergan/Lonergan/main.php on line 26
Warning: Cannot modify header information - headers already sent by (output started at /home/content/j/p/l/jplonergan/Lonergan/main.php:26) in /home/content/j/p/l/jplonergan/Lonergan/main.php on line 152
/*
Toggles the display property of an element and returns
1 if the element is visible or 0 if it is hidden.
*/
function ToggleView(ctrlId, viewId, textOn, textOff)
{
var ctrl = document.getElementById(ctrlId);
var view = document.getElementById(viewId);
if(view.style.display == 'block')
{
ctrl.innerHTML = textOn;
$('#'+viewId).hide('slow');
return 0;
}
else
{
ctrl.innerHTML = textOff;
$('#'+viewId).show('slow');
return 1;
}
}
/*
Pointless exercise function:
Formats a string with passed parameters:
fstring('{1} tells {2} to "{3}, {2}!"', 'foo', 'bar', 'go for a walk');
*/
function fstring()
{
var args = arguments;
return args[0].split(/[{}]/)
.map(
function(n){return (n.length==0 || isNaN(n) || args.length < n ? n : args[n]);
})
.join(''); }
Warning: Unknown: open(/var/chroot/home/content/j/p/l/jplonergan/tmp/sess_5fa34cca621f6e4156bc9e8fe3060ea8, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct () in Unknown on line 0