if(document.layers) {
    document.write('</layer>');
}