/*
' ============================================================
' Purpose:
' 
' 
' Notes:
' 
' ============================================================
' $Workfile: default.js $
' $Modtime: 2/14/05 4:05p $
' $Revision: 3 $
' ============================================================
*/

function fnSend(){
  if(!document.frmAddComment.txtVisitorCommentVisitorName.value){
		alert('Vul uw naam in a.u.b.');
		document.frmAddComment.txtVisitorCommentVisitorName.focus();
	}
	else if(!document.frmAddComment.txtVisitorCommentVisitorAge.value){
		alert('Vul uw leeftijd in a.u.b.');
		document.frmAddComment.txtVisitorCommentVisitorAge.focus();
    }
    else if(isNaN(document.frmAddComment.txtVisitorCommentVisitorAge.value)){
		alert('Vul een getal voor uw leeftijd in a.u.b.');
		document.frmAddComment.txtVisitorCommentVisitorAge.focus();
    }
    else if((!document.frmAddComment.txtVisitorCommentVisitorGender[0].checked) && (!document.frmAddComment.txtVisitorCommentVisitorGender[1].checked)){
		alert('Vul uw geslacht in a.u.b.');
		document.frmAddComment.txtVisitorCommentVisitorGender[0].focus();
    }
	else if(!document.frmAddComment.txtVisitorCommentVisitorCity.value){
		alert('Vul uw woonplaats in a.u.b.');
		document.frmAddComment.txtVisitorCommentVisitorCity.focus();
    }
	else if(!document.frmAddComment.txtVisitorCommentText.value){
		alert('Vul uw reactie in a.u.b.');
		document.frmAddComment.txtVisitorCommentText.focus();
	}	
	else{
		document.frmAddComment.txtMode.value = "add";
		document.frmAddComment.action="/oud/kletshoek/add/default.asp";
		document.frmAddComment.method="post";
		//document.frmAddComment.cmdSend.disabled = true;
		document.frmAddComment.submit();
	}
}

