function readWrite_table()
{
  
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://forums.cisco.com/readwrite/conv_ajx.css\" />");
document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.cisco.com/swa/c/sitecopy_setup_L3.css\" />");
  document.write("<div id=\"forums\" class=\"mainForums\">");
  document.write("<div id=\"head\" class=\"head\">Conversations</div>");
  document.write("<div id=\"heading\" class=\"heading\">");
  document.write("</div><div id=\"reply\"></div>");
  document.write("<div id=\"footer\" class=\"footer\"><div id=\"startforumlink\" style=\"float:left; margin-top:2px;\"><a style=\"text-decoration:none;\" href=\"javascript:void(0)\" onclick=\"javascript:child('http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?Community=CBDF&Forum=CBDF%20Forum&Topic=Healthcare&needs_authentication=yes&cmd=startconv&mode=show&Communityid=.2cbd6e00&Forumid=.2cbd6e01&Topicid=.1ddd47f8','popwin','width=500, height=500, resizable=yes, scrollbars=yes');return false;\"><img src=\"http://forums.cisco.com/readwrite/start.gif\" alt=\"start a conversation\" /></a> <a style=\"text-decoration:none;\" href=\"#\"><img src=\"http://forums.cisco.com/readwrite/subscriptions.gif\" alt=\"Subscribe\" /></a> <a style=\"text-decoration:none;\" href=\"#\"><img src=\"http://forums.cisco.com/readwrite/RSS3.gif\" alt=\"RSS\" /></a></div><div style=\"float: right; width:auto; text-decoration:none; margin-top:0px; margin-bottom:4px; \" id=\"noofoptions\" class=\"startconversation\">No.of Conversations:&nbsp;<select id=\"noofconversations\" name=\"noofconversations\" onchange=\"noofOptFunc(this)\" style=\"height:17px; font-size:10px;\"></select></div></div></div>");
 document.write("<script language=\"javascript\">configureXML();</\script>");
}

//Global Variables
var xmlobj=null; // This is for Loading Data Function
var httpRequest = false; //Initially setting the Http Request to false
var nItemNode = 0; // No.of MasterNodes
var messNode = 0; // No.of MessNodes
var nActiveMessages = 0; // No.of ActiveMessages
var nCommunity = 0; // No.of nCommunity
var nForum = 0; // No.of nForum
var nTopic = 0; // No.of nTopic
var nCommunityTitle;
var nCommunityId;
var nForumId;
var nForumTitle;
var nTopicId;
var nTopicTitle;
var replyLink;
var xmlData;
var minus = 'http://forums.cisco.com/readwrite/minus.gif';
var plus = 'http://forums.cisco.com/readwrite/plus.gif';
var gradient = 'http://forums.cisco.com/readwrite/gradient3.gif';
var img = new Image();
img.src = "plus.gif";

var img1 = new Image();
img1.src = "plus.gif";

var msg_v;
var msg_level;
var msg_level_inc=0;

var id;
var firstLeveDivIds = new Array();
var secondLeveDivIds = new Array();

var src='';
var noofOptionsClicked;
var downloadURL;
var xmldataCount=0;
var xmlData1;


function getXML(data)
{
if(xmldataCount==0){
xmlData = data;
xmldataCount++;
}
else {
xmlData1=data;
xmldataCount++;
}
}

function loadXML(string)
{
var Doc;
try //Internet Explorer
  {
  Doc=new ActiveXObject("Microsoft.XMLDOM");
  Doc.async="false";
  Doc.loadXML(string);

  }
catch(e)
  {
  try // Firefox, Mozilla, Opera, etc.
    {
    parser=new DOMParser();
    Doc=parser.parseFromString(string,"text/xml");

    }
  catch(e)
    {
    alert(e.message);
    return;
    }
  }
return(Doc);
}



// Configuring XML Function
function configureXML()
{
  //Need to give XML file path here /eforumService/topic.1ddd47f8.xml
  //makeRequest('/eforumService/topic.1ddd47f8.xml');
      forumData()
}

