וואלה תודה רבה!! באמת תודה!!
בדקתי את הקוד וקפצה לי השגיאה הבאה:
ספרתי שורות. ושורה מספר 23 בסקריפט היא זאת שמעל 'עליך להסכים לתנאים!':
HTML קוד:
<script type="text/javascript">
function validation() {
if (document.getElementById('attached').value == ""){ // required name
alert("בבקשה בחר קובץ לעלות.");
document.getElementById('attached').focus();
return false;
}
if (document.getElementById'(agree').checked == false )
{
alert("עליך להסכים לתנאים!");
return false;
}
return true;
}
</script>