// JavaScript Document
function valid_form() {
	if(document.post_comment.user_name.value == null||document.post_comment.user_name.value == ""){
		alert("Please enter your name");
		document.post_comment.user_name.focus();
		return false;
	}else{
		if(document.post_comment.user_comment.value == null||document.post_comment.user_comment.value == ""){
			alert("Please enter your comment");
			document.post_comment.user_comment.focus();
			return false;
		}else{	
			if(document.post_comment.captcha_confirm.value == null||document.post_comment.captcha_confirm.value == ""){
				alert("Please enter your comment");
				document.post_comment.captcha_confirm.focus();
				return false;
			}else{	
				return true;
					
			}
		}
	}							
}

function valid_friend_form() {
	
	if(document.friend_form.user_name.value == null||document.friend_form.user_name.value == ""){
		alert("Please enter your name!");
		document.friend_form.user_name.focus();
		return false;
	}else{
		
		if(document.friend_form.user_email.value == null||document.friend_form.user_email.value == ""){
			alert("Please enter your email!");
			document.friend_form.user_email.focus();
			return false;
		}else{
			
			if(document.friend_form.friend_name.value == null||document.friend_form.friend_name.value == ""){
				alert("Please enter your friend name!");
				document.friend_form.friend_name.focus();
				return false;
			}else{
				
				if(document.friend_form.friend_email.value == null||document.friend_form.friend_email.value == ""){
					alert("Please enter your friend email!");
					document.friend_form.friend_email.focus();
					return false;
				}else{	
				
					if(document.friend_form.friend_comment.value == null||document.friend_form.friend_comment.value == ""){
						alert("Please enter your comment");
						document.friend_form.friend_comment.focus();
						return false;
					}else{	
						return true;
							
					}
				}
			}							
		}
	}
}