//Making a request to the xml
function makeRequest(url)
{
      httpRequest = false;
      if (window.XMLHttpRequest) { // For Mozilla, Safari,... Browser's
         httpRequest = new XMLHttpRequest();
         if (httpRequest.overrideMimeType) {
            httpRequest.overrideMimeType('text/xml');
         }
      } else if (window.ActiveXObject) { // For IE Browser
         try {
            httpRequest = new ActiveXObject("Msxml2.XMLHTTP");
         } catch (e) {
            try {
               httpRequest = new ActiveXObject("Microsoft.XMLHTTP");
            } catch (e) {}
         }
      }
      if (!httpRequest) {
         alert('Cannot Create XMLHTTP Instance');
         return false;
      }
      httpRequest.onreadystatechange = forumData; //Calling a function forumData()
      httpRequest.open('GET', url, true);
      httpRequest.send(null);
}

//If the request is success then forumData() function is called
function forumData()
{


      var xmlDoc = loadXML(xmlData);
      //alert(xmlDoc);


      nItemNode = xmlDoc.getElementsByTagName("Conversation");
      nActiveMessages = xmlDoc.getElementsByTagName("ActiveMessages");
      nCommunity = xmlDoc.getElementsByTagName("Community");
      nForum = xmlDoc.getElementsByTagName("Forum");
      nTopic = xmlDoc.getElementsByTagName("Topic");
      nMessage = xmlDoc.getElementsByTagName("Message");

      nCommunityTitle=nCommunity[0].getAttribute('title');
      nCommunityId=nCommunity[0].getAttribute('id')
      nForumId=nForum[0].getAttribute('id');
      nForumTitle=nForum[0].getAttribute('title');
      nTopicId=nTopic[0].getAttribute('id');
      nTopicTitle=nTopic[0].getAttribute('title');
      var rssURL = "http://forums.cisco.com/eforumService/topic" + nTopicId + ".xml";




  var subscribeURL ='http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(nCommunityTitle)+'&Forum='+escape(nForumTitle)+'&Topic='+escape(nTopicTitle)+'&cmd=modify_subscription&mode=process&subscriptionType=notify&isTopic=yes&needs_authentication=yes&Communityid='+nCommunityId+'&Forumid='+nForumId+'&Topicid='+nTopicId+'&location='+nTopicId+'&subscribe=true';
  var startConversation='http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(nCommunityTitle)+'&Forum='+escape(nForumTitle)+'&Topic='+escape(nTopicTitle)+'&needs_authentication=yes&cmd=startconv&mode=show&Communityid='+nCommunityId+'&Forumid='+nForumId+'&Topicid='+nTopicId;
  downloadURL= 'http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(nCommunityTitle)+'&Forum='+escape(nForumTitle)+'&Topic='+escape(nTopicTitle)+'&needs_authentication=yes&cmd=download&mode=save&Communityid='+nCommunityId+'&Forumid='+nForumId+'&Topicid='+nTopicId;

document.getElementById("head").innerHTML=nForumTitle+ "  -" + nTopicTitle + " Conversations";

  document.getElementById("startforumlink").innerHTML = '<a href=\"javascript:void(0)\" onclick=\"javascript:child(\''+startConversation+'\',\'popwin\',\'width=500, height=500, resizable=yes, scrollbars=yes\');return false;\"><img src=\"http://forums.cisco.com/readwrite/start.gif\" alt=\"start a conversation\" /></a> <a href=\"javascript:void(0)\" onclick=\"javascript:child(\''+subscribeURL+'\',\'popwin\',\'width=600, height=600, toolbar=yes, resizable=yes, scrollbars=yes\');return false;\"><img src=\"http://forums.cisco.com/readwrite/subscriptions.gif\" alt=\"Subscribe\" /></a> <a href=\"javascript:void(0)\" onclick=\"window.open(\''+rssURL+'\')\"><img src=\"http://forums.cisco.com/readwrite/RSS3.gif\" alt=\"RSS\" />';

      var noofOptionNodes=parseInt(nItemNode.length/10);
      var noofOptionsLeft=parseInt(nItemNode.length%10);

      if(noofOptionNodes>0)
      {
        if(noofOptionsLeft>0 && noofOptionsLeft<10)
        { noofOptionNodes=noofOptionNodes+1;}

        var optionsAll=noofOptionNodes;

        for (var i = 1; i <= noofOptionNodes; i++)
        {
          var count=i*10;

          optionsAll--;

          var length=document.getElementById('noofconversations').options.length;
          document.getElementById('noofconversations').options.length=length;
          if(optionsAll!=0)
          {document.getElementById('noofconversations').options[document.getElementById('noofconversations').options.length]=new Option(count,count);}
          else
          {document.getElementById('noofconversations').options[document.getElementById('noofconversations').options.length]=new Option("All",count);}
        }
        document.getElementById('noofconversations').selectedIndex=0;
        noofOptionsClicked=document.getElementById('noofconversations').value;
      }
      else
      {
        var length=document.getElementById('noofconversations').options.length;
        document.getElementById('noofconversations').options.length=length;
        document.getElementById('noofconversations').options[document.getElementById('noofconversations').options.length]=new Option(10,10);
        document.getElementById('noofconversations').disabled=true;
      }
      totalContent(noofOptionsClicked,nItemNode);

}

