// JavaScript Document
	// blog comments ////
	function $(id) {
	return document.getElementById(id);
}
// blog comments ////
function commentPreview() {
	$('comment-msg').style.display = 'none';
	$('yourcomment').style.display = 'block';
	$('yoururl').href = document.sform.url.value.replace(/[<>]/g,'');
	$('yourname').innerHTML = document.sform.name.value.replace(/[<>]/g,'');
	commtxt = document.sform.coment.value;
	commtxt = commtxt.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
	commtxt = commtxt.replace(/\n/g,'<br>');
	$('yourtext').innerHTML = commtxt;
	
}
					function toggleLayer(whichLayer, checkwhat) {									
					if (document.getElementById)
					{					
						var style2 = document.getElementById(whichLayer).style;
						if (document.getElementById(checkwhat).checked) {							
							style2.display = "inline";							
						} else {							
							style2.display = "none";
						}
					}				
				}
