/*									    \\\ /// 
										( @ @ ) 
/*===============================....o00o.(_).o00o...===============================*\
|| ################################################################################ ||
|| # 	       فكرة تقنية لتصميم وتطوير المواقع والاسكربتات الخاصة	 	          # ||
|| # --------------- هذا البرنامج من برمجة مبرمجي فكرة تقنية  ------------------  # ||
|| #    هذا الكود غير مسموح لك بالتعديل او التطوير علية الا بعد الموافقة على ذلك   # ||
|| #       من خلال فكرة تقنية ويمنع منعا باتا ازالة الحقوق البرمجية منة والا        # ||
|| #        ففكرة تقنية غير مسئولة عن الاضرار التى ستنتج عن ذلك مستقبلا 	          # ||
|| #		          جميع الحقوق محفوظة لفكرة تقنية 2009-2010                    # ||
|| # -------------  هذا البرنامج ليس مجاني | للاتصال بالدعم الفني ---------------- # ||
|| # 			      http://www.ti4it.com  | support@ti4it.com 		          # ||
|| ################################################################################ ||
\*==================================================================================*/
/*==================================================================================*\
|| ################################################################################ ||
|| # 			   Tecno Idea For Disigning & Developing WebSites		          # ||
|| # ------------------ Programming by  Tecno Idea Developers ------------------- # ||
|| #      This code is not Allowed you amendment or Development only after the    # ||
|| #	  approval from Tecno Idea and strictly prohibited the removal of         # ||
|| #      the rights to programming either Tecno Idea is not responsible          # ||
|| #	  for any damages will happen in the future                               # ||
|| #             All Copy rights Reserved To Tecno Idea 2009-2010                 # ||
|| # ---------- THIS IS NOT FREE SOFTWARE  | To Contact Support ----------------- # ||
|| # 		        http://www.ti4it.com  | support@ti4it.com		              # ||
|| ################################################################################ ||
\*==================================================================================*/
<!--------------------------->
function clearf(object,text){ if(object.value == text){object.value = ""; object.focus();}} 
function setf(object,text){ if(object.value == ""){object.value = text; this.focus(); }}
<!--------------------------->
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}


function ListFind(list, value){
  var i = 0;
  var delimiter = ',';
  var returnValue = -1;
  var _tempArray = new Array();
  if(ListFind.arguments.length == 3)
    delimiter = ListFind.arguments[2];
  _tempArray = list.split(delimiter);
  for(i = 0; i < _tempArray.length; i++){
    if(_tempArray[i] == value){
      returnValue = i;
      break;
    }
  }
  return returnValue;
}

function ListFindNoCase(list, value){
  var i = 0;
  var delimiter = ',';
  var returnValue = -1;
  var _tempArray = new Array();
  if(ListFindNoCase.arguments.length == 3)
    delimiter = ListFindNoCase.arguments[2].toLowerCase();
  list = list.toLowerCase();
  value = value.toLowerCase();
  _tempArray = list.split(delimiter);
  for(i = 0; i < _tempArray.length; i++){
    if(_tempArray[i] == value){
      returnValue = i;
      break;
    }
  }
  return returnValue;
}


function ListLast(list){
  var delimiter = ',';
  var returnValue = '';
  var _tempArray = new Array();
  if(ListLast.arguments.length == 2) delimiter = ListLast.arguments[1].toLowerCase();
  _tempArray = list.split(delimiter);
  if(_tempArray.length)
    returnValue = _tempArray[_tempArray.length - 1];
  else
    returnValue = list;
  return returnValue;
}


function astm_ser(){
if (document.FormSer.SER.value=="" || document.FormSer.SER.value=="مفردات البحث ...."){
alert("من فضلك اكتب مفردات البحث")
document.FormSer.SER.focus()
return false
}

if (document.FormSer.Kind.value==""){
alert("من فضلك اختار القسم")
document.FormSer.Kind.focus()
return false
}
}