function get_cookie(name)
{

  var results = document.cookie.match ( name + '=(.*?)(;|$)' );

  if ( results )
    return ( unescape ( results[1] ) );
  else
    return null;
}


function noofOptFunc(thisObj)
{
  noofOptionsClicked=Number(thisObj.value);
  //alert(noofOptionsClicked);
  totalContent(noofOptionsClicked,nItemNode);
  //return noofOptionsClicked;
}

var margin_top;
var margin_left_first;
var margin_left_second;
var margin_reply_first;
var margin_reply_second;
var browser=navigator.appName
  if (browser=="Netscape")
  {
    margin_top="0px";
    margin_left_first=8;
    margin_left_second=65;
    margin_reply_first=55;
    margin_reply_second=80;

  }
  else if(browser=="Microsoft Internet Explorer")
  {
    margin_top="0px";
    margin_left_first=10;
    margin_left_second=45;
    margin_reply_first=65;
    margin_reply_second=82;
  }


function totalContent(noofOptionsClicked,nItemNode)
{

  //alert(noofOptionsClicked);
  if(noofOptionsClicked>nItemNode.length)
  {

    noofOptionsClicked=nItemNode.length;
  }else if(nItemNode.length < 10)
  {

    noofOptionsClicked=nItemNode.length;
  }


  src='';
  for(i=0;i<noofOptionsClicked;i++)
  {
    src=src+'<div id="sub_heading_'+i+'" class="sub_heading"></div>';
  }// item Tag

  document.getElementById("heading").innerHTML = src;
  for(var i=0;i<noofOptionsClicked;i++)
  {
    var authorInfo;
    if(nItemNode[i].getElementsByTagName('Author')[0].getAttribute('authinfo')!=null)
    {
      authorInfo=nItemNode[i].getElementsByTagName('Author')[0].getAttribute('authinfo');
    }else
    {
      authorInfo="N/A";
    }
    var author="";
   if(nItemNode[i].getElementsByTagName('Author')[0].firstChild != null) {
    	author=nItemNode[i].getElementsByTagName('Author')[0].firstChild.nodeValue;
     }
     else
    {
      author="";
    }

    var timestamp=nItemNode[i].getElementsByTagName('Timestamp')[0].firstChild.nodeValue;
    var image_id="image"+i;

    //var message=nItemNode.item(i).attributes[3].nodeValue;
    var message=nItemNode.item(i).getAttribute('title');


    //var replies=nItemNode.item(i).attributes[1].nodeValue;
    var replies=nItemNode.item(i).getAttribute('messages');

    //alert(replies);

    firstLeveDivIds[i]="message_"+i;

    document.getElementById("sub_heading_"+i).innerHTML='<div style="margin-top:'+margin_top+';"><div class="conversation" id="conversation'+i+'">&nbsp;<a href="javascript:void(0)" onClick="show_message('+i+');" style="text-decoration:none; color:#2A6682; font-size:11px; font-weight:bold;"><span style="font-weight:bold; text-decoration:none;" id="'+image_id+'"><div id="toggle" align="center" style="margin-top:-12px;">+</div></span><span style="padding-left:12px;" id="conversationMess'+i+'">'+message.substring(0,24)+'...</span></a>&nbsp;&nbsp;&nbsp;&nbsp;'+author+'&nbsp;&nbsp;&nbsp;&nbsp;<span style="font-weight:bold">'+replies+' replies</span>&nbsp;&nbsp;&nbsp;&nbsp;'+timestamp+'</div></div><div id="message_'+i+'" style="display:none; height:100%;"></div>';
  } // For Loop Close

  show_cookie();
}

