var display = testlayer ? 'block' : 'none';
document.write('<div id="testlayer" style="position:absolute;z-index:10;top:0px;right:0px;width:300px;height:600px;background-color:beige;overflow-y:auto;padding:5px;display:'+display+';"></div>');

function addToTestlayer(text) {
    if(!testlayer){
        return;
    }
    document.getElementById('testlayer').innerHTML += '&bull;&nbsp;' + text + '<br/>';
}
function clearTestlayer() {
    document.getElementById('testlayer').innerHTML = '';
}


