


window.addEvent('domready', function() {

    $('menu').getElements('a.nomal').addEvents({
        'mouseenter': function() {
            this.addClass("active");
        },
        'mouseleave': function() {
            this.removeClass("active");
        }
    });

    $('servicelist').getElements('a').addEvents({
        'mouseenter': function() {
            this.addClass("active");
        },
        'mouseleave': function() {
            this.removeClass("active");
        }
    });






    $('myForm').addEvent('submit', function(e) {

        if ($('mailAdress').value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) != -1) {
            //Prevents the default submit event from loading a new page.

            if ($('mailMessage').value.length == 0) {
                alert('Message Content Is Required!');
                $('mailMessage').focus();
                return false;
            }
            if ($('mailName').value.length == 0) {
                alert('Your Name is Required!');
                $('mailName').focus();
                return false;
            }

            var log = $('log_res').addClass('ajax-loading');
            e.stop();

            //Empty the log and show the spinning indicator.

            window.location.href = 'aspdotnetstorefront-consulting.aspx?mailAddress=' + $('mailAdress').value + '&mailMessage=' + $('mailMessage').value + '&mailName=' + $('mailName').value;
            //Set the options of the form's Request handler. 
            //("this" refers to the $('myForm') element).
            //            this.set('send', { onComplete: function(response) {
            //                log.removeClass('ajax-loading');

            //                if (response && response == 'ok')
            //                    window.location.href = 'thanks.aspx';
            //                else
            //                    log.addClass('ajax-fail');

            //            } 
            //            });
            //Send the form.
            //            this.send();
        }
        else {
            alert("Email Address Is Invalid!");
            $('mailAdress').focus();

            return false;
        }




    });


    $("rightContent").setStyle('height', $("rightContent").clientHeight + 25);
    $("leftmenu").setStyle('height', $("rightContent").clientHeight + 25);





});


 function Addjscode(title)
  {

  }
  
  
 function Addjscode2(title)
  {
 
  }
  
  function AddTracking()
  {
     document.write('<script src="http://s104.cnzz.com/stat.php?id=1540730&web_id=1540730&show=pic" language="JavaScript" ></script>'); 
  }

 
   
 

