﻿var QuoteViewHelper = (function() {
    function fnQuoteViewHelperConstructor(oNewView) {
        /****************************************************/
		/*                                                  */
		/*                                                  */
		/*                 Private Variables                */
		/*                                                  */
		/*                                                  */
		/****************************************************/
		
		var oView;
		
		/****************************************************/
		/*                                                  */
		/*                                                  */
		/*          Class Level Priveleged Methods          */
		/*                                                  */
		/*                                                  */
		/****************************************************/
		
		this.showNextStep = function(iCurrentStep) {
		    if (iCurrentStep == 1)
		        oView.hideLocation();
		    if (iCurrentStep == 2)
		        oView.changeStep1tabstyle();
		        
		    oView.setVerticalScrollPosition();
		    oView.showStep(iCurrentStep, iCurrentStep + 1);
		}
		
		this.showPreviousStep = function(iCurrentStep) {
		    if (iCurrentStep == 2)
		    {
		        oView.setVerticalScrollPosition();
		        oView.showLocation();
		        oView.showStep(2, 1);
		    }
		}
		
		/****************************************************/
		/*                                                  */
		/*                                                  */
		/*                 Initialize Class                 */
		/*                                                  */
		/*                                                  */
		/****************************************************/
		
		oView = oNewView;
    }
    
    return fnQuoteViewHelperConstructor;
})();