<!-- Begin
var POPUPCHAT_DELAY_TIME= 120000; //In milliseconds. , Current Delay setting is 2 minutes
var ENABLE_POPUPCHAT_WINDOW= false; // Use this to enable or disable ProActive Chat
var CLOSE_TIME = 0; // Close window after __ number of seconds?
					// 0 = do not close, anything else = number of seconds
//var URL = "https://server.iad.liveperson.net/hc/10502888/?cmd=file&file=chatFrame&site=10502888&referrer=https://www.microsoftincentives.com/"
var URL = "https://server.iad.liveperson.net/hc/10502888/?cmd=file&file=visitorWantsToChat&site=10502888&SESSIONVAR!skill=incentives&SESSIONVAR!survey_pre-chat_enable=on&referrer='+escape(document.location)"
var WIDTH = 472;  // width of window in pixels
var HEIGHT = 320; // height of window in pixels
var POPUP_WINDOW_NAME='chat10502888'; //LivePerson Chat Identifier
var TIMER;


function Start(URL, WIDTH, HEIGHT) {
windowprops = "scrollbars=1,resizable=0,left=50,top=50,width=" + WIDTH + ",height=" + HEIGHT;
preview = window.open(URL, POPUP_WINDOW_NAME, windowprops);
if (CLOSE_TIME) setTimeout("preview.close();", CLOSE_TIME*1000);
}

function doPopup() {

//Display Popup only if the configuration is set to display Chat Popup window.
if(ENABLE_POPUPCHAT_WINDOW==true)
	{
		TIMER = setTimeout("Start(URL, WIDTH, HEIGHT)", POPUPCHAT_DELAY_TIME);
	}

}

function resetTimeOut()
{

CLOSE_TIME=0;
window.clearTimeout(TIMER);
//Reenable the timeout
doPopup();
}
//  End -->

