var Interface = Class.create({
	initialize: function(strInterface){
		
		this.hostName 			= location.hostname; //host name of site (so we don't have to arse around making dev and test versions of the code.	
		
		this.strAspInterface 	= strInterface;
		
		this.parameters 		= new Object();		//object containing any parameters to be passed to the server side script via ajax.
		this.responseText		= "" //text response from ajax call
	
	},
	
	
	
	//build the parameter string to be passed into the ajax call from the parameters object
	buildParameterString:function(){
	
		var strPars = '';
		
		for (var i in this.parameters){
			strPars = strPars + i + "=" + this.parameters[i] + "&";
		}
		
		return strPars;
	
	},


	//perform ajaxcall using 'post'
	ajaxPost:function(params, opts){
		
		var oOptions = new Object();
		
		if (typeof params != "undefined") {
			this.parameters = params;			
		}
		
		if (typeof opts != "undefined"){
			oOptions = opts;	
		}			
			
		var pars = this.buildParameterString();
	
		oOptions['parameters'] = pars;
	
		//alert(pars);
		//communicate with webserver via ajax
		var myAjax = new Ajax.Request(this.strAspInterface, oOptions);
	
	}

});//end class.create
