
function disvalid(){
	if(document.getElementById('comments').value.length < '1'){
		alert("Please Enter the comments");
		document.getElementById('comments').focus();
		return false;
	}
	if(document.getElementById('disname').value==''){
		alert("Please Enter the name");
		document.getElementById('disname').focus();
		return false;
	}
	if(document.getElementById('disname').value=='Anonymous'){
		alert("Please Enter the name");
		document.getElementById('disname').value='';
		document.getElementById('disname').focus();
		return false;
	}
	if(document.getElementById('disemail').value==''){
		alert("Please Enter the email");
		document.getElementById('disemail').focus();
		return false;
	}
	if(document.getElementById('disemail').value=='test@test.com'){
		alert("Please Enter the email");
		document.getElementById('disemail').value='';
		document.getElementById('disname').focus();
		return false;
	}
	var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
	var address = document.getElementById('disemail').value;	
	if(reg.test(address) == false) {
	alert('Invalid email address');
	document.getElementById('disemail').focus();
	return false;
	}
	if(document.getElementById('security_code').value==''){
		alert("Please Enter the security code");
		document.getElementById('security_code').focus();
		return false;
	}
}
function quesvalid(){
	if(document.getElementById('comments').value.length < '2'){
		alert("Please Enter the question");
		document.getElementById('comments').focus();
		return false;
	}
	if(document.getElementById('security_code').value==''){
		alert("Please Enter the security code");
		document.getElementById('security_code').focus();
		return false;
	}
}
function postvalid(){
	if(document.getElementById('comments').value.length < '2'){
		alert("Please Enter the Post");
		document.getElementById('comments').focus();
		return false;
	}
	if(document.getElementById('security_code').value==''){
		alert("Please Enter the security code");
		document.getElementById('security_code').focus();
		return false;
	}
}





