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 img = '/services/us/en/liveassist/liveperson.jpg';
	var h1 = 'Chat with an IBM representative';
	var h2 = 'IBM Services deliver real<br />business results.';
	var p1 = 'We\'re here to help. Click "Chat now" for a live text chat with an IBM representative.';
	var p2 = 'Chat service provided by IBM in conjunction with LIVEperson.';
	var btnYes = 'Chat now';
	var btnNo = 'No, thanks';
	var p3 = 'Bei Klicken auf "Ja" wird Ihre IP-Adresse f&uuml;r  den Aufbau des Chats ben&ouml;tigt, und die IBM und ihr Subunternehmer &bdquo;Live Person&ldquo;  werden sie auf einem internationalen Server speichern. Alle Daten (mit Ausnahme  der Transaktionsdaten, die f&uuml;r den Zeitraum von 12 Monaten aufgezeichnet und gespeichert werden) werden am Ende der Sitzung von den Systemen der IBM und Live  Person gel&ouml;scht.<br />Wenn Sie auf &bdquo;Ja&ldquo; klicken, k&ouml;nnen Sie den Chat sp&auml;ter jederzeit beenden, indem Sie Ihren Browser schlie&szlig;en. Wenn Sie auf &quot;Nein&quot; klicken, werden von der IBM oder Live Person keine Ihrer Daten aufgezeichnet oder gespeichert. Sie k&ouml;nnen aber gerne weiter unsere Seiten besuchen.';
	var p4 = 'Chat-Service von IBM in Zusammenarbeit mit 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:348px; 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 += '<div style="background:url(' + img + ') 0 0 no-repeat; width:348px; height:94px; float:left;"><p style="margin:25px 0 0 10px; font-size:1.2em; text-align:left;"><strong>'+h2+'<\/strong></div>';

    // popup main body - content DIV start
    inviteHTML += '<div id="content" style="width:328px; 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:16px;">'+p1+'<\/p>';
    inviteHTML += '<table width="100%" id="buttons"><tr><td width="50%" id="button2">';
    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:120px; padding-top:3px; padding-left:10px;" class="fbox" name="needRef" id="needRef" href="#" onclick="return ' + inviteObj.objName + '.AcceptInvite()">'+btnYes+'<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '</td><td width="50%" id="button1">';
    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:120px; padding-top:3px; padding-left:10px;" class="fbox" href="#" onclick="return ' + inviteObj.objName + '.CloseInvite();">'+btnNo+'<\/a>';
    inviteHTML += '<\/strong>';
    inviteHTML += '</td></tr></table>';
    inviteHTML += '<p></p><p style="font-size:.8em;">'+p2+'<\/p>';
	
	// popup - legal text
	// 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>';
	
	// popup - mandatory init objects - DO NOT DARE TO REMOVE THESE!!!!
	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;" />';
	
	// popup main body - content DIV end
	inviteHTML += '<\/div>';
	
    // popup footer part
	inviteHTML += '<div id="bottom" style="height:19px; width:348px; float:left; background-color:#000000;">';

// **** 16 Dec 2008 - Removed Terms & Privacy links. To re-enable, un-comment this section **** //
//    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;">';
// **** End section **** //

    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 = "348px";
	
    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);
}

// *****************************************************************

