﻿function checkRegisterForm(Form){
	for(i=0;i<Form.length-1;i++){
		Form[i].style.backgroundColor=''
	}

	for(i=0;i<Form.length-1;i++){
		if(Form[i].value.length < 1 && Form[i].title.length > 0){
			alert('יש למלא ' + Form[i].title)
			Form[i].style.backgroundColor='#ffffcc';
			return false;
		}
	}
	return true;
}

function backHome(){
	location='/math/'	
}
