lpMTagConfig.inviteChatStart = function (objName) {
    var inviteObj = eval(objName);
    if (inviteObj==null) {
        return true;
    }

    var divObj = inviteObj.GetObj(inviteObj.divID);
    if (divObj==null) {
        return true;
    }
	
	// localisation config - texts/links
  var cc = 'us';
	var lc = 'en';
	var h1 = 'Chat with an IBM representative';
	var h2 = 'Welcome to IBM Live Chat!';
	var p1 = 'An IBM sales representative can assist you with selecting the products, solutions and services that best suit your needs.';
	var p2 = 'We\'re here to help. Click "Chat now" for a live text chat with an IBM representative.';
	var btnYes = 'Chat now.';
	var btnNo = 'No, thanks.';
	var p3 = '';
	var p4 = 'Chat service provided by IBM in conjunction with LIVEperson.';
	var lblLegal = 'Terms of use';
	var lblPrivacy = 'Privacy';
	var lblClose = 'Close';
    
    // start of popup body definition
	var inviteHTML = '';

    // popup masthead part
	inviteHTML += '<div id="top" style="height:30px; width:311px; float:left; ;background-color:#000000"> <img alt="IBM&reg;" border="0" height="30" src="http://www.ibm.com/i/v14/t/ibm-logo-small.gif" width="55" style="float:left"/>';
    inviteHTML += '<h1 style="color:#FFFFFF; font-size:16px; font-family:arial,helvetica,sans-serif; float:right; padding-top:6px; padding-right:6px;">'+h1+'<\/h1>';
    inviteHTML += '<\/div>';
	
	// popup brand/intro image
    inviteHTML += '<img src="//www.ibm.com/shop/americas/content/home/liverperson_sysx_blade/systems_family_311x90_c_1.gif" alt="" width="311" height="90" border="0"/>';

    // popup main body - content DIV start
    inviteHTML += '<div id="content" style="width:291px; float:left; padding-left:10px; padding-right:10px; text-align:left; background-color:#FFFFFF; padding-bottom:30px;">';
	
	// popup main body - headers, intro text and buttons
//    inviteHTML += '<p style="margin-top:20px;"><strong>'+h2+'<\/strong>';
//    inviteHTML += '<br /><br />'+p1+'<\/p>';
    inviteHTML += '<p>'+p2+'<\/p>';
    inviteHTML += '<p> <\/p>';
    inviteHTML += '<div id="buttons" style="width:291px; height:25px; margin-bottom:10px; display:block; padding-left:-1px;">';
    inviteHTML += '<div id="button2" style="width:100px; float:left;">';
    inviteHTML += '<img style="float:left;" src="//www.ibm.com/i/v14/buttons/chat_rd.gif" border="0" width="21" height="21" alt="" />';
    inviteHTML += '<strong>';
    inviteHTML += '<a style="float:left; height:16px; width:10px; padding-top:3px; padding-left:10px;" class="fbox" name="needRef" id="needRef" href="#" onclick="return ' + inviteObj.objName + '.AcceptInvite()">Chat now<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '<\/div>';
    inviteHTML += '<div id="button1" style="width:100px; float:left; margin-right:10px;">';
    inviteHTML += '<img style="float:left;" src="//www.ibm.com/i/v14/buttons/cancel_rd.gif" border="0" width="21" height="21" alt="" /> <strong>';
    inviteHTML += '<a style="float:left; height:16px; width:10px; padding-top:3px; padding-left:10px;" class="fbox" href="#" onclick="return ' + inviteObj.objName + '.CloseInvite();">No, thanks<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
<!--	inviteHTML += '<div id="text" style="height:100px; overflow:auto; padding-right:5px; border:1px solid #ccc; padding-left:3px; padding-top:1px;">'+p3+'<\/div>'; -->
    inviteHTML += '<div id="text4"><p>'+p4+'</p><\/div>';
    inviteHTML += '<img name="'+ inviteObj.imgCloseID +'" id="'+ inviteObj.imgCloseID +'" alt="" src="//www.ibm.com/i/c.gif" border="0" height="1" width="1" style="display:none;" />';
    inviteHTML += '<img name="'+ inviteObj.imgNeedHelpID +'" id="'+ inviteObj.imgNeedHelpID +'" alt="" src="//www.ibm.com/i/c.gif" border="0" height="1" width="1" style="display:none;" />';
    inviteHTML += '<\/div>';
    inviteHTML += '<div id="bottom" style="height:19px; width:311px; float:left; background-color:#000000;">';
    inviteHTML += '<div id="bottom1" style="height:19px; width:203px; float:left; text-align:left; padding-left:8px;"> <a style="float:left; height:16px; width:109px; padding-top:3px; font-size:9px ! important;" href="javascript:void(window.open(\'http://www.ibm.com/legal/'+cc+'/'+lc+'/\'))" class="ur-link">'+lblLegal+'<\/a> <img style="margin-left:10px; margin-right:10px; margin-top:5px; float:left;" width="1" height="10" src="http://www.ibm.com/i/v14/t/footer-divider.gif" alt="" /> <a style="float:left; height:16px; width:60px; padding-top:3px; font-size:9px ! important;" href="javascript:void(window.open(\'http://www.ibm.com/privacy/'+cc+'/'+lc+'/\'))" class="ur-link">'+lblPrivacy+'<\/a><\/div>';
    inviteHTML += '<div id="bottom1" style="height:19px; width:70px; float:left; padding-left:7px;">';
    inviteHTML += '<a style="float:right; height:16px; width:65px; padding-top:3px; font-size:9px ! important;" href="#" onClick="return ' + inviteObj.objName + '.CloseInvite();" class="mainlink">'+lblClose+' [x]<\/a>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
    inviteHTML += '<\/div>';
	
    divObj.innerHTML = inviteHTML;
    divObj.style.width = "311px";

	
    return true;
};

lpMTagConfig.InviteOpenChat = function (url, name, params) {
    params = 'top=90,left=170,width=365,height=470,menubar=no,scrollbars=0';
    window.open(url, name, params);
}

// *****************************************************************

