/*********************************************************************************/
/**			copyright (c) PlanetCalc.com, 2008	  								**/
/**		    	Form Tracker Handler		    	   							**/
/*********************************************************************************/

function FormTrackerHandler(url) {
	this.Dialog = null;
	this.URL = url;

	this.onchanged = function ( controlid ) {
		BSMakePOSTRequest( this.URL, this, GetDialogData(this.Dialog));			
	}

	this.initdialog =  function (dialog) {
		this.Dialog = dialog;
	}

	this.oncommand = function ( buttonid ) {
		clearLastError();
		return;
	}

	this.onkeypressed = function ( controlid, evt ) {
		return true;
	}                                   

	this.OnResponse = function( obj ) {
	}

	/* internal */
	function GetDialogData(dialog) {
	        return { "id" : dialog.item_id.GetValue() , "op" : dialog.op.GetValue() };		
	}
}    