function astm_login(){
if (document.FormLog.UserName.value=="" || document.FormLog.UserName.value=="اسم المستخدم"){
alert("من فضلك اكتب اسم المستخدم")
document.FormLog.UserName.focus()
return false
}

if (document.FormLog.PassWord.value=="" || document.FormLog.PassWord.value=="كلمة السر"){
alert("من فضلك اكتب كلمة السر")
document.FormLog.PassWord.focus()
return false
}

}

function astm_login_result(){
if (document.formlogresult.UserName_Result.value=="" || document.formlogresult.UserName_Result.value=="اسم المستخدم"){
alert("من فضلك اكتب اسم المستخدم")
document.formlogresult.UserName_Result.focus()
return false
}

if (document.formlogresult.PassWord_Result.value=="" || document.formlogresult.PassWord_Result.value=="كلمة السر"){
alert("من فضلك اكتب كلمة السر")
document.formlogresult.PassWord_Result.focus()
return false
}

}

function astm_Register(){
if (document.formRegister.name.value==""){
alert("من فضلك اكتب اسمك الثلاثى")
document.formRegister.name.focus()
return false
}

if (document.formRegister.user.value==""){
alert("من فضلك اكتب اسم المستخدم")
document.formRegister.user.focus()
return false
}

if (document.formRegister.pass.value==""){
alert("من فضلك اكتب كلمة السر")
document.formRegister.pass.focus()
return false
}

if (document.formRegister.pass2.value !== document.formRegister.pass.value){
alert("من فضلك تأكد من ان كلمة السر متساوية مع تأكيد كلمة السر")
document.formRegister.pass2.focus()
return false
}

if(document.formRegister.email.value!==""){
str = document.formRegister.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formRegister.email.focus();
return false;
}

if (document.formRegister.email2.value !== document.formRegister.email.value){
alert("من فضلك تأكد من ان البريد الالكتروني متساوى مع تأكيد البريد الالكتروني")
document.formRegister.email2.focus()
return false
}
}

if(document.formRegister.mobile.value!=""){
if(isNaN(document.formRegister.mobile.value)){
alert("من فضلك اكتب رقم الجوال ارقام")
document.formRegister.mobile.focus()
return false
}
if(document.formRegister.mobile.value.length <= "10"){
alert("من فضلك ادخل رقم الجوال الصحيح")
document.formRegister.mobile.focus()
return false
}
}

}


function astm_forget(){
str = document.formforget.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formforget.email.focus();
return false;
}
}

function astm_vote(x){
if(x==1){
 document.getElementById('show_vote').style.display='block';
 document.getElementById('show_result').style.display='none';
 return false
}else{
 document.getElementById('show_vote').style.display='none';
 document.getElementById('show_result').style.display='block';
 return false
}
}

function astm_expandIt(astm_id){
    var tdiv = document.getElementById(astm_id);
    var tpic = document.getElementById('astm'+astm_id);
    if (tdiv.style.display == '') {
        tdiv.style.display = 'none';
        tpic.src = 'images/plus.gif';
		tpic.title="افتح";
    } else {
        tdiv.style.display = '';
        tpic.src = 'images/min.gif';
		tpic.title="اقفل";
    }
}

function astm_print(){window.print();}

function astm_tellfriend(){
str = document.form_tell.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1)
{
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.form_tell.email.focus();
return false;
}
}

function astm_show_comment(x){
if(x==1){
 document.getElementById('show_com').style.display='block';
 return false
}else{
 document.getElementById('show_com').style.display='none';
 return false
}
}