var imageID;
var subImageID;

function hide_prev_msgs(divId)
{

  for(var j=0;j<noofOptionsClicked;j++)
  {
    if(divId == firstLeveDivIds[j])
    {
      imageID = (divId).replace('message_','image');
      if(document.getElementById(firstLeveDivIds[j]).style.display == "none")
      {
        document.getElementById(firstLeveDivIds[j]).style.display="";
        document.getElementById(imageID).innerHTML = '<img src="minus.gif" border="0">';

      }else
      {
        document.getElementById(firstLeveDivIds[j]).style.display="none";
        document.getElementById(imageID).innerHTML = '<img src="http://forums.cisco.com/readwrite/plus.gif"  border="0">'

      }
    }
    else
    {
      if(document.getElementById(firstLeveDivIds[j]).style.display == "")
      {
        document.getElementById((firstLeveDivIds[j]).replace('message_','image')).innerHTML = '<img src="http://forums.cisco.com/readwrite/plus.gif"  border="0">';
        document.getElementById(firstLeveDivIds[j]).style.display="none";
      }
    }
  }
}

function showMsg(divId)
{

  var slipt = divId.split("_");
  //alert(slipt[1]);
  var convId = divId.split("_");

  imageID = (divId).replace('message_','image');
    if(document.getElementById(divId).style.display == "none")
      {
        document.getElementById(divId).style.display="";
        document.getElementById(imageID).innerHTML = '<div id="toggle" align="center" style="margin-top:-12px;">-</div>';
        document.getElementById("conversation"+convId[1]).style.backgroundImage ='url(con_bg2.gif)';
         var message=nItemNode.item(convId[1]).getAttribute('title');
        document.getElementById("conversationMess"+convId[1]).innerHTML = message;
        document.getElementById("sub_heading_"+convId[1]).style.borderBottom ='#CCCCCC solid 3px';
      }else
      {
        document.getElementById(divId).style.display="none";
        document.getElementById("sub_heading_"+convId[1]).style.borderBottom ='';
         var message=nItemNode.item(convId[1]).getAttribute('title');

        document.getElementById("conversationMess"+convId[1]).innerHTML = message.substring(0,24)+'..';
        document.getElementById(imageID).innerHTML = '<div id="toggle" align="center" style="margin-top:-12px;">+</div>';
        document.getElementById("conversation"+convId[1]).style.backgroundImage ='';
      }

}


function showSubMsg(divId)
{

    subImageID = (divId).replace('message','img');
    if(document.getElementById(divId).style.display == "none")
      {
        document.getElementById(divId).style.display="";
        document.getElementById(subImageID).innerHTML = '<div id="toggle" align="center">-</div>';
        document.getElementById("reply_"+divId).className = 'reply_cls_off';
      }else
      {
        document.getElementById(divId).style.display="none";
        document.getElementById(subImageID).innerHTML = '<div id="toggle" align="center">+</div>';
        document.getElementById("reply_"+divId).className = 'reply_cls';
      }

}



