function getthoughtsnag()
{
var thoughtsnagpath="thoughtsnag.html"
snagwindow=window.open(thoughtsnagpath,"thoughtsnag","height=200, width=500, toolbar=0, menubar=0, directories=0, scrollbars=1, left=300, top=300");
snagwindow.focus()
}


function getsnaghome()
{
window.close();
var snaghomepath="http://secretcorridor.blogspot.com/";
homewindow=window.open(snaghomepath, "snaghome", "height=max, width=max, toolbar=1, menubar=1, directories=1, scrollbars=1");
homewindow.focus();
}


function loadthought()
{
newthoughtno = Math.ceil(Math.random()*43);
newthoughtimg = 'IMAGES/TCA' + newthoughtno.toString() + '.png';
document.getElementById('thoughtimg').src = newthoughtimg;

newbackgroundno = Math.ceil(Math.random()*4);
newbackgroundimg = "url('IMAGES/TCB" + newbackgroundno.toString() + ".png')";
document.getElementById('thoughtsframe').style.backgroundImage = newbackgroundimg;
}