function astm_send_result(x){
if(x==1){
 document.getElementById('send_result').style.display='block';
 return false
}else{
 document.getElementById('send_result').style.display='none';
 return false
}
}

 
 function astm_mika_user(){
if (document.formuser.name.value==""){
alert("من فضلك ادخل أسم المدرسة")
document.formuser.name.focus()
return false
}
if (document.formuser.user.value==""){
alert("من فضلك ادخل اسم المستخدم")
document.formuser.user.focus()
return false
}
if (document.formuser.pass.value==""){
alert("من فضلك ادخل كلمة السر")
document.formuser.pass.focus()
return false
}

if (document.formuser.pass.value!==document.formuser.pass2.value){
alert("من فضلك تأكد من ان كلمة السر متساوية مع تاكيد كلمة السر")
document.formuser.pass2.focus()
return false
}

if(document.formuser.mobile.value!==""){
if(isNaN(document.formuser.mobile.value)){
alert("من فضلك ادخل رقم الاتصال ارقام");
document.formuser.mobile.focus();
return false;
}
/*
if(document.formuser.mobile.value.length <="9"){
alert("من فضلك ادخل رقم الجوال الصحيح");
document.formuser.mobile.focus();
return false;
}	
*/
}

if(document.formuser.email.value!==""){
str = document.formuser.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل بريدك الالكتروني الصحيح');
document.formuser.email.focus();
return false;
}
}

if (document.formuser.city.value==""){
alert("من فضلك اختار المنطقة التعليمية")
document.formuser.city.focus()
return false
}

