﻿// JScript File

 // --------- define js callback function for firefox and ie etc-----------

        function JSCallBack(url,control)
        {
            new Ajax.Request(url, {
            method: 'get',
                onSuccess: function(transport) {
                    // update the control
                    //doument.write(transport.responseText);
                    $(control).update(transport.responseText);
               }    
           });
         }
         
         
        function JSPostBack(url,control)
        {
            new Ajax.Request(url, {
            method: 'post',
            onSuccess : function(transport)
                 {
                    $(control).update(transport.responseText);
                 }
            });
        }
        
        function FadeIn_control(control)
        {
            $(control).hide(); // should be hidden to start with
            $(control).appear({ duration: 3.0 });
        }
        

