function AjaxPostable(){

  var _control = null;
	
	var events = [" ", "blur", "change", "click", "dblclick", "focus"];
	
	this.AjaxPostableLoad = function(ControlElement)
	{
	  try{

	    _control = $(ControlElement);
			
		}catch(err){Log.Add("AjaxPostable.AjaxPostableLoad", err, LogType.Error)}
	}
	
	this.GetAjaxPostableProperties = function(properties)
	{
	  try{
				
			if(properties == null)
			  properties = new Array();
				
			properties[properties.length] = new PropertiesEditor.Property(PropertyFields.GetProperty("EventVRM"), this.GetEventVRM, this.SetEventVRM);
			properties[properties.length] = new PropertiesEditor.Property(PropertyFields.GetProperty("Event"), this.GetAjaxEvent, this.SetAjaxEvent, events);
			properties[properties.length] = new PropertiesEditor.Property(PropertyFields.GetProperty("AjaxEnabled"), this.GetAjaxEnabled, this.SetAjaxEnabled);									

			return properties;
			
		}catch(err){Log.Add("AjaxPostable.GetAjaxPostableProperties", err, LogType.Error)}		
	
	}
	
	this.GetEventVRM = function(){
	  try{

		  return _control.attr("EventVRM");
			
		}catch(err){Log.Add("AjaxPostable.GetEventVRM", err, LogType.Error)}	
  }
	
	this.GetAjaxEvent = function(){
	  try{

		  return _control.attr("AjaxEvent");
			
		}catch(err){Log.Add("AjaxPostable.GetEvent", err, LogType.Error)}	
  }
	
	this.GetAjaxEnabled = function(){
	  try{

		  var enabled = _control.attr("AjaxEnabled");
			
			return (enabled != null);
			
		}catch(err){Log.Add("AjaxPostable.GetAjaxEnabled", err, LogType.Error)}	
  }

	
	
	this.SetEventVRM = function(newValue){
	  try{

		  _control.attr("EventVRM", newValue);
			
		}catch(err){Log.Add("AjaxPostable.SetEventVRM", err, LogType.Error)}	
  }
	
	this.SetAjaxEvent = function(newValue){
	  try{

		  _control.attr("AjaxEvent", newValue);
			
		}catch(err){Log.Add("AjaxPostable.SetEvent", err, LogType.Error)}	
  }
	
	this.SetAjaxEnabled = function(newValue){
	  try{

		  if(newValue)
			  _control.attr("AjaxEnabled", "true");
			else
			  _control.removeAttr("AjaxEnabled");
		
		}catch(err){Log.Add("AjaxPostable.SetAjaxEnabled", err, LogType.Error)}	
  }






}
