	var browser = new Browser();

	function WindowClass( content )
	{

		var innerTable;
		var innerTr;
		var innerTd;
		var temp;

		this.isOpen = false;

		this.Body = null;
		this.closeButton = null;
		this.contentFrame = null;

		this.Body = document.createElement("div");
		this.Body.id = "proactiveWindow";
		this.Body.className = "MainContainer";
		document.body.appendChild( this.Body );


		this.closeButton = document.createElement("div");
		this.closeButton.id = "divProactiveClose";
		this.closeButton.className = "CloseImage";
		this.closeButton.onclick = CancelProactive;
		this.Body.appendChild( this.closeButton );

		this.contentFrame = document.createElement("div");
		this.contentFrame.id = 'divProactiveText';
		this.contentFrame.className = "TextContainer";
		this.contentFrame.onclick = AcceptProactive;
		this.contentFrame.innerHTML = content;
		this.contentFrame.style.left = 0;
		this.Body.appendChild( this.contentFrame );

		document.SetTimeOut = 'false';

	}
	WindowClass.prototype.Show = function()
	{
		try{
			addEvent(window,'scroll', BodyScrolled, false);
			BodyScrolled();
			this.Body.style.display = "block";	
		}
		catch(err){}
	}
	function AcceptProactive()
	{
		userChoiceHandler( 'YES' )
	}
	function CancelProactive()
	{
		userChoiceHandler( 'NO' )
	}
	function userChoiceHandler( statusValue )
	{
		hidewindow();
		try
		{
			head = document.getElementsByTagName('head').item(0);
			script = document.createElement('script');
			script.type = 'text/javascript';
			
			script.src = strBuyerURL + "ProActiveRequestMessage.aspx?LocationID=" + document.LocationID + "&CompanyID=" + document.CompanyID + "&TeamID=" + document.TeamID + "&BuyerStatus=" + statusValue;

			script.defer = true;

			void(head.appendChild(script));
		}
		catch(err)
		{}
		
		try
		{
			if( statusValue == 'YES' )
			{
				window.open( document.NewWindowLoaction, '', 'scrollbars=yes,toolbars=no,resizable=no,status=no,height=500,width=370');
			}
		}
		catch( err ){}
	}
	function hidewindow()
	{
		document.getElementById("proactiveWindow").style.display = "none";
		try
		{
			
			removeEvent(document.getElementById("proactiveWindow"), "scroll", BodyScrolled, false); 
		}
		catch(err){}
	}

	function removeEvent(obj, eventType, afunction, isCapture) {
	    if (obj.removeEventListener) {
		obj.removeEventListener(eventType, afunction, isCapture);
		return true;
	    }
	    else if (obj.detachEvent) {
		return obj.detachEvent("on"+eventType, afunction);
	    }
	    else return false;
	}

	function addEvent(obj, eventType, afunction, isCapture) {
	    // W3C DOM
	    if (obj.addEventListener) {
	       obj.addEventListener(eventType, afunction, isCapture);
	       return true;
	    }
	    // Internet Explorer
	    else if (obj.attachEvent) {
	       return obj.attachEvent("on"+eventType, afunction);
	    }
	    else return false;
	 }


	function BodyScrolled()
	{
		if( typeof( window.innerWidth ) == 'number' ) {
		    //Non-IE
		    myWidth = window.innerWidth;
		    myHeight = window.innerHeight;
		  } else if( document.documentElement &&
			      ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
			    //IE 6+ in 'standards compliant mode'
			    myWidth = document.documentElement.clientWidth;
			    myHeight = document.documentElement.clientHeight;
		  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
			    //IE 4 compatible
			    myWidth = document.body.clientWidth;
			    myHeight = document.body.clientHeight;
		  }
		
		if (document.documentElement.scrollTop != 0){
			scrollt = document.documentElement.scrollTop;
			scrolll = document.documentElement.scrollLeft;
		}
		else if (document.body.scrollTop != 0){
			scrollt = document.body.scrollTop;
			scrolll = document.body.scrollLeft;
		}
		else{
			scrollt = 0;
			scrolll = 0;
		}
			

		document.getElementById( "proactiveWindow" ).style.top = scrollt +
		(myHeight / 2 ) - (document.getElementById("proactiveWindow").offsetHeight / 2) + 'px';

		document.getElementById( "proactiveWindow" ).style.left = scrolll +
			(myWidth / 2 ) - (document.getElementById( "proactiveWindow" ).offsetWidth / 2) + 'px';
	}