function check(form){
	var titles=Array("الاسم الأول",
					 "الشهرة",
					 "البريد الالكتروني",
					 "مضمون الرسالة",
					 "الرمز السري");
	var i=0;
	for(i=0;i<5;i++){
		if(form.elements[i].value.length==0){
			alert("يجب كتابة " + titles[i]);
			form.elements[i].focus();
			return false;
		}
	}
	var s=form.email.value;
	if (s.indexOf("@")==-1||s.indexOf(".")==-1){
		alert("Please input a valid e-mail address!\nYour email should be: mail@domain.com\nPlease note that the reply to your message will be returned by e-mail.");
		return false;
	}
	return true;
}
