﻿var PaymentController=Class.create(BookingsTab,
{
	initialize:function($super,Containers,Observables,Buttons,NotifyDiv,MsgController,AjaxCallDiv,TabMapper,PaymentFrame)
	{
		$super(TABS['PAYMENT'],Containers,Observables,null,null,null,TabMapper);
		this.PaymentFrame=$(PaymentFrame);

		//This is different now
		//We have to encyrpt the url and code it into web.config as the string that
		//this can read it fromCharCode

		//all we pass alo




		//this.PaymentParam=$(PaymentParamField);
		//this.setParamField('WTF');
	},// end initialize
	HandleConfirmation: function(url)
	{
		this.TabMapper.ConfirmationTab.disableControls();
		//hook onto the buttons using the TabMapper
		this.TabMapper.ConfirmationTab.ButtonColl.MoveToTabIndex(TABS['PAYMENT']);
		this.TabMapper.ConfirmationTab.ButtonColl.disableButtons();
		this.setPayFrameUrl(url);
	},
	setPayFrameUrl: function(url)
	{
		this.PaymentFrame.src=url;
	},
	setParamField: function(xmlParam)
	{
		$(this.PaymentParam).value=xmlParam;
	}
});//end PaymentController