function hide_prev_submsgs(divId)
{

  subImageID = (divId).replace('message','img');

  for(var j=1;j<secondLeveDivIds.length;j++)
  {
    subImageID = (divId).replace('message','img');
    if(divId == secondLeveDivIds[j])
    {
      if(document.getElementById(secondLeveDivIds[j]).style.display == "none")
      {
        document.getElementById(secondLeveDivIds[j]).style.display="";
        document.getElementById(subImageID).innerHTML = '[-]';
      }else
      {
        document.getElementById(secondLeveDivIds[j]).style.display="none";
        document.getElementById(subImageID).innerHTML = '[+]'
      }
    }
    else
    {
      if(document.getElementById(secondLeveDivIds[j]).style.display == "")
      {
        document.getElementById((secondLeveDivIds[j]).replace('message','img')).innerHTML = '<strong>[+]</strong>';
        document.getElementById(secondLeveDivIds[j]).style.display="none";

      }
    }
  }
}
// Removes starting whitespaces
function LTrim(value){
  var re = /\s*((\S+\s*)*)/;
  return value.replace(re, "$1");
}
// Removes ending whitespaces
function RTrim( value ) {
  var re = /((\s*\S+)*)\s*/;
  return value.replace(re, "$1");
}

function check(f){
var t;
if(f.closed)
{
return false;
}
else{
           //alert("please close this alert box after the popup window is closed");
         window.location.reload();
         check(f);
}
}
function child(a,b,c,d,e,f)
{
   window.open(a,b,c,d,e,f);

   return false;

}

function child(a,b,c,d,e,f,h)
{
   window.open(a,b,c,d,e,f,h);

   return false;

}

function trim(value) {
  return LTrim(RTrim(value));
}

      var margin_left_first1 = 0;
      var margin_reply_first1 = 0;

