var fixContainerHeight=function(){
	var ch=$('main-wrap').getHeight();
	ch=ch+250;
	var cc=Math.floor(ch/476);
	var newCH=(cc+1)*476+238;
	//$('container').style.height=newCH+'px';

}

var submitComment=function(){
		if($('commentName').value==''){ 
			
			$('commentName').style.border='solid 1px red';
			
			alert('Molimo upišite vaše ime');
			return false;
		}
		
		if($('commentName').value==''){ 

			$('commentName').style.border='solid 1px red';

			alert('Molimo upišite vaše ime');
			return false;
		}
		
		if($('commentText').value==''){ 

			$('commentText').style.border='solid 1px red';

			alert('Molimo upišite vaš komentar');
			return false;
		}
		
		$('commentForm').submit();

}