            moz=document.getElementById&&!document.all
            mozHeightOffset=20
            
            
            function resize_iframe(){
                document.getElementById("brmInsuremeFrame").height=800
                document.getElementById("brmInsuremeFrame").width=600
                document.getElementById("brmInsuremeFrame").height=window.frames["brmInsuremeFrame"].document.body.scrollHeight+(moz?mozHeightOffset:0)
                document.getElementById("brmInsuremeFrame").width=window.frames["brmInsuremeFrame"].document.body.scrollWidth+(moz?mozHeightOffset:0)
                window.scroll(0,0);
                if(document.getElementById("brmInsuremeFrame").height == 0 && document.getElementById("brmInsuremeFrame").width == 0)
                {
					document.getElementById("brmInsuremeFrame").height=800
					document.getElementById("brmInsuremeFrame").width=650
                }
            }
            
            
            function URLencode(str)
            {
                return escape(str).replace(/\+/g, '%2B').replace(/\"/g,'%22').replace(/\'/g, '%27');
            }
            
            function ReloadParent()
            {
                obj = document.getElementById("ReloadParentInput");
                curr = window.frames["brmInsuremeFrame"].document.location.href;
                curr = curr.substring(0, curr.indexOf('?') + 1);
                if(curr.indexOf('?') > 0)
                {
                    curr = curr.substring(0, curr.indexOf('?'));
                }
                
                if(obj != null)
                {
                    if(obj.value.length != 0 && obj.value != curr && curr.indexOf("LoadFinalQuotes.aspx") < 0)
                    {
                        obj.value = "";

                        if(window.location.href.indexOf('?') > 0)
                        {
                            window.location.href = window.location.href.substring(0, window.location.href.indexOf('?')) + "?fr=" + URLencode(window.frames["brmInsuremeFrame"].document.location.href);
                        }
                        else
                        {
                            window.location.href + "?fr=" + URLencode(window.frames["brmInsuremeFrame"].document.location.href);
                        }
                    }
                    else
                    {
                        obj.value = curr;
                    }
                }
                window.setTimeout(resize_iframe, 1000);
                //document.body.onload = resize_iframe();
                //resize_iframe(); 
            }





function Querystring(qs, i) { // optionally pass a querystring to parse

    var infosoftglobal = new Object();
	this.params = {};
	
	qs = location.href ;
	if (qs == null) qs = location.search.substring(1, location.search.length);
	
	if (qs.length == 0) return;

// Turn <plus> back to <space>
	qs = qs.replace(/\+/g, ' ');
	var args1 = qs.split('?');
	var args = qs.split('&'); // parse out name/value pairs separated via &
	qs = args1[1];
	
}

Querystring.prototype.get = function(key, default_) {
	var value = this.params[key];
	return (value != null) ? value : default_;
}

Querystring.prototype.contains = function(key) {
	var value = this.params[key];
	return (value != null);
}

function setIframeSource(baseUrl) {

    
	var iframeElement = document.getElementById('brmInsuremeFrame');
	//get query string values
	var qs = location.search.substring(0, location.search.length);

   
	//append the query string values to the URL
	var url = baseUrl + qs;
	
	document.getElementById('brmInsuremeFrame').src = url;
}
	

