﻿var QuoteView = (function() {
    function fnQuoteViewConstructor() {
        /****************************************************/
		/*                                                  */
		/*                                                  */
		/*           Class Level Priveleged Methods         */
		/*                                                  */
		/*                                                  */
		/****************************************************/
		this.changeStep1tabstyle = function()
		{
		    $("tbStep1").style.cursor = "default";
		}
		
		this.addRegion = function(sValue, sText, bSelected) {
		    $("lstRegions").insert(new Element("option", {value: sValue, selected: bSelected}).update(sText), "bottom")
		}
		
		this.hideLocation = function() {
		    $("grpLocation").addClassName("Hidden");
		}
		
		this.setVerticalScrollPosition = function() {
		    $$("body").first().scrollTo();
		}
		
		this.showLocation = function() {
		    $("grpLocation").removeClassName("Hidden");
		}
		
		this.showStep = function(iPreviousStep, iNextStep) {
		    var oTabControl = $$("div.WizardTabControl").first();
		    oTabControl.removeClassName("Step" + iPreviousStep.toString());
		    oTabControl.addClassName("Step" + iNextStep.toString());
		}
    }
    
    return fnQuoteViewConstructor;
})();