if (formuser.C1.checked==false && formuser.C2.checked==false && formuser.C3.checked==false && formuser.C4.checked==false){
alert("من فضلك اختار مرحلة تعليمية")
return (false);
}	
}
/////////////////////////////////////////////////////////////////
function astm_result_1(){
if (document.astm_form.Less.value=="" || isNaN(document.astm_form.Less.value) || document.astm_form.Less.value>100 || document.astm_form.Less.value<=0 ){
alert("من فضلك ادخل نسبة الوزن دون الطبيعى ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.Less.focus()
return false
}

if (document.astm_form.Normal.value=="" || isNaN(document.astm_form.Normal.value) || document.astm_form.Normal.value>100 || document.astm_form.Normal.value<=0 ){
alert("من فضلك ادخل نسبة الوزن الطبيعى ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.Normal.focus()
return false
}

if (document.astm_form.More.value=="" || isNaN(document.astm_form.More.value) || document.astm_form.More.value>100 || document.astm_form.More.value<=0 ){
alert("من فضلك ادخل نسبة الوازن الزائد عن الطبيعى ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.More.focus()
return false
}
}

function astm_result_2(){
if (document.astm_form.Zmzm.value=="" || isNaN(document.astm_form.Zmzm.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بماء زمزم ارقام")
document.astm_form.Zmzm.focus()
return false
}
if (document.astm_form.Paper1.value=="" || isNaN(document.astm_form.Paper1.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء زمزم ارقام")
document.astm_form.Paper1.focus();
return false
}
if (document.astm_form.Saved.value=="" || isNaN(document.astm_form.Saved.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بالماء المعبأ ارقام")
document.astm_form.Saved.focus()
return false
}
if (document.astm_form.Paper2.value=="" || isNaN(document.astm_form.Paper2.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء معبأ ارقام")
document.astm_form.Paper2.focus()
return false
}
if (document.astm_form.River.value=="" || isNaN(document.astm_form.River.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بماء الصنبور ارقام")
document.astm_form.River.focus()
return false
}
if (document.astm_form.Paper3.value=="" || isNaN(document.astm_form.Paper3.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء الصنبور ارقام")
document.astm_form.Paper3.focus()
return false
}
}



function astm_result_3(){
	
if (document.astm_form.F1_1.value=="" || isNaN(document.astm_form.F1_1.value) || document.astm_form.F1_1.value>100 || document.astm_form.F1_1.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F1_1.focus()
return false
}

if (document.astm_form.F1_2.value=="" || isNaN(document.astm_form.F1_2.value) || document.astm_form.F1_2.value>100 || document.astm_form.F1_2.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F1_2.focus()
return false
}

if (document.astm_form.F1_3.value=="" || isNaN(document.astm_form.F1_3.value) || document.astm_form.F1_3.value>100 || document.astm_form.F1_3.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F1_3.focus()
return false
}

if (document.astm_form.F_1.value=="" || isNaN(document.astm_form.F_1.value) || document.astm_form.F_1.value>100 || document.astm_form.F_1.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_1.focus()
return false
}

if (document.astm_form.F_2.value=="" || isNaN(document.astm_form.F_2.value) || document.astm_form.F_2.value>100 || document.astm_form.F_2.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_2.focus()
return false
}

if (document.astm_form.F_3.value=="" || isNaN(document.astm_form.F_3.value) || document.astm_form.F_3.value>100 || document.astm_form.F_3.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_3.focus()
return false
}

if (document.astm_form.F_4.value=="" || isNaN(document.astm_form.F_4.value) || document.astm_form.F_4.value>100 || document.astm_form.F_4.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_4.focus()
return false
}

if (document.astm_form.F_5.value=="" || isNaN(document.astm_form.F_5.value) || document.astm_form.F_5.value>100 || document.astm_form.F_5.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_5.focus()
return false
}

if (document.astm_form.F_6.value=="" || isNaN(document.astm_form.F_6.value) || document.astm_form.F_6.value>100 || document.astm_form.F_6.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_6.focus()
return false
}

if (document.astm_form.F_7.value=="" || isNaN(document.astm_form.F_7.value) || document.astm_form.F_7.value>100 || document.astm_form.F_7.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_7.focus()
return false
}

if (document.astm_form.F_8.value=="" || isNaN(document.astm_form.F_8.value) || document.astm_form.F_8.value>100 || document.astm_form.F_8.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_8.focus()
return false
}

if (document.astm_form.F_9.value=="" || isNaN(document.astm_form.F_9.value) || document.astm_form.F_9.value>100 || document.astm_form.F_9.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_9.focus()
return false
}

if (document.astm_form.F_10.value=="" || isNaN(document.astm_form.F_10.value) || document.astm_form.F_10.value>100 || document.astm_form.F_10.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_10.focus()
return false
}

if (document.astm_form.F_11.value=="" || isNaN(document.astm_form.F_11.value) || document.astm_form.F_11.value>100 || document.astm_form.F_11.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_11.focus()
return false
}

if (document.astm_form.F_12.value=="" || isNaN(document.astm_form.F_12.value) || document.astm_form.F_12.value>100 || document.astm_form.F_12.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_12.focus()
return false
}

if (document.astm_form.F_13.value=="" || isNaN(document.astm_form.F_13.value) || document.astm_form.F_13.value>100 || document.astm_form.F_13.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_13.focus()
return false
}

if (document.astm_form.F_14.value=="" || isNaN(document.astm_form.F_14.value) || document.astm_form.F_14.value>100 || document.astm_form.F_14.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_14.focus()
return false
}

if (document.astm_form.F_15.value=="" || isNaN(document.astm_form.F_15.value) || document.astm_form.F_15.value>100 || document.astm_form.F_15.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_15.focus()
return false
}

if (document.astm_form.F_16.value=="" || isNaN(document.astm_form.F_16.value) || document.astm_form.F_16.value>100 || document.astm_form.F_16.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_16.focus()
return false
}

if (document.astm_form.F_17.value=="" || isNaN(document.astm_form.F_17.value) || document.astm_form.F_17.value>100 || document.astm_form.F_17.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_17.focus()
return false
}

if (document.astm_form.F_18.value=="" || isNaN(document.astm_form.F_18.value) || document.astm_form.F_18.value>100 || document.astm_form.F_18.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_18.focus()
return false
}

if (document.astm_form.F_19.value=="" || isNaN(document.astm_form.F_19.value) || document.astm_form.F_19.value>100 || document.astm_form.F_19.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_19.focus()
return false
}

if (document.astm_form.F_20.value=="" || isNaN(document.astm_form.F_20.value) || document.astm_form.F_20.value>100 || document.astm_form.F_20.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_20.focus()
return false
}

if (document.astm_form.F_21.value=="" || isNaN(document.astm_form.F_21.value) || document.astm_form.F_21.value>100 || document.astm_form.F_21.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_21.focus()
return false
}

if (document.astm_form.F_22.value=="" || isNaN(document.astm_form.F_22.value) || document.astm_form.F_22.value>100 || document.astm_form.F_22.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_22.focus()
return false
}

if (document.astm_form.F_23.value=="" || isNaN(document.astm_form.F_23.value) || document.astm_form.F_23.value>100 || document.astm_form.F_23.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_23.focus()
return false
}

if (document.astm_form.F_24.value=="" || isNaN(document.astm_form.F_24.value) || document.astm_form.F_24.value>100 || document.astm_form.F_24.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_24.focus()
return false
}

if (document.astm_form.F_25.value=="" || isNaN(document.astm_form.F_25.value) || document.astm_form.F_25.value>100 || document.astm_form.F_25.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_25.focus()
return false
}

if (document.astm_form.F_26.value=="" || isNaN(document.astm_form.F_26.value) || document.astm_form.F_26.value>100 || document.astm_form.F_26.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_26.focus()
return false
}

if (document.astm_form.F_27.value=="" || isNaN(document.astm_form.F_27.value) || document.astm_form.F_27.value>100 || document.astm_form.F_27.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_27.focus()
return false
}

if (document.astm_form.F_28.value=="" || isNaN(document.astm_form.F_28.value) || document.astm_form.F_28.value>100 || document.astm_form.F_28.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_28.focus()
return false
}

if (document.astm_form.F_29.value=="" || isNaN(document.astm_form.F_29.value) || document.astm_form.F_29.value>100 || document.astm_form.F_29.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_29.focus()
return false
}

if (document.astm_form.F_30.value=="" || isNaN(document.astm_form.F_30.value) || document.astm_form.F_30.value>100 || document.astm_form.F_30.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_30.focus()
return false
}

if (document.astm_form.F_31.value=="" || isNaN(document.astm_form.F_31.value) || document.astm_form.F_31.value>100 || document.astm_form.F_31.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_31.focus()
return false
}

if (document.astm_form.F_32.value=="" || isNaN(document.astm_form.F_32.value) || document.astm_form.F_32.value>100 || document.astm_form.F_32.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_32.focus()
return false
}

if (document.astm_form.F_33.value=="" || isNaN(document.astm_form.F_33.value) || document.astm_form.F_33.value>100 || document.astm_form.F_33.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_33.focus()
return false
}

if (document.astm_form.F_34.value=="" || isNaN(document.astm_form.F_34.value) || document.astm_form.F_34.value>100 || document.astm_form.F_34.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_34.focus()
return false
}

if (document.astm_form.F_35.value=="" || isNaN(document.astm_form.F_35.value) || document.astm_form.F_35.value>100 || document.astm_form.F_35.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_35.focus()
return false
}

if (document.astm_form.F_36.value=="" || isNaN(document.astm_form.F_36.value) || document.astm_form.F_36.value>100 || document.astm_form.F_36.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_36.focus()
return false
}

if (document.astm_form.F_37.value=="" || isNaN(document.astm_form.F_37.value) || document.astm_form.F_37.value>100 || document.astm_form.F_37.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_37.focus()
return false
}

if (document.astm_form.F_38.value=="" || isNaN(document.astm_form.F_38.value) || document.astm_form.F_38.value>100 || document.astm_form.F_38.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_38.focus()
return false
}

if (document.astm_form.F_39.value=="" || isNaN(document.astm_form.F_39.value) || document.astm_form.F_39.value>100 || document.astm_form.F_39.value<=0 ){
alert("من فضلك ادخل النسبة ارقام كنسبة مئوية صحيحة اكبر من الصفر واقل من المئة")
document.astm_form.F_39.focus()
return false
}

}


function astm_result_4(){

if (document.astm_form.Zmzm.value=="" || isNaN(document.astm_form.Zmzm.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بماء زمزم ارقام")
document.astm_form.Zmzm.focus()
return false
}

if (document.astm_form.Paper1.value=="" || isNaN(document.astm_form.Paper1.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء زمزم ارقام")
document.astm_form.Paper1.focus();
return false
}

if (document.astm_form.Width1.value=="" || isNaN(document.astm_form.Width1.value)){
alert("من فضلك ادخل وزن النبات الزيادة الناتج عن استخدام ماء زمزم ارقام")
document.astm_form.Width1.focus();
return false
}

if (document.astm_form.Saved.value=="" || isNaN(document.astm_form.Saved.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بالماء المعبأ ارقام")
document.astm_form.Saved.focus()
return false
}

if (document.astm_form.Paper2.value=="" || isNaN(document.astm_form.Paper2.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء معبأ ارقام")
document.astm_form.Paper2.focus()
return false
}

if (document.astm_form.Width2.value=="" || isNaN(document.astm_form.Width2.value)){
alert("من فضلك ادخل وزن النبات الزيادة الناتج عن استخدام ماء معبأ ارقام")
document.astm_form.Width2.focus();
return false
}

if (document.astm_form.River.value=="" || isNaN(document.astm_form.River.value)){
alert("من فضلك ادخل نسبة الزياده فى الطول بماء الصنبور ارقام")
document.astm_form.River.focus()
return false
}

if (document.astm_form.Paper3.value=="" || isNaN(document.astm_form.Paper3.value)){
alert("من فضلك ادخل عدد اوراق النبات الزيادة الناتجة عن استخدام ماء الصنبور ارقام")
document.astm_form.Paper3.focus()
return false
}

if (document.astm_form.Width3.value=="" || isNaN(document.astm_form.Width3.value)){
alert("من فضلك ادخل وزن النبات الزيادة الناتج عن استخدام ماء الصنبور ارقام")
document.astm_form.Width3.focus();
return false
}
}

function astm_result_6(){
if (document.astm_form.F_1.value=="" || isNaN(document.astm_form.F_1.value)){
alert("من فضلك ادخل طول النبتة ارقام")
document.astm_form.F_1.focus()
return false
}

if (document.astm_form.P_1.value=="" || isNaN(document.astm_form.P_1.value)){
alert("من فضلك ادخل عدد الاوراق ارقام")
document.astm_form.P_1.focus()
return false
}

if (document.astm_form.W_1.value=="" || isNaN(document.astm_form.W_1.value)){
alert("من فضلك ادخل الوزن ارقام")
document.astm_form.W_1.focus()
return false
}

if (document.astm_form.F_2.value=="" || isNaN(document.astm_form.F_2.value)){
alert("من فضلك ادخل طول النبتة ارقام")
document.astm_form.F_2.focus()
return false
}

if (document.astm_form.P_2.value=="" || isNaN(document.astm_form.P_2.value)){
alert("من فضلك ادخل عدد الاوراق ارقام")
document.astm_form.P_2.focus()
return false
}

if (document.astm_form.W_2.value=="" || isNaN(document.astm_form.W_2.value)){
alert("من فضلك ادخل الوزن ارقام")
document.astm_form.W_2.focus()
return false
}

if (document.astm_form.F_3.value=="" || isNaN(document.astm_form.F_3.value)){
alert("من فضلك ادخل طول النبتة ارقام")
document.astm_form.F_3.focus()
return false
}

if (document.astm_form.P_3.value=="" || isNaN(document.astm_form.P_3.value)){
alert("من فضلك ادخل عدد الاوراق ارقام")
document.astm_form.P_3.focus()
return false
}

if (document.astm_form.W_3.value=="" || isNaN(document.astm_form.W_3.value)){
alert("من فضلك ادخل الوزن ارقام")
document.astm_form.W_3.focus()
return false
}

if (document.astm_form.F_4.value=="" || isNaN(document.astm_form.F_4.value)){
alert("من فضلك ادخل طول النبتة ارقام")
document.astm_form.F_4.focus()
return false
}

if (document.astm_form.P_4.value=="" || isNaN(document.astm_form.P_4.value)){
alert("من فضلك ادخل عدد الاوراق ارقام")
document.astm_form.P_4.focus()
return false
}

if (document.astm_form.W_4.value=="" || isNaN(document.astm_form.W_4.value)){
alert("من فضلك ادخل الوزن ارقام")
document.astm_form.W_4.focus()
return false
}
}

function astm_upload_File(){
if(ListFind('doc,docx,DOC,DOCX', ListLast(astm_form.filepic.value, '.')) == -1){
alert('مسموح فقط بالامتدادت التالية \n doc,docx,DOC,DOCX');
document.getElementById("filepic").outerHTML = "<input type='file' name='filepic' id='filepic'  onChange='return astm_upload_File()' class='field' style='text-align:center; width:250'  onblur=\"this.className='field'\"  onfocus=\"this.className='field2'\"/>";
return false;
}
}

//////////////////////////////////////////////////////////////////
function astm_comment(){
/*
if (document.formcomment.name.value==""){
alert("من فضلك اكتب اسمك")
document.formcomment.name.focus()
return false
}
*/
if (document.formcomment.comment.value==""){
alert("من فضلك اكتب التعليق")
document.formcomment.comment.focus()
return false
}
}


function astm_GuestBook(){
if (document.formguest.name.value==""){
alert("من فضلك اكتب اسمك")
document.formguest.name.focus()
return false
}

str = document.formguest.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formguest.email.focus();
return false;
}

if (document.formguest.msg.value==""){
alert("من فضلك اكتب التوقيع")
document.formguest.msg.focus()
return false
}

}


function astm_contact(){

if (document.formContact.kind.value==""){
alert("من فضلك اختار نوع الطلب")
document.formContact.kind.focus()
return false
}

if (document.formContact.name.value==""){
alert("من فضلك اكتب اسمك")
document.formContact.name.focus()
return false
}
if (document.formContact.job.value==""){
alert("من فضلك اكتب الوظيفة")
document.formContact.job.focus()
return false
}

if (document.formContact.organization.value==""){
alert("من فضلك اكتب جهة العمل")
document.formContact.organization.focus()
return false
}

if (document.formContact.country.value==""){
alert("من فضلك اختار الدولة")
document.formContact.country.focus()
return false
}

if (document.formContact.address.value==""){
alert("من فضلك اكتب العنوان")
document.formContact.address.focus()
return false
}

if(document.formContact.phone.value!=""){
if(isNaN(document.formContact.phone.value)){
alert("من فضلك اكتب رقم الهاتف ارقام")
document.formContact.phone.focus()
return false
}
if(document.formContact.phone.value.length <= "10"){
alert("من فضلك ادخل رقم الهاتف الصحيح")
document.formContact.phone.focus()
return false
}
}

if(document.formContact.mobile.value!=""){
if(isNaN(document.formContact.mobile.value)){
alert("من فضلك اكتب رقم الجوال ارقام")
document.formContact.mobile.focus()
return false
}
if(document.formContact.mobile.value.length <= "10"){
alert("من فضلك ادخل رقم الجوال الصحيح")
document.formContact.mobile.focus()
return false
}
}

if(document.formContact.fax.value!=""){
if(isNaN(document.formContact.fax.value)){
alert("من فضلك اكتب رقم الفاكس ارقام")
document.formContact.fax.focus()
return false
}
if(document.formContact.fax.value.length <= "10"){
alert("من فضلك ادخل رقم الفاكس الصحيح")
document.formContact.fax.focus()
return false
}
}

str = document.formContact.email.value;
if (str.indexOf('@') == -1 || str.indexOf('.') == -1){
alert ('من فضلك ادخل البريد الالكتروني بشكل صحيح');
document.formContact.email.focus();
return false;
}

if (document.formContact.msg.value==""){
alert("من فضلك اكتب نص الرسالة")
document.formContact.msg.focus()
return false
}

}