function Check(){ var message,dataright=true; if(document.form.Position.value.length==0){ message="You forgot to fill in field [Possition]"; dataright=false; } else if(document.form.Fname.value.length==0 || document.form.Sname.value.length==0){ message="You haven't mentioned your [Surname] or [Name] in the personal detales section"; dataright=false; } else if(document.form.DoB.value.length==0 || document.form.PoB.value.length==0){ message="You haven't mentioned your [Date of birth] or [Place of birth] in the personal detales section"; dataright=false; } else if(document.form.Age.value.length==0){ message="You haven't mentioned your [Age] in the personal detales section"; dataright=false; } else if(document.form.Street.value.length==0 || document.form.City.value.length==0 ){ message="You haven't mentioned [Street] or [City] where are you live in the adress section"; dataright=false; } else if(document.form.tab2_1.value.length==0 || document.form.tab2_2.value.length==0 || document.form.tab2_3.value.length==0 || document.form.tab2_4.value.length==0){ message="You haven't mentioned all neccesary information about your [Seamen's book] in the certificates section"; dataright=false; } else if(document.form.tab3_1.value.length==0 || document.form.tab3_2.value.length==0 || document.form.tab3_3.value.length==0 || document.form.tab3_4.value.length==0){ message="You haven't mentioned all neccesary information about your [Certificate of competency] in the certificates section"; dataright=false; } else if(document.form.lab1_1.value.length==0 || document.form.lab1_2.value.length==0 || document.form.lab1_3.value.length==0 || document.form.lab1_4.value.length==0 || document.form.lab1_5.value.length==0 || document.form.lab1_6.value.length==0 || document.form.lab1_7.value.length==0 || document.form.lab1_8.value.length==0 || document.form.lab1_9.value.length==0){ message="You haven't mentioned all neccesary information about your last [Seagoing experience]"; dataright=false; } else if(document.form.lang.value.length==0 ){ message="You haven't mentioned your [English] level in additional information section"; dataright=false; } if(dataright){ window.alert("Your details was succesfuly sent"); return(true); } else{ window.alert(message); return(false); } }