function SubmitWithValidation(){
	if (objHTTP1.readyState == 4 || objHTTP1.readyState == 0) {		
		var Name=document.getElementById('CommentName').value;
		var Email=document.getElementById('CommentEmail').value;
		var Website=document.getElementById('CommentWebsite').value;
		var Comment=document.getElementById('CommentMessage').value;
		var EmailMe=document.getElementById('EmailMe').value;
		if (
			Validation('CommentName','NameFormat',4,150,null)=='true'
			&& Validation('CommentEmail','Email',6,150,null)=='true'
			&& Validation('CommentWebsite','Url',0,150,null)=='true'
			&& Validation('CommentMessage','TextField',5,5000,null)=='true'
		){		
			objHTTP1.open('POST','/AddComment/',true);
			objHTTP1.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
			var MyData='Name='+encodeURIComponent(Name)+'&Email='+Email+'&Website='+Website+'&Comment='+encodeURIComponent(Comment)+'&EmailMe='+EmailMe+'&Mode='+Mode+'&ItemID='+ItemID;
			objHTTP1.onreadystatechange=HandleSubmitComment;
			document.getElementById('SendAjaxData').style.display='block';
			objHTTP1.send(MyData);
		}
	}
}