 
function AjaxInterface(){
           // Ext.MessageBox.show({title: 'Please wait...',msg: 'Initializing...',width:240,progress:true,closable:false});
            this.target="";
            this.sendData=function(params,page){
                var xmlHttpReq = false;
                var self = this;
                if (window.XMLHttpRequest) {
                    self.xmlHttpReq = new XMLHttpRequest();
                }
                else if (window.ActiveXObject) {
                    self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
                }
                self.xmlHttpReq.open('POST', page, true);
                self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                self.xmlHttpReq.onreadystatechange = function() {
                    if (self.xmlHttpReq.readyState == 4) {
                        if(self.target==""){
                        	var tempForm=document.getElementById("mailHilder");
				tempForm.innerHTML=self.xmlHttpReq.responseText;
			}else{
				 self.target.innerHTML=self.xmlHttpReq.responseText;
			}
                    }
                }
                self.xmlHttpReq.send(params);
				//alert(params)
           }
           this.getPage=function(params,page){
            var xmlHttpReq = false;
                var self = this;
                if (window.XMLHttpRequest) {
                    self.xmlHttpReq = new XMLHttpRequest();
                }
                else if (window.ActiveXObject) {
                    self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
                }
                self.xmlHttpReq.open('POST', page, true);
                self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
                self.xmlHttpReq.onreadystatechange = function() {
                    if (self.xmlHttpReq.readyState == 4) {
                         //Ext.MessageBox.show({title: 'Saved Status', msg: self.xmlHttpReq.responseText,width:300,buttons: Ext.MessageBox.OK,fn: "",});
                         alert(self.xmlHttpReq.responseText)
                         setContent(self.xmlHttpReq.responseText);
                    }
                }
                self.xmlHttpReq.send(params);
           }
        }
