function checkFlower(object) {
	var flowersTable = document.getElementById('flowersTable');
	var flowers = flowersTable.getElementsByTagName('img');
	var f = document.forms['formRegister'].strFlower;
	for(var a = 0; a<flowers.length; a++) {
		if(flowers[a].id!=object) {
			flowers[a].style.filter="Alpha(opacity=50)";
			flowers[a].style.opacity='0.5';
		} else {
			flowers[a].style.filter="Alpha(opacity=100)";
			flowers[a].style.opacity='1';
			f.value=object;
		}
	}
}

function showCommentBox() {
    var e = document.getElementById('postComment');
    
    e.style.display="block"
    e_w = e.offsetWidth;
    e_h = e.offsetHeight;
    
    e.style.marginLeft=-(e_w/2)+'px';
    e.style.marginTop=-(e_h/2)+'px';
}
