﻿var lc_floatDiv=document.getElementById("floatDiv");var lc_minDiv=document.createElement("div");lc_minDiv.setAttribute("id","minDiv");var lc_maxBtn=document.createElement("div");lc_maxBtn.setAttribute("id","maxBTN");var lc_maxAnchor=document.createElement("a");lc_maxAnchor.setAttribute("href","javascript:maximizeWindow()");var lc_maxAnchorImg=document.createElement("img");lc_maxAnchorImg.setAttribute("src",_imageURL+"trans.gif");lc_maxAnchorImg.setAttribute("alt","");lc_maxAnchorImg.setAttribute("border","0");lc_maxAnchor.appendChild(lc_maxAnchorImg);lc_maxBtn.appendChild(lc_maxAnchor);lc_minDiv.appendChild(lc_maxBtn);lc_floatDiv.appendChild(lc_minDiv);var lc_chatDiv=document.createElement("div");lc_chatDiv.setAttribute("id","ChatDiv");lc_floatDiv.appendChild(lc_chatDiv);var lc_closeBtn=document.createElement("div");lc_closeBtn.setAttribute("id","closeBTN");var lc_closeAnchor=document.createElement("a");lc_closeAnchor.setAttribute("href","javascript:CloseChatWindow()");var lc_closeAnchorImg=document.createElement("img");lc_closeAnchorImg.setAttribute("src",_imageURL+"btnClose.gif");lc_closeAnchorImg.setAttribute("alt","Close");lc_closeAnchorImg.setAttribute("width","1");lc_closeAnchorImg.setAttribute("height","1");lc_closeAnchorImg.setAttribute("border","0");lc_closeAnchor.appendChild(lc_closeAnchorImg);lc_closeBtn.appendChild(lc_closeAnchor);lc_chatDiv.appendChild(lc_closeBtn);var lc_minBtn=document.createElement("div");lc_minBtn.setAttribute("id","minBTN");var lc_minAnchor=document.createElement("a");lc_minAnchor.setAttribute("href","javascript:minimizeWindow()");var lc_minAnchorImg=document.createElement("img");lc_minAnchorImg.setAttribute("src",_imageURL+"btnMin.gif");lc_minAnchorImg.setAttribute("alt","Close");lc_minAnchorImg.setAttribute("width","1");lc_minAnchorImg.setAttribute("height","1");lc_minAnchorImg.setAttribute("border","0");lc_minAnchor.appendChild(lc_minAnchorImg);lc_minBtn.appendChild(lc_minAnchor);lc_chatDiv.appendChild(lc_minBtn);var lc_convDiv=document.createElement("div");if(typeof(lc_typing_status)!="undefined")if(lc_typing_status&&lc_typing_status!=null){var lc_typingStatus=document.createElement("img");lc_typingStatus.setAttribute("id","statusImage");lc_typingStatus.setAttribute("src",_imageURL+"typingStatus.gif");lc_typingStatus.style.display="none"}lc_convDiv.setAttribute("id","convDiv");var lc_userName=document.createElement("span");lc_userName.setAttribute("id","cwin_username");var lc_convAnchor=document.createElement("a");lc_convAnchor.setAttribute("id","conversationDIV");lc_convAnchor.setAttribute("href","#");lc_convAnchor.innerHTML="View Complete Conversation";if(typeof(lc_typing_status)!="undefined")if(lc_typing_status&&lc_typing_status!=null){lc_convDiv.appendChild(lc_typingStatus)}lc_convDiv.appendChild(lc_convAnchor);lc_convDiv.appendChild(lc_userName);lc_chatDiv.appendChild(lc_convDiv);var lc_txtChat=document.createElement("textarea");lc_txtChat.setAttribute("id","txtChatWin");lc_txtChat.setAttribute("rows","12");lc_txtChat.setAttribute("cols","40");lc_txtChat.setAttribute("readonly","readonly");lc_chatDiv.appendChild(lc_txtChat);jQuery("#txtChatWin").addClass("ConvWin");var lc_break=document.createElement("br");lc_chatDiv.appendChild(lc_break);var lc_txtMsg=document.createElement("textarea");lc_txtMsg.setAttribute("id","txtMessageWin");lc_txtMsg.setAttribute("rows","2");lc_txtMsg.setAttribute("cols","40");lc_chatDiv.appendChild(lc_txtMsg);jQuery("#txtMessageWin").addClass("MessageWin");var lc_btnSend=document.createElement("input");lc_btnSend.setAttribute("id","btnSend");lc_btnSend.setAttribute("type","button");lc_chatDiv.appendChild(lc_btnSend);jQuery("#btnSend").addClass("SendButton");var lc_btnURL=document.createElement("input");lc_btnURL.setAttribute("id","btnURL");lc_btnURL.setAttribute("type","button");lc_chatDiv.appendChild(lc_btnURL);jQuery("#btnURL").addClass("OpenButton");