function show_message(id)
{

  document.cookie="click="+id+"";


  var src1 = "";

  var x=nItemNode[id].getElementsByTagName('Msgbody');

  var nConversationId=nItemNode[id].getAttribute('id'); //ConversationID
  var nConversationTitle=nItemNode[id].getAttribute('title'); //ConversationTitle


  var msgTag=nItemNode[id].getElementsByTagName('Message'); //Message Tag
  var nMessageId=msgTag[0].getAttribute('id'); // Message Id
  var authorId="";
   if(nItemNode[id].getElementsByTagName('Author')[0].firstChild != null) {
    	authorId=String(nItemNode[id].getElementsByTagName('Author')[0].firstChild.nodeValue); 
     }
     else
    {
      authorId="";
    }



  //var =nItemNode[id].getElementsByTagName('FileName');
    var attachment =nItemNode[id].getElementsByTagName('Document');

  var package ='';
  if(attachment.length > 0)
    {
       package ='<br><h3 style="font-size:12px; font-weight:bold;">File Download</h3>';
       for(z=0;z<attachment.length;z++) {
        var fileName=attachment[z].getElementsByTagName('FileName')[0].firstChild.nodeValue;
      	 var docId = attachment[z].getElementsByTagName('DocID')[0].firstChild.nodeValue;
        var size = attachment[z].getElementsByTagName('Size')[0].firstChild.nodeValue;

      package = package + '<br>' + '<div style="border:#CCCCCC 1px solid; width:200px;"><img src="http://forums.cisco.com/images/icon_unknown_att.gif" border="0" alt="x-gzip file">&nbsp;'+fileName+' '+size+'<a href="javascript:acceptableUse('+docId+');"><img src="http://forums.cisco.com/images/icon_download_att.gif" border="0" alt="Download"></a></div>';
      }
    }else {
    package = '';
    }


    var message=x[0].firstChild.nodeValue;

    var replyLinkForFirstLevel='http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(nCommunityTitle)+'&Forum='+escape(nForumTitle)+'&Topic='+escape(nTopicTitle)+'&Conversation='+escape(nConversationTitle)+'&Message=reply%20by%20'+authorId+'&needs_authentication=yes&cmd=reply&mode=show&Communityid='+nCommunityId+'&Forumid='+nForumId+'&Topicid='+nTopicId+'&Conversationid='+nConversationId+'&Messageid='+nMessageId;
    var replyLevelsubscribeURL ='http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(nCommunityTitle)+'&Forum='+escape(nForumTitle)+'&Topic='+escape(nTopicTitle)+'&cmd=modify_subscription&mode=process&subscriptionType=notify&isTopic=no&needs_authentication=yes&Communityid='+nCommunityId+'&Forumid='+nForumId+'&Topicid='+nTopicId+'&location='+nConversationId+'&subscribe=true';

    var msgID = "message"+((nMessageId).replace('/','_')).replace('.','_');

    document.getElementById("message_"+id).innerHTML='<div class="postedWithNoIndentMsg" id="postedWithNoIndentMsg"><div style="padding-left:15px;">'+message+' '+package+'</div><div style="margin-bottom:0px; padding-left:15px; margin-top:4px;"><a href="javascript:void(0)" onclick="javascript:child(\''+replyLinkForFirstLevel+'\',\'popwin\',\'width=500, height=500, resizable=yes, scrollbars=yes\');return false;"><img src="http://forums.cisco.com/readwrite/reply.gif" alt="Reply" /></a>  <a href="javascript:void(0)" onClick="javascript:child(\''+replyLevelsubscribeURL+'\',\'popwin\',\'width=600, height=600, toolbar=yes, resizable=yes, scrollbars=yes\');return false;"><img src="http://forums.cisco.com/readwrite/subscribe.gif" alt="Subscribe" /></a></div></div><div id=\"reply_'+id+'\" style="margin:0px; padding:0px;"></div>';

    showMsg("message_"+id);
    messNode=nItemNode[id].getElementsByTagName('Message');


    for(i=0;i<messNode.length;i++)
    {
      //msg_level = (messNode.item(i).attributes[3].nodeValue);
    msg_level = (messNode.item(i).getAttribute('level'));


      var msg_level_arry = new Array();

      msg_level_arry = msg_level.split(".");
      msg_level_length = msg_level_arry.length;


      if(msg_level=="" || msg_level=="NaN") //When Level attribute is null ""
      {
        msg_level_length=0;
      }
      else if(msg_level!="") //When Level attribute is not equal to null
      {
         msg_level_length = msg_level_arry.length;

      }

      if(msg_level_arry[msg_level_arry.length-1] == "")
      {

        msg_level_length = msg_level_arry.length-1;

      }

      if(msg_level_arry.length >= 3)
      {

        msg_level_length = msg_level_arry.length;
      }

      msg_level_inc++;

      var authorInfo;
      if(messNode[i].getElementsByTagName('Author')[0].getAttribute('authinfo')!=null)
      {
        authorInfo=messNode[i].getElementsByTagName('Author')[0].getAttribute('authinfo');
      }else
      {
        authorInfo="N/A";
      }
      
      var author="";
   if(messNode[i].getElementsByTagName('Author')[0].firstChild != null) {
    	author=String(messNode[i].getElementsByTagName('Author')[0].firstChild.nodeValue); 
     }
     else
    {
      author="";
    }


      var timestamp=messNode[i].getElementsByTagName('Timestamp')[0].firstChild.nodeValue;

      msg_len = msg_level.length;
      var msg = messNode[i].getElementsByTagName('Msgbody');
     // var msg_id = "message"+((messNode.item(i).attributes[2].nodeValue).replace('/','_')).replace('.','_');
     var msg_id = "message"+((messNode.item(i).getAttribute('id')).replace('/','_')).replace('.','_');
     //alert("msg id " + msg_id);


      var img_id = (msg_id).replace("message","img")

      secondLeveDivIds[i]=String(msg_id);

      //var msgfull_id=messNode.item(i).attributes[2].nodeValue;
     var msgfull_id=messNode.item(i).getAttribute('id');
      var msg_small_text;

      msg_v = msg[0].childNodes[0].nodeValue;
      msg_small_text=msg_v.substr(0,20);
      if(message !=msg_v)
      {

      var replyLinkForOtherLevels='http://forums.cisco.com/eforum/jsp/readwrite/login.jsp?function=getXML&Community='+escape(trim(nCommunityTitle))+'&Forum='+escape(trim(nForumTitle))+'&Topic='+escape(trim(nTopicTitle))+'&Conversation='+escape(trim(nConversationTitle))+'&Message=reply%20by%20'+escape(trim(author))+'&needs_authentication=yes&cmd=reply&mode=show&Communityid='+trim(nCommunityId)+'&Forumid='+trim(nForumId)+'&Topicid='+trim(nTopicId)+'&Conversationid='+trim(nConversationId)+'&Messageid='+trim(msgfull_id);


      if (browser=="Netscape")
      {

        var msg_level_length1 = parseInt(msg_level_length)*15;
        var margin_left_first_int = parseInt(margin_left_first);

        margin_left_first1 =msg_level_length1+margin_left_first_int;

        margin_reply_first1=margin_left_first1+12;


      }
      else if(browser=="Microsoft Internet Explorer")
      {
        //alert(msg_level_length);
        margin_left_first1=(Number(msg_level_length)*10)+Number(margin_left_first);
        if(msg_level_length==0)
        {
          margin_reply_first1 = 20;

        }else
        {

          margin_reply_first1_int = Number(margin_left_first1);
          margin_reply_first1 = margin_reply_first1_int + 35;


        }
        //margin_reply_first1=margin_left_first1+45;
      }
      src1='<div style="margin-right:-1px; margin-bottom:0px; margin-top:0px;margin-left:'+margin_left_first1+'px;" class="reply_cls"><div id="reply_'+msg_id+'" style="padding-top:2px; padding-bottom:2px"><a class="itr" href="javascript:void(0)" onclick=showSubMsg(\"'+msg_id+'\"); style="text-decoration:none; color:#2A6682; font-size:11px; font-weight:bold;"><span style="font-weight:bold; text-decoration:none;" id="'+img_id+'"><div id="toggle" align="center">+</div></span><span style="padding-left:4px;">'+msg_small_text+'</span><span class="bpop"><strong></strong></span></a>&nbsp;&nbsp;&nbsp;&nbsp;'+author+'&nbsp;&nbsp;&nbsp; '+timestamp+'</strong></div><div style="clear:both"></div><div class="postedMsg" id=\"'+msg_id+'\" style="margin-right:2px;margin-bottom:0px;margin-top:10px;margin-left:15px;display:none;">'+msg_v+'<br/><div style="margin-bottom:3px; padding-left:0px; margin-top:6px;"><a href="javascript:void(0)" onClick="javascript:child(\''+replyLinkForOtherLevels+'\',\'popwin\',\'width=500, height=500, resizable=yes, scrollbars=yes\');return false;"><img src="http://forums.cisco.com/readwrite/reply.gif" alt="Reply" /></a>  </div></div></div>';
      document.getElementById("reply_"+id).innerHTML+=src1;

      }
  } //For Loop Close
} //Function Close

function show_cookie()
{

  var cookie_id = get_cookie('click');
  if(cookie_id != null){
    show_message(cookie_id);
    }
  else
   {
     return 0;
   }
}

function acceptableUse(docID)
{
var myUrl = document.location.href;
var myHostname = window.location.hostname;
if (true)
  {
  var acceptPolicy = confirm("Please note you are governed by the NetPro Acceptable Use Policy for posting and/or downloading attachments. Please click \'OK\' to proceed or click \'Cancel\' to cancel the action.");
  if (acceptPolicy == true)
    {
     var  url = downloadURL + "&docId=" +  docID;
   window.open(url,"_blank","width=400, height=400");
    }
  }
else
  {
  if (myUrl.indexOf('page=netprof') != -1)
    {
    var begin = myUrl.substring(0,myUrl.indexOf('page=netprof'));
    var end = myUrl.substring(myUrl.indexOf('page=netprof'));
    var authUrl = begin + "needs_authentication=yes&" + end;
    //alert(myUrl + "\n" + authUrl);
    window.location=authUrl;
    }
  else
    {
    window.location.reload();
    }
  }
 }
