var JS_CONTROL = "|RDSEPARATOR|
   Live Chat  
 


Please enter your email address and message below and we will get back to you.


Email Address:
Message:
 
Welcome to our website.

Would you like to chat with a support agent?

    
 
" var RDDomain = "http://www.readydesk.com/rd9" if(window.addEventListener) { window.addEventListener("load", readydesk_CheckChatData, false); window.addEventListener("resize", readydesk_repositionMessage, false); window.addEventListener("load", ReadyDeskAddHit, false); } else if(window.attachEvent) { window.attachEvent("onload", readydesk_CheckChatData); window.attachEvent("onload", ReadyDeskAddHit); window.attachEvent("onresize", readydesk_repositionMessage); } var readydesk_browser = window.navigator.userAgent.toLowerCase() if(readydesk_browser.search("msie") != -1 || (readydesk_browser.search("trident/7.0") != -1 && readydesk_browser.search("rv:11.0") != -1)) { readydesk_browser = "ie" } else if(readydesk_browser.search("chrome") != -1) { readydesk_browser = "chrome" } else if(readydesk_browser.search("chrome") == -1 & readydesk_browser.search("safari") != -1) { readydesk_browser = "safari" } else if(readydesk_browser.search("firefox") != -1) { readydesk_browser = "firefox" } var readydesk_chat_xml2 = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP") var readydesk_chat_xml3 = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP") var readydesk_chat_xml4 = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP") var readydesk_chat_xml5 = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP") var readydesk_traffic_xml = window.XMLHttpRequest ? new XMLHttpRequest() : new ActiveXObject("Msxml2.XMLHTTP") var readydesk_traffic_id = 0 var readydesk_pushDone = false var chat_traffic_id = 0 function readydesk_chatStatus(){ var rd_dateObj = new Date(); var readydesk_BSTR = "./readydesk.aspx?F=getchatstatus&D=" + RDDomain + "dmis=" + rd_dateObj.getTime(); readydesk_chat_xml2.onreadystatechange = readydesk_CheckChatData readydesk_chat_xml2.open("GET",readydesk_BSTR,true); readydesk_chat_xml2.send(null); } var readydesk_chatPosition var readydesk_ChatDisplayStyle function readydesk_CheckChatData(){ if(JS_CONTROL != "") { if(JS_CONTROL.indexOf("readydesk_chatdiv") != -1 && JS_CONTROL.indexOf("|RDSEPARATOR|") != -1) { var readydesk_RETArray = JS_CONTROL.split("|RDSEPARATOR|") //alert(JS_CONTROL) if(readydesk_RETArray.length == 2) { var readydesk_args = readydesk_RETArray[0].split("|") if(readydesk_args.length == 12) { var readydesk_chatStatus = readydesk_args[0]; readydesk_chatPosition = readydesk_args[1]; var readydesk_ChatBGC = readydesk_args[2]; var readydesk_ChatLabel = readydesk_args[3]; var readydesk_ChatLabelFont = readydesk_args[4]; var readydesk_ChatLabelFontSize = readydesk_args[5]; var readydesk_ChatLabelFontColor = readydesk_args[6]; var readydesk_chatImage = readydesk_args[7]; var readydesk_chatText = readydesk_args[8]; readydesk_ChatDisplayStyle = readydesk_args[9]; var readydesk_ChatLabelStyle = readydesk_args[10]; var readydesk_ChatLocation = readydesk_args[11]; if(readydesk_chatPosition == "C" && readydesk_ChatLocation != "") { if(document.getElementById(readydesk_ChatLocation)) { document.getElementById(readydesk_ChatLocation).innerHTML = readydesk_RETArray[1] } else { var readydesk_mainChatContainer = document.createElement("div"); readydesk_mainChatContainer.innerHTML = readydesk_RETArray[1]; document.body.appendChild(readydesk_mainChatContainer); } } else { var readydesk_mainChatContainer = document.createElement("div"); readydesk_mainChatContainer.innerHTML = readydesk_RETArray[1]; document.body.appendChild(readydesk_mainChatContainer); } var readydesk_o1 = document.getElementById("readydesk_chatdiv") var readydesk_o2 = document.getElementById("readydesk_bglayer") //var readydesk_o3 = document.getElementById("rdofflinediv") readydesk_o1.style.minWidth = "20px" readydesk_o1.style.minHeight = "20px" readydesk_o1.style.overflow = "auto" if(readydesk_chatPosition == "L" || readydesk_chatPosition == "R") { readydesk_o1.style.marginTop = "-" + (readydesk_o1.offsetHeight / 2) + "px" readydesk_o2.style.marginTop = readydesk_o1.style.marginTop if(readydesk_chatPosition == "L") { if(readydesk_browser != "ie" && readydesk_browser != "sfirefox" && readydesk_ChatDisplayStyle == "V") { readydesk_o1.style.left = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" } else if(readydesk_browser == "Sfirefox") { readydesk_o1.style.left = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + 5 + "px" } else { readydesk_o1.style.left = "0px" } readydesk_o2.style.height = readydesk_o1.offsetHeight + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth + 2 + "px" readydesk_o2.style.left = parseInt(readydesk_o1.style.left) + "px" readydesk_o2.style.top = parseInt(readydesk_o1.style.top) + .5 + "%" } else if(readydesk_chatPosition == "R") { if(readydesk_browser != "ie" && readydesk_browser != "firefox" && readydesk_ChatDisplayStyle == "V") { readydesk_o1.style.right = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" } else if(readydesk_browser == "firefox" && readydesk_ChatDisplayStyle == "V") { readydesk_o1.style.right = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + 5 + "px" } readydesk_o2.style.height = readydesk_o1.offsetHeight + 0 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth + 2 + "px" readydesk_o2.style.right = parseInt(readydesk_o1.style.right) + "px" readydesk_o2.style.top = parseInt(readydesk_o1.style.top) + .5 + "%" } } else { if(readydesk_chatPosition == "C") { if(readydesk_ChatLocation != "") { readydesk_o2.style.display = "none" } else { readydesk_o2.style.height = readydesk_o1.offsetHeight + "px"//+ 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth + "px" readydesk_o2.style.left = readydesk_o1.offsetLeft + 2 + "px" readydesk_o2.style.top = readydesk_o1.offsetTop + 2 + "px" } } if(readydesk_chatPosition == "TM") { readydesk_o1.style.marginLeft = "-" + (readydesk_o1.offsetWidth / 2) + "px" readydesk_o2.style.marginLeft = readydesk_o1.style.marginLeft readydesk_o1.style.top = "0px" readydesk_o1.style.left = "50%" readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth + "px" readydesk_o2.style.left = parseInt(readydesk_o1.style.left) + .3 + "%" readydesk_o2.style.top = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginTop = (readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2) + "px" readydesk_o2.style.marginTop = readydesk_o1.style.marginTop readydesk_o1.style.marginLeft = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginLeft = readydesk_o1.style.marginLeft } } else if(readydesk_chatPosition == "BM") { readydesk_o1.style.marginLeft = "-" + (readydesk_o1.offsetWidth / 2) + "px" readydesk_o2.style.marginLeft = readydesk_o1.style.marginLeft readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth + "px" readydesk_o2.style.left = parseInt(readydesk_o1.style.left) + .3 + "%" readydesk_o2.style.bottom = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginBottom = ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginBottom = readydesk_o1.style.marginBottom readydesk_o1.style.marginRight = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginRight = readydesk_o1.style.marginRight } } else if(readydesk_chatPosition == "TL") { readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth - 4 + "px" readydesk_o2.style.left = parseInt(readydesk_o1.style.left) - 4 + "px" readydesk_o2.style.top = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginTop = (readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2) + "px" readydesk_o2.style.marginTop = readydesk_o1.style.marginTop readydesk_o1.style.marginLeft = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginLeft = readydesk_o1.style.marginLeft } } else if(readydesk_chatPosition == "TR") { readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth - 4 + "px" readydesk_o2.style.right = parseInt(readydesk_o1.style.right) - 4 + "px" readydesk_o2.style.top = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginTop = (readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2) + "px" readydesk_o2.style.marginTop = readydesk_o1.style.marginTop readydesk_o1.style.marginRight = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginRight = readydesk_o1.style.marginRight } } if(readydesk_chatPosition == "BL") { readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth - 4 + "px" readydesk_o2.style.left = parseInt(readydesk_o1.style.left) - 4 + "px" readydesk_o2.style.bottom = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginBottom = ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginBottom = readydesk_o1.style.marginBottom readydesk_o1.style.marginLeft = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginLeft = readydesk_o1.style.marginLeft } } else if(readydesk_chatPosition == "BR") { readydesk_o2.style.height = readydesk_o1.offsetHeight + 4 + "px" readydesk_o2.style.width = readydesk_o1.offsetWidth - 4 + "px" readydesk_o2.style.right = parseInt(readydesk_o1.style.right) - 4 + "px" readydesk_o2.style.bottom = "0px" if(readydesk_ChatDisplayStyle == "V" && readydesk_browser != "ie") { readydesk_o1.style.marginBottom = ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginBottom = readydesk_o1.style.marginBottom readydesk_o1.style.marginRight = "-" + ((readydesk_o1.offsetWidth / 2) - (readydesk_o1.offsetHeight / 2)) + "px" readydesk_o2.style.marginRight = readydesk_o1.style.marginRight } } } } } } } } function readydesk_leaveMessage(){ var readydesk_o1 = document.getElementById("readydesk_chatdiv") var readydesk_o3 = document.getElementById("readydesk_messagediv") var readydesk_o4 = document.getElementById("readydesk_bglayer2") if(readydesk_o3.style.display == "none") { if((readydesk_chatPosition == "R" && readydesk_ChatDisplayStyle == "V") || (readydesk_chatPosition == "TR" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "firefox") { readydesk_o3.style.right = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.top = (readydesk_o1.offsetTop - (readydesk_o1.offsetWidth / 2)) + (readydesk_o1.offsetHeight / 2) + "px" } else if(readydesk_browser == "firefox") { readydesk_o3.style.right = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.top = ((readydesk_o1.offsetTop - (readydesk_o1.offsetWidth / 2)) + (readydesk_o1.offsetHeight / 2) - 2) + "px" } else { readydesk_o3.style.left = readydesk_o1.offsetLeft - 311 + "px" readydesk_o3.style.top = readydesk_o1.offsetTop + "px" } } else if((readydesk_chatPosition == "R" && readydesk_ChatDisplayStyle == "H") || (readydesk_chatPosition == "TR" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser == "firefox") { readydesk_o3.style.left = readydesk_o1.offsetLeft - (300 - readydesk_o1.offsetWidth) + "px" readydesk_o3.style.top = ((readydesk_o1.offsetTop + readydesk_o1.offsetHeight) - 2) + "px" } else { readydesk_o3.style.left = readydesk_o1.offsetLeft - (300 - readydesk_o1.offsetWidth) + "px" readydesk_o3.style.top = readydesk_o1.offsetTop + readydesk_o1.offsetHeight + "px" } } else if((readydesk_chatPosition == "TM" && readydesk_ChatDisplayStyle == "H") || (readydesk_chatPosition == "TL" && readydesk_ChatDisplayStyle == "H")) { readydesk_o3.style.left = readydesk_o1.offsetLeft + "px" readydesk_o3.style.top = readydesk_o1.offsetTop + readydesk_o1.offsetHeight + "px" } else if((readydesk_chatPosition == "TM" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "Sfirefox") { readydesk_o3.style.left = (readydesk_o1.offsetLeft - (readydesk_o1.offsetWidth*2)) + "px" readydesk_o3.style.top = "0px" } else { readydesk_o3.style.left = (readydesk_o1.offsetLeft - 311) + "px" readydesk_o3.style.top = "0px" } } else if((readydesk_chatPosition == "TL" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "firefox") { readydesk_o3.style.left = readydesk_o1.offsetHeight + "px" readydesk_o3.style.top = "0px" } else if(readydesk_browser == "firefox") { readydesk_o3.style.left = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.top = "0px" } else { readydesk_o3.style.left = readydesk_o1.offsetWidth + "px" readydesk_o3.style.top = "0px" } } else if((readydesk_chatPosition == "L" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser == "firefox") { readydesk_o3.style.left = "0px" readydesk_o3.style.top = ((readydesk_o1.offsetTop + readydesk_o1.offsetHeight) - 2) + "px" } else { readydesk_o3.style.left = "0px" readydesk_o3.style.top = readydesk_o1.offsetTop + readydesk_o1.offsetHeight + "px" } } else if((readydesk_chatPosition == "L" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "sfirefox") { readydesk_o3.style.left = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.top = (readydesk_o1.offsetTop - (readydesk_o1.offsetWidth / 2)) + (readydesk_o1.offsetHeight / 2) + "px" } else { readydesk_o3.style.left = readydesk_o1.offsetWidth + "px" readydesk_o3.style.top = readydesk_o1.offsetTop + "px" } } else if((readydesk_chatPosition == "BL" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "firefox") { readydesk_o3.style.left = (readydesk_o1.offsetHeight) + "px" readydesk_o3.style.bottom = "0px" } else if(readydesk_browser == "firefox") { readydesk_o3.style.left = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.bottom = "0px" } else { readydesk_o3.style.left = readydesk_o1.offsetWidth + "px" readydesk_o3.style.bottom = "0px" } } else if((readydesk_chatPosition == "BL" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser != "firefox") { readydesk_o3.style.left = "0px" readydesk_o3.style.bottom = readydesk_o1.offsetHeight + "px" } else { readydesk_o3.style.left = "0px" readydesk_o3.style.bottom = (readydesk_o1.offsetHeight - 2) + "px" } } else if((readydesk_chatPosition == "BM" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser != "firefox") { readydesk_o3.style.left = readydesk_o1.offsetLeft + "px" readydesk_o3.style.bottom = readydesk_o1.offsetHeight + "px" } else { readydesk_o3.style.left = readydesk_o1.offsetLeft + "px" readydesk_o3.style.bottom = (readydesk_o1.offsetHeight - 2) + "px" } } else if((readydesk_chatPosition == "BM" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie" && readydesk_browser != "Sfirefox") { //readydesk_o3.style.left = (readydesk_o1.offsetLeft + (readydesk_o1.offsetHeight)) - 309 + "px" readydesk_o3.style.left = (readydesk_o1.offsetLeft - (readydesk_o1.offsetWidth*2)) + "px" readydesk_o3.style.bottom = "0px" } else { readydesk_o3.style.left = readydesk_o1.offsetLeft + readydesk_o1.offsetWidth + "px" readydesk_o3.style.bottom = "0px" } } else if((readydesk_chatPosition == "BR" && readydesk_ChatDisplayStyle == "V")) { if(readydesk_browser != "ie") { readydesk_o3.style.right = (readydesk_o1.offsetHeight - 2) + "px" readydesk_o3.style.bottom = "0px" } else { readydesk_o3.style.right = readydesk_o1.offsetWidth + "px" readydesk_o3.style.bottom = "0px" } } else if((readydesk_chatPosition == "BR" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser == "firefox") { readydesk_o3.style.right = "0px" readydesk_o3.style.bottom = (readydesk_o1.offsetHeight - 2) + "px" } else { readydesk_o3.style.right = "0px" readydesk_o3.style.bottom = readydesk_o1.offsetHeight + "px" } } else if((readydesk_chatPosition == "C" && readydesk_ChatDisplayStyle == "H")) { if(readydesk_browser == "firefox") { readydesk_o3.style.right = "0px" readydesk_o3.style.bottom = (readydesk_o1.offsetHeight - 2) + "px" } else { readydesk_o3.style.top = readydesk_o1.offsetTop + readydesk_o1.offsetHeight + "px" readydesk_o3.style.left = readydesk_o1.offsetLeft + "px" if(parseInt(readydesk_o3.style.left) + 300 > document.documentElement.clientWidth) { readydesk_o3.style.left = null readydesk_o3.style.right = "0px" } if(parseInt(readydesk_o3.style.left) < 0) { readydesk_o3.style.left = "0px" readydesk_o3.style.right = null } if(parseInt(readydesk_o3.style.top) + 300 > document.documentElement.clientHeight) { readydesk_o3.style.top = null readydesk_o3.style.bottom = "0px" } } } readydesk_o3.style.display = "" readydesk_o3.style.display = "block" readydesk_o4.style.display = "" readydesk_o4.style.display = "block" if(readydesk_browser == "chrome") { document.getElementById("rd_msgbutton").style.position = "relative" document.getElementById("rd_msgbutton").style.bottom = "5px" } } else { readydesk_o3.style.display = "none" readydesk_o4.style.display = "none" //document.getElementById("readydesk_emailstatus").innerHTML = " " } if(readydesk_o3.offsetTop + 300 > document.documentElement.clientHeight) { readydesk_o3.style.top = null readydesk_o3.style.bottom = "0px" } if((readydesk_o3.offsetTop + readydesk_o3.offsetHeight) > (readydesk_o1.offsetTop + readydesk_o1.offsetHeight)) { //readydesk_o1.style.top = readydesk_o3.offsetTop + "px"// - readydesk_o1.offsetHeight + "px" } readydesk_o4.style.width = readydesk_o3.offsetWidth + "px" readydesk_o4.style.height = readydesk_o3.offsetHeight + "px" if(readydesk_chatPosition == "R" || readydesk_chatPosition == "TL") { readydesk_o4.style.top = readydesk_o3.offsetTop + 5 + "px" readydesk_o4.style.left = readydesk_o3.offsetLeft - 5 + "px" } else if(readydesk_chatPosition == "BL") { readydesk_o4.style.top = readydesk_o3.offsetTop - 5 + "px" readydesk_o4.style.left = readydesk_o3.offsetLeft - 5 + "px" } else if(readydesk_chatPosition == "BM" || readydesk_chatPosition == "BR") { readydesk_o4.style.top = readydesk_o3.offsetTop - 5 + "px" readydesk_o4.style.left = readydesk_o3.offsetLeft + 5 + "px" } else { readydesk_o4.style.top = readydesk_o3.offsetTop + 5 + "px" readydesk_o4.style.left = readydesk_o3.offsetLeft + 5 + "px" } } function readydesk_repositionMessage(){ if(document.getElementById("readydesk_messagediv")) { var readydesk_o3 = document.getElementById("readydesk_messagediv") if(readydesk_o3.style.display != "none") { readydesk_o3.style.display = "none" readydesk_leaveMessage() } var readydesk_bg3 = document.getElementById("readydesk_bglayer3") if(readydesk_bg3.style.display != "none") { readydesk_bg3.style.left = document.getElementById("readydesk_pushdiv").offsetLeft + 5 + "px" readydesk_bg3.style.top = document.getElementById("readydesk_pushdiv").offsetTop + 5 + "px" } } } function readydesk_sendMessage(){ try { var emailVal = document.getElementById("txtREADYDESK_EMAIL").value if(emailVal.indexOf("@") == -1 || emailVal.indexOf(".") == -1) { alert("Please enter a valid email address") } else if(emailVal.indexOf("@") != -1 && emailVal.indexOf(".") != -1) { var EArray = emailVal.split("@") if(EArray[0] != "" && EArray[1] != "") { EArray = EArray[1].split(".") if(EArray[0] != "" && EArray[1] != "") { var rd_dateObj = new Date(); var readydesk_BSTR = "./readydesk.aspx?F=processchatmsg&E=" + escape(document.getElementById("txtREADYDESK_EMAIL").value) + "&M=" + escape(document.getElementById("txtREADYDESK_MSG").value) + "&D=" + RDDomain + "&dmis=" + rd_dateObj.getTime(); readydesk_chat_xml3.onreadystatechange = readydesk_CheckChatData2 readydesk_chat_xml3.open("GET",readydesk_BSTR,true); readydesk_chat_xml3.send(null); } else { alert("Please enter a valid email address") } } else { alert("Please enter a valid email address") } } } catch(e) { alert("1 Please enter a valid email address") } } function readydesk_CheckChatData2(){ if(readydesk_chat_xml3.readyState==4) { var readydesk_RETSTR = readydesk_chat_xml3.responseText; //alert(readydesk_RETSTR) if(readydesk_RETSTR != "") { if(readydesk_RETSTR == "success") { //document.getElementById("readydesk_emailstatus").innerHTML = "Your email has been sent" alert("Your message has been sent") readydesk_leaveMessage() document.getElementById("txtREADYDESK_EMAIL").value = "" document.getElementById("txtREADYDESK_MSG").value = "" } else { //document.getElementById("readydesk_emailstatus").innerHTML = "There was a problem sending your message. Please check your email address and try again." alert("There was a problem sending your email.\n\nPlease check that your email address is valid and try again.") } } } } function readydesk_openChat(){ try { if(!document.all && readydesk_browser != "ie") { popupCenter(RDDomain + "/chat/default.aspx?CID=guest&FE=Y&RH=" + window.location.hostname,"",450,450) } else { popupCenter(RDDomain + "/chat/default.aspx?CID=guest&FE=Y&RH=" + window.location.hostname,"",400,420) } } catch(e) { alert("Please disable your pop-up blocker to use thie feature.") } } function popupCenter(url, title, w, h) { var left = (screen.width/2)-(w/2); var top = (screen.height/2)-(h/2); return window.open(url, title, 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=no, resizable=no, copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } function CheckPush(){ var rd_dateObj = new Date(); //alert("readydesk_traffic_id=" + readydesk_traffic_id) var readydesk_chat_BSTR = "./readydesk.aspx?F=checkchatpush&D=" + RDDomain + "&dmis=" + rd_dateObj.getTime(); readydesk_chat_xml4.onreadystatechange = readydesk_pushReturn readydesk_chat_xml4.open("GET", readydesk_chat_BSTR, true); readydesk_chat_xml4.send(null); } function readydesk_pushReturn(){ if(readydesk_chat_xml4.readyState==4) { var readydesk_RETSTR = readydesk_chat_xml4.responseText; if(readydesk_RETSTR != "" && readydesk_RETSTR != "undefined" && readydesk_RETSTR != null) { var readydesk_RETArray = readydesk_RETSTR.split("|") if(readydesk_RETArray.length == 3) { if(chat_traffic_id == "" || chat_traffic_id == null || chat_traffic_id == 0) { chat_traffic_id = readydesk_RETArray[0]; } var PUSH_SENT = readydesk_RETArray[1]; var PUSH_RESPONSE = readydesk_RETArray[2]; if(PUSH_SENT == "Y" && PUSH_RESPONSE != "Y" && PUSH_RESPONSE != "N" && !readydesk_pushDone) { readydesk_pushDone = true; showPush(); } else if(PUSH_RESPONSE == "N" || PUSH_RESPONSE == "Y" || readydesk_pushDone) { window.clearInterval(readydesk_pushInt) if(PUSH_RESPONSE == "N" || PUSH_RESPONSE == "Y") { MakeCookie("readydesk_chat_status", PUSH_RESPONSE) } } } } } } function showPush(){ if(document.getElementById("readydesk_pushdiv")) { var readydesk_pushdiv = document.getElementById("readydesk_pushdiv") var readydesk_bg3 = document.getElementById("readydesk_bglayer3") readydesk_pushdiv.style.display = "" readydesk_pushdiv.style.display = "block" readydesk_bg3.style.display = "" readydesk_bg3.style.display = "block" readydesk_pushdiv.style.marginTop = "-" + (readydesk_pushdiv.offsetHeight / 2) + "px" readydesk_pushdiv.style.marginLeft = "-" + (readydesk_pushdiv.offsetWidth / 2) + "px" readydesk_bg3.style.width = readydesk_pushdiv.offsetWidth + "px" readydesk_bg3.style.height = readydesk_pushdiv.offsetHeight + "px" readydesk_bg3.style.left = readydesk_pushdiv.offsetLeft + 5 + "px" readydesk_bg3.style.top = readydesk_pushdiv.offsetTop + 5 + "px" } } function updatePush(sVal){ var rd_dateObj = new Date(); var readydesk_chat_BSTR = "./readydesk.aspx?F=updatechatpush&ID=" + chat_traffic_id + "&V=" + sVal + "&D=" + RDDomain + "&dmis=" + rd_dateObj.getTime(); //alert(readydesk_chat_BSTR) readydesk_chat_xml5.open("GET",readydesk_chat_BSTR,true); readydesk_chat_xml5.send(null); if(sVal == "Y") { window.clearInterval(readydesk_pushInt) MakeCookie("readydesk_chat_status", "Y") readydesk_openChat() document.getElementById("readydesk_pushdiv").style.display = "none" document.getElementById("readydesk_bglayer3").style.display = "none" } else if(sVal == "N") { window.clearInterval(readydesk_pushInt) MakeCookie("readydesk_chat_status", "N") document.getElementById("readydesk_pushdiv").style.display = "none" document.getElementById("readydesk_bglayer3").style.display = "none" } } function MakeCookie(name, value, path) { var expiration_date = new Date (); expiration_date.setYear(expiration_date.getFullYear()) expiration_date.setHours(expiration_date.getHours()) expiration_date.setMinutes(expiration_date.getMinutes() + 20); expiration_date = expiration_date.toUTCString (); var cookie_string = escape(name) + "=" + escape(value) + "; expires=" + expiration_date; if(path != null) { cookie_string += "; path=" + path; } document.cookie = cookie_string; } function Get_Cookie(name) { var start = document.cookie.indexOf(name+"="); var len = start+name.length+1; if ((!start) && (name != document.cookie.substring(0,name.length))) return null; if (start == -1) return null; var end = document.cookie.indexOf(";",len); if (end == -1) end = document.cookie.length; return unescape(document.cookie.substring(len,end)); } if(Get_Cookie("readydesk_chat_status") != "N" && Get_Cookie("readydesk_chat_status") != "Y") { var readydesk_pushInt = window.setInterval("CheckPush()", 1000) } function ReadyDeskAddHit(){ var rd_dateObj = new Date(); var readydesk_traffic_BSTR = "./readydesk.aspx?IP=54.234.0.2&F=addtraffic&R=" + escape(document.referrer) + "&C=" + escape(window.location) + "&UA=" + escape("CCBot/2.0 (http://commoncrawl.org/faq/)") + "&D=" + RDDomain + "&dmis=" + rd_dateObj.getTime(); readydesk_traffic_xml.onreadystatechange = readydesk_GetTrafficID readydesk_traffic_xml.open("GET",readydesk_traffic_BSTR,true); readydesk_traffic_xml.send(null); } function readydesk_GetTrafficID(){ if(readydesk_traffic_xml.readyState==4) { var readydesk_RETSTR = readydesk_traffic_xml.responseText; //alert(readydesk_RETSTR) if(readydesk_RETSTR != "") { if(readydesk_RETSTR.indexOf("|") != 0) { var rd_traffic_RETArray = readydesk_RETSTR.split("|") readydesk_traffic_id = rd_traffic_RETArray[0] var readydesk_traffic_push = rd_traffic_RETArray[1] var readydesk_traffic_duration = rd_traffic_RETArray[2] //alert(readydesk_traffic_push) if(readydesk_traffic_push == "Y" && !isNaN(readydesk_traffic_duration)) { window.setTimeout("SendPush()", readydesk_traffic_duration * 1000) } } if(!isNaN(readydesk_RETSTR)) { readydesk_traffic_id = readydesk_RETSTR } } } } function SendPush(){ if(!isNaN(readydesk_traffic_id)) { var rd_dateObj = new Date(); var readydesk_traffic_BSTR = "./readydesk.aspx?F=setchatpush&ID=" + readydesk_traffic_id + "&dmis=" + rd_dateObj.getTime(); //alert(readydesk_traffic_BSTR) readydesk_traffic_xml.open("GET",readydesk_traffic_BSTR,true); readydesk_traffic_xml.send(null); } }