function color(a,b)
    {

         if (b==1) {
                     a.style.background='#cccccc';
                     a.style.color='#000000';
                   }
         if (b==2) {
                     a.style.background='#00468c';
                     a.style.color='#ffffff';
                   }

    }

 function fil(checkObj, e) {
                var ie = (document.all) ? true : false;

                if (e.keyCode == 13) return true;
                if (!ie) {
         /*               if (((e.keyCode >= 33) && (e.keyCode <= 40)) || (e.keyCode == 45)
                                || (e.keyCode == 8) || (e.keyCode == 9) ||
                                (e.keyCode == 13) || (e.keyCode == 27)) {
                                return true;
                        }


           */
               if  ( (e.which < 48) || (e.which > 57)) return false;


                  }
                else {
                        if ((e.keyCode < 48) || (e.keyCode > 57)) return false;

                }
                return true;
        }

 function display()
    {
         document.all.body.style.cursor='auto';
         document.all.top.style.display='none';
         document.all.main.style.display='block';
    }


 function f_money(a)
    {
         if (a==0)
               {
                  document.all.money.style.background='#cccccc';
               }
         else
               {
                  document.all.money.style.background='#ffffff';
               }
    }

 function stat()
    {
       window.status="Copyright © Big.am";
    }

 function sub_ok()
    {
      document.all.sub.disabled;
    }

 function colors(a,b)
    {
       if (a==1) {
                    b.style.background='#ffffff';
                    b.style.color='#000000';

                 }
       if (a==2) {
                    b.style.background='#3EA7F1';
                    b.style.color='#ffffff';

                 }

       if (a==3) {
                    b.style.background='#ffffff';
                    b.style.color='#000000';

                 }
       if (a==4) {
                    b.style.background='#3EA7F1';
                    b.style.color='#ffffff';

                 }
    }

function testing()
       {

        if (document.all.name.value.length  <= 2)  {  document.all.name.focus();   document.all.name.select();   return false; }
        if (document.all.email.value.length <= 3) {  document.all.email.focus();  document.all.email.select();  return false; }
        if (document.all.email.value >= "")
             {

                 var allValid = true;
                 if (document.all.email.value.indexOf('@', 0) == -1 || document.all.email.value.indexOf('.', 0) == -1) allValid = false;

                 if (!allValid)
                           {
                               document.all.email.focus();
                               document.all.email.select();
                               return (false);
                           }
              }
        if (document.all.info.value.length  <= 3)  {  document.all.info.focus();   document.all.info.select();   return false; }
     }

   function sub(s)
    {
//      document.forms.f_form.elements.msubmit.value="...";
      document.all.f_form.elements.msubmit.disabled="true";
      if (s) document.all.f_form.submit();
    }


  function check_mail()
   {

    if (document.all.email.value.length <= 0)      { document.all.email.focus();      return false; }
    if (document.all.email.value >= "")
         {

           var allValid = true;
           if (document.all.email.value.indexOf('@', 0) == -1 || document.all.email.value.indexOf('.', 0) == -1) allValid = false;

           if (!allValid)
                   {
                        document.all.email.focus();
                        document.all.email.select();
                        return (false);
                   }
           }

    return true;
   }

