/* 
Mon 02/27/2006 
12:25p
*/ 
// JScript source code
//************Javascript Expandable Menu
//************Written by Richard T. Newsome For Cox Communications
   var openImg = new Image();
   openImg.src = "../images/open.gif";
   var closedImg = new Image();
   closedImg.src = "../images/closed.gif";
 	var objitem

//******************Functions to show a single Answer***********
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
   function showitem(item) {
      objitem = MM_findObj(item);
	  objitem = objitem.style;
	  
      if(objitem.display=="block")
         objitem.display="none";
      else
         objitem.display="block";
   }

   function swapBGImage(elem,img) {  
	  objitem = elem.style;
	  objitem.backgroundImage="url("+img+")";
	}
//******************Functions to show a single Answer***********


function GetPropertyListString(vObject)
{
	vReturn=''
	if (vObject==null || typeof(vObject)=='undefined')
	{
		return('Invalid Object')
	}
	
	vValue=''
	vLength=''
	i=0
	status=typeof(vObject)
	for (v in vObject)
	{
		vValue=eval('vObject.'+v+';')
		vReturn+=v + '=' + vValue + '\n'
	}
	return(vReturn)
}

function IsIE()
{
   var userAgent = navigator.userAgent.toLowerCase();
   var IE_PATTERN     = "compatible; msie ";

   // IE
   if (userAgent.indexOf(IE_PATTERN) != -1)
   {
      return true;
   }
   return false;
} // end of IsIE()

function window_OnError(vObject)
{
	if (document.layers)
		var vMsg=new String('JAVASCRIPT ERROR INFO\n=================================================\n'+GetPropertyListString(vObject))
	else
		var vMsg=new String('JAVASCRIPT ERROR INFO\n=================================================\n'+GetPropertyListString(window.event))
		
status='A Javascript error has occured.'
//	alert(vMsg)
//	window.open().document.write(vMsg.split('\n').join('<br>'));
	//alert('JAVASCRIPT ERROR INFO\n=================================================\n'+GetPropertyListString(window.event));
	return(true);
}

//window.onerror=window_OnError;
// document source code

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function theArticleFolder_AddFolder(vID,vName,vImage,vOnClick)
{
	var vNewItem = new theArticleFolder(this,vID,vName,vImage,vOnClick)
	this.folders[this.folders.length]=vNewItem;
	return(vNewItem);
}
function theArticleFolder_GetFolder(vName)
{
	for(var i=0;i<this.folders.length;i++)
		if (this.folders[i].name==vName) return(this.folders[i]);
	return(null);
}
function theArticleFolder_AddArticle(vFolderID,vID,vVersion,vName)
{
	var vNewItem = new theArticle(this,vFolderID,vID,vVersion,vName)
	this.articles[this.articles.length]=vNewItem;
	return(vNewItem);
}
function theArticleFolder_GetArticle(vName)
{
	for(var i=0;i<this.articles.length;i++)
		if (this.articles[i].name==vName) return(this.articles[i]);
	return(null);
}
function theArticleFolder_GetInheritedImage()
{
	var vObject=this;
	while(vObject) 
	{
		if (vObject.image!='')
			return(vObject.image)
		if (vObject.parent)
		{
			if (vObject.parent!=null)
				vObject=vObject.parent;
			else break;
		}
		else break;
	}
	return('');
}
function theArticleFolder_GetPath()
{
	var vObject=this;
	var vNodes=new Array();
	while(vObject) 
	{
		vNodes.push(vObject.name)
		if (vObject.parent)
		{
			if (vObject.parent!=null)
				vObject=vObject.parent;
			else break;
		}
		else break;
	}
	vNodes.reverse();
	return(vNodes.join('\\'));
}


function theArticleFolder(vParent,vID,vName,vImage,vOnClick)
{
	this.parent=vParent;
	this.id=vID;
	this.name=vName;
	this.image=vImage;
	this.onclick=vOnClick;
	this.articles=new Array();
	this.folders=new Array();
	this.AddArticle=theArticleFolder_AddArticle;
	this.GetArticle=theArticleFolder_GetArticle;
	this.AddFolder=theArticleFolder_AddFolder;
	this.GetFolder=theArticleFolder_GetFolder;
	this.GetPath=theArticleFolder_GetPath;
	this.GetInheritedImage=theArticleFolder_GetInheritedImage;
	return(this);
}
// ---- theArticle
function theArticle_GetQueryString()
{
	return('theArticleView='+this.id)
}
function theArticle_GetPropertyValue(vName)
{
	for(var i=0;i<this.properties.length;i++)
		if (this.properties[i][0]==vName) return(this.properties[i][1]);
	return('')
}
function theArticle_AddProperty(vName,vValue)
{
	var vProperty = new Array(vName,vValue)
	this.properties[this.properties.length]=vProperty;
	return(vProperty);
}
function theArticle_SetStats(vNViewed,vNRating,vNSolved,vAvgRating,vAvgSolved,vHalflife)
{
	this.nviewed=vNViewed;
	this.nrating=vNRating;
	this.nsolved=vNSolved;
	this.avgrating=vAvgRating;
	this.avgsolved=vAvgSolved;
	this.halflife=vHalflife;
}
function theArticle(vParent,vFolderID,vID,vVersion,vName)

{
	this.parent=vParent;
	this.folderid=vFolderID;
	this.id=vID;
	this.version=vVersion;
	this.name=vName;
	this.properties=new Array();
	this.nviewed=0;
	this.nrating=0;
	this.nsolved=0;
	this.avgrating=0;
	this.avgsolved=0;
	this.halflife=0;
	this.GetPath=theArticleFolder_GetPath;
	this.GetPropertyValue=theArticle_GetPropertyValue;
	this.AddProperty=theArticle_AddProperty;
	this.GetQueryString=theArticle_GetQueryString;
	this.SetStats=theArticle_SetStats;
	return(this);
}

function theArticleView_OnClick(vObject)
{
	window.document.location.href='?'+this.parent.theNavigator.name+'='+this.parent.theNavigator.selectedfolder.GetPath()
	return(false);
}

function theArticleView_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theArticleView_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="0" cellpadding="0">';
	var vImage=(this.article.parent!=null) ? this.article.parent.GetInheritedImage() : '';
	//vHTML+=((vImage!=null && vImage!='') ? ('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="'+vImage+'" alt="" width="105" height="20" border="0" />') : '<P class="'+this.name+'_Header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+this.article.parent.name+'</P>')
	vHTML+='<TR><TD width="30">&nbsp;</TD>';
	vHTML+='<TD width="" align=left>';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="3" cellpadding="4">';
	if (this.article.name) vHTML+='<TR><TD height="26"><h1>'+this.article.name+'</h1></TD></TR>'
	for(var i=0;i<this.article.properties.length;i++)
	{
		if (this.article.properties[i][1].length>0)
		{
		vHTML+='<TR><TD height=20 bgcolor="#002854"><P class="'+this.name+'_Header">&nbsp;&nbsp;&nbsp;&nbsp;'+this.article.properties[i][0]+'</P></TD></TR>';
		vHTML+='<TR><TD><P class="'+this.name+'_Text">'+this.article.properties[i][1]+'</P></TD></TR>';
		}
	}
	vHTML+='<TR><TD height="7"><IMG SRC="images/spacer.gif" height="7"></TD></TR>'
	vHTML+='</TABLE>'
	vHTML+='</TD><TD width="20">&nbsp;</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theArticleView(vParent)
{
	this.parent=vParent;
	this.name= 'theArticleView';
	this.article=this.parent.article;
	this.HTML = '';
	this.GetHTML=theArticleView_GetHTML;
	this.Write=theArticleView_Write;
	this.OnClick=theArticleView_OnClick;
	return(this);
}



function theArticleFolderView_GetQueryString()
{
	return(this.name+'='+this.folder.id);
}

function theArticleFolderView_OnFolderClick(vObject,vIndex)
{
	window.document.location.href='?'+this.parent.theNavigator.name+'='+this.folder.folders[vIndex].id;
	return(false);
}

function theArticleFolderView_OnArticleClick(vObject,vIndex)
{
	window.document.location.href='?'+this.folder.articles[vIndex].GetQueryString()
	return(false);
}

function theArticleFolderView_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theArticleFolderView_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" border=0 cellpadding=0 cellspacing=0>';
	//vHTML+='<TR><TD height="28" valign=bottom bgcolor="#002854">'; 
	//vHTML+='<P class="'+this.name+'_Title">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'
	//vHTML+='<img src="'+ this.folder.GetInheritedImage()+'" alt="" width="105" height="20" border="0">';
	//vHTML+='</P></TD></TR>';
	vHTML+='<TR><TD>';
	vHTML+='<TABLE width="100%" border=0 cellpadding=0 cellspacing=0>'
	vHTML+='<TR><TD height=33 colspan=3>';
	vHTML+='&nbsp;';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD width=30>&nbsp;</TD><TD align=left colspan=2>';
	vHTML+='<P class="'+this.name+'_Text"><img src="images/folder_open.gif" />   '+this.folder.name+'</P>';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD colspan=3>';
	vHTML+='&nbsp;';
	vHTML+='</TD></TR>';

	for (var i=0;i<this.folder.folders.length;i++)
	{
		vHTML+='<TR><TD>&nbsp;</TD><TD valign=top align="left"><IMG SRC="images/folder.gif">&nbsp;</TD><TD align="left"><P class="'+this.name+'_Text"><A class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnFolderClick(this,'+i+'));" href="">'+this.folder.folders[i].name+'</a></P></TD></TR>';
	}	
//	if (this.folder.folders.length>0)
//	{
//		vHTML+='<TR><TD colspan=3>';
//		vHTML+='&nbsp;';
//		vHTML+='</TD></TR>';
//	}
	for (var i=0;i<this.folder.articles.length;i++)
	{
		vHTML+='<TR><TD>&nbsp;</TD><TD valign=top  align="left"><IMG SRC="images/list_arrows.gif">&nbsp;</TD><TD align="left"><P class="'+this.name+'_Text"><A class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnArticleClick(this,'+i+'));" href="">'+this.folder.articles[i].name+'</a></P></TD></TR>';
	}	
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theArticleFolderView(vParent)
{
	this.parent=vParent;
	this.name= 'theArticleFolderView';
	this.folder=this.parent.GetFolderObjectByID(this.parent.navigator);
	this.HTML = '';
	this.GetHTML=theArticleFolderView_GetHTML;
	this.Write=theArticleFolderView_Write;
	this.OnFolderClick=theArticleFolderView_OnFolderClick;
	this.OnArticleClick=theArticleFolderView_OnArticleClick;
	this.GetQueryString=theArticleFolderView_GetQueryString;
	return(this);
}


function theArticleSearchForm_OnSelectChange(vObject)
{
	return(false);
}
function theArticleSearchForm_OnSearch(vObject)
{
	var vElement=vObject.elements['criteria'];
	vElement.value=this.parent.Trim(vElement.value);
	if (vElement.value=='')
	{
		alert('You must provide search criteria.')
		vElement.focus();
		return(false);
	}
	vElement=vObject.elements['scope'];
	window.document.location.href='?'+this.parent.theNavigator.name+'='+this.parent.navigator+ '&theArticleSearchResults=' + (vElement.options[vElement.selectedIndex].value) + '&criteria=' + escape(vObject.elements['criteria'].value);
	return(false);
}
function theArticleSearchForm_OnAdvancedSearch(vObject)
{
	var vElement=vObject.elements['scope'];
	if (vElement.selectedIndex==-1) 
		vElement.selectedIndex=0;
	window.document.location.href='?'+this.parent.theNavigator.name+'='+this.parent.navigator + '&theArticleAdvancedSearchForm=' + vElement.options[vElement.selectedIndex].value
	return(false);
}

function theArticleSearchForm_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theArticleSearchForm_GetHTML()
{
	var vPath='';
	var vHTML='';
	var vFolders=this.parent.theNavigator.GetFolders();
	var vFolderObject=null;
	vHTML+='<TABLE width="100%" border=0 cellpadding=5 cellspacing=0><TR><TD>';
	vHTML+='<TABLE width="100%" border=0 cellpadding=0 cellspacing=0><TR><TD>';
	//vHTML+='<P class="'+this.name+'_Title">Search Support</P>';
	vHTML+='</TD></TR><TR><TD>';
	vHTML+='<input '+((document.layers) ? 'size="15"' : 'style="width:100px;"' )+' name="criteria" class="'+this.name+'_Criteria" type="text"/>'; //style="font-size: 10px;" 
	vHTML+='&nbsp;<img src="images/spacer.gif" alt="" width="7" />&nbsp;';
	vHTML+='<a class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnSearch(document.forms[\''+this.parent.theWebPageTemplate.name+'\']));" href=""><img src="refresh_images/go_btn.gif" border="0" alt="Search"/></a><BR>';
	vHTML+='</TD></TR><TR><TD>';
	vHTML+='<SELECT '+((document.layers) ? 'width="15"' : 'style="width:100px;"' )+' class="'+this.name+'_Categories" size="1" ondblclick="" onchange="'+this.parent.name+'.'+this.name+'.OnSelectChange(this);" id="scope" name="scope">';
	vHTML+='<OPTION value="'+this.parent.theNavigator.folder.id+'">'+this.parent.GetPropertyValue('theArticleSearchForm.Scope.All')+'</OPTION>';
	
	vFolderObject=this.parent.GetFolderObjectByID(this.parent.navigator);
	
	vPath=((this.parent.theNavigator.selectedfolder) ? vFolderObject.GetPath() : '');
	vPath=((vPath=='' && this.parent.article) ? this.parent.article.parent.GetPath() : vPath);	
	
	for(var v=0;v<vFolders.length;v++)
	{
		
		if (vPath.split(vFolders[v].GetPath()).length==2)
		{
			this.scope=vFolders[v];
			vSelected='SELECTED'
		}
		else
			vSelected='';
		
		vHTML+='<OPTION '+vSelected+' value="'+vFolders[v].id+'">'+vFolders[v].name+'</OPTION>';
	}
	vHTML+='</SELECT></TD></TR><TR><TD valign=top>';
	//vHTML+='<P>';
	vHTML+='&nbsp;<img src="images/list_arrows.gif" alt="" width="7" height="15">&nbsp;&nbsp;<a class="'+this.name+'_AdvancedSearch" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnAdvancedSearch(document.forms[\''+this.parent.theWebPageTemplate.name+'\']));" href="">Advanced Search</a>';
	//vHTML+='</P>';
	vHTML+='</TD></TR></TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theArticleSearchForm(vParent)
{
	this.parent=vParent;
	this.name= 'theArticleSearchForm';
	this.HTML = '';
	this.GetHTML=theArticleSearchForm_GetHTML;
	this.Write=theArticleSearchForm_Write;
	this.OnSearch=theArticleSearchForm_OnSearch;
	this.OnSelectChange=theArticleSearchForm_OnSelectChange;
	this.OnAdvancedSearch=theArticleSearchForm_OnAdvancedSearch;
	return(this);
}


function theArticleSearchResults_SortByWeight(a,b)
{
	var vKey='Weight';
	return(b.GetPropertyValue(vKey)-a.GetPropertyValue(vKey));
}
function theArticleSearchResults_OnClick(vObject,vIndex)
{
	window.document.location.href='?'+this.folder.articles[vIndex].GetQueryString()
	return(false);
}

function theArticleSearchResults_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theArticleSearchResults_GetHTML()
{
	var vHTML='';
	var vArticle=null;
	vHTML+='<TABLE BORDER=0 cellpadding=0 cellspacing=0 width="416">';
	vHTML+='<TR>'; 
	vHTML+='<TD height="28" align=left bgcolor="#002854"><P class="'+this.name+'_Header">&nbsp;&nbsp;'+this.folder.name+'</P></TD>';
	vHTML+='</TR>';
	vHTML+='<TR><TD>';
	vHTML+='&nbsp;';
	vHTML+='</TD></TR>';

	vHTML+='<TR><TD>';
	
	//alert(this.folder.articles.sort(theArticleSearchResults_Sort))
	this.folder.articles.sort(theArticleSearchResults_SortByWeight)
	//this.folder.articles.reverse();
	if (this.folder.articles.length>0)
	{
		vHTML+='<TABLE BORDER=0 width=416 cellpadding=1 cellspacing=0>';
		for (var i=0;i<this.folder.articles.length;i++)
		{
			vHTML+='<TR><TD width=24>&nbsp;</TD><TD valign=right><IMG BORDER=0 SRC="images/list_arrows.gif">&nbsp;</TD><TD valign=middle>&nbsp;</TD><TD valign=middle><P class="'+this.name+'_Text"><a class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" href="">'+ this.folder.articles[i].name+'</a></P></TD></TR>';
		}	
		vHTML+='</TABLE>';
	}
	else
	{
		vHTML+='<P class="'+this.name+'_Text">'+this.parent.GetPropertyValue(this.name+'.No Results')+'</P>';
	}	
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theArticleSearchResults(vParent)
{
	this.parent=vParent;
	this.name= 'theArticleSearchResults';
	this.folder=this.parent.searchresultsfolder;
	this.HTML = '';
	this.GetHTML=theArticleSearchResults_GetHTML;
	this.Write=theArticleSearchResults_Write;
	this.OnClick=theArticleSearchResults_OnClick;
	this.SortByWeight=theArticleSearchResults_SortByWeight;
	return(this);
}




function theArticleAdvancedSearchForm_GetScope(vForm)
{
	var vScope=vForm.elements['scope'];
	if (vScope.selectedIndex==-1)vScope.selectedIndex=0;
	var vTopic=vForm.elements['topic'];
	if (vTopic.selectedIndex==-1)vTopic.selectedIndex=0;
	//return('')
	return(this.parent.theNavigator.folder.name+'\\'+vScope.options[vScope.selectedIndex].value +'\\' + vTopic.options[vTopic.selectedIndex].value)

}
function theArticleAdvancedSearchForm_SetTopic(vForm)
{
	var vElement=vForm.elements['topic'];
	vElement.options.length=0;
	for (var i=0;i<this.scope.folders.length;i++)
		vElement.options[vElement.options.length]=new Option(this.scope.folders[i].name,this.scope.folders[i].id)
}
function theArticleAdvancedSearchForm_OnTopicChange(vObject)
{
	return(false);
}

function theArticleAdvancedSearchForm_OnSelectChange(vObject)
{
	this.scope=this.parent.GetFolderByID(vObject.options[vObject.selectedIndex].value)
	if (this.scope!=null && this.scope!=this.parent.rootfolder)
		this.SetTopic(vObject.form)
	else
	{
		var vElement=vObject.form.elements['topic'];
		vElement.options.length=0;
		vElement=vObject.form.elements['advanced_criteria'];
		vElement.focus();
	}
	return(false);
}

function theArticleAdvancedSearchForm_OnSearch(vObject)
{
	var vTopicID='';
	var vElement=vObject.elements['scope'];
	if (vElement.selectedIndex==-1)
		vElement.selectedIndex=0;
	var vFolderID=vElement.options[vElement.selectedIndex].value;
	vElement=vObject.elements['topic'];
	if (vElement.selectedIndex>-1)
		vTopicID=vElement.options[vElement.selectedIndex].value;
	window.document.location.href='?'+this.parent.theNavigator.name+'='+escape(this.parent.navigator) + '&theArticleSearchResults=' + ((vTopicID=='') ? vFolderID : vTopicID) + '&criteria=' + escape(vObject.elements['advanced_criteria'].value);
	return(false);
}
function theArticleAdvancedSearchForm_OnAdvancedSearch(vObject)
{
	var vElement=vObject.elements['advanced_criteria'];
	vElement.value=this.parent.Trim(vElement.value);
	if (vElement.value=='')
	{
		alert('You must provide search criteria.')
		vElement.focus();
		return(false);
	}

	var vElement=vObject.elements['scope'];
	var vFolderID='';
	var vTopicID='';
	if (vElement.selectedIndex==-1)
		vElement.selectedIndex=0;
	vFolderID=vElement.options[vElement.selectedIndex].value;
	
	vElement=vObject.elements['topic'];
	if (vElement.selectedIndex!=-1)
		vTopicID=vElement.options[vElement.selectedIndex].value;
	window.document.location.href='?theArticleSearchResults=' + ((vTopicID=='') ? vFolderID : vTopicID) + '&criteria=' + escape(vObject.elements['advanced_criteria'].value)
	return(false);
}

function theArticleAdvancedSearchForm_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theArticleAdvancedSearchForm_GetHTML()
{
	var vHTML='';
	var i=0;
	var v=0;
	var vSelected='';
	var vFolders=this.parent.theNavigator.GetFolders();
	vHTML+='<TABLE width="416" border=0 cellpadding=0 cellspacing=0>';
	vHTML+='<TR><TD colspan=3 height="28" align=left valign=center bgcolor="#002854">';
	vHTML+='';
	vHTML+='<P class="'+this.name+'_Header">&nbsp;&nbsp;Advanced Search</P>';
	vHTML+='</TD></TR>';
	vHTML+='<TR>'
	vHTML+='<TD>&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD align=left colspan=2>'; //style="padding: 25px 30px"
	vHTML+='<P class="'+this.name+'_Text"><br><br>Select a category<br>';
	vHTML+='<SELECT class="'+this.name+'_Categories" size="6" ondblclick="" onchange="'+this.parent.name+'.'+this.name+'.OnSelectChange(this);" id="scope" name="scope">';
	vHTML+='<OPTION "'+((this.parent.navigator=='') ? 'SELECTED' : '' )+'"  selected value="'+this.parent.rootfolder.id+'">'+this.parent.GetPropertyValue('theArticleSearchForm.Scope.All')+'</OPTION>';
	for(v=0;v<vFolders.length;v++)
	{
		if (this.parent.articleadvancedsearchform==vFolders[v].id)
		//if (this.parent.navigator.split(vFolders[v].GetPath()).length==2)
		{
			this.scope=vFolders[v];
			vSelected='SELECTED'
		}
		else
			vSelected='';
		
		vHTML+='<OPTION '+vSelected+' value="'+vFolders[v].id+'">'+vFolders[v].name+'</OPTION>';
	}
	vHTML+='</SELECT></P>';	
	
	vHTML+='<P class="'+this.name+'_Text">Select a topic<BR>';
	vHTML+='<SELECT class="'+this.name+'_Topics"  size="6" ondblclick="" onchange="window.'+this.parent.name+'.'+this.name+'.OnTopicChange(this);" id="topic" name="topic">';
	
	//alert(this.scope+'?'+this.parent.folder)
	
	if (this.scope!=null && this.scope!=this.parent.rootfolder)
	{

		for(v=0;v<this.scope.folders.length;v++)
		{
			if (this.parent.articleadvancedsearchform==this.scope.folders[v].id)
				vSelected='SELECTED'
			else
				vSelected='';
			vHTML+='<OPTION '+vSelected+' value="'+this.scope.folders[v].id+'">'+this.scope.folders[v].name+'</OPTION>';
		}
	}
	vHTML+='</SELECT></P>';
	/*
	for(var v=0;v<this.parent.theNavigator.selectedfolder.folders.length;v++)
	{
		//alert(this.parent.folder.folders[v].GetPath()+ '//' + this.parent.selectedfolder.GetPath())
		if (this.parent.navigator.split(this.parent.theNavigator.selectedfolder.folders[v].GetPath()).length==2)
		//if (this.parent.folder.folders[v].parent.GetPath()==this.parent.folder.GetPath())
			vSelected='SELECTED'
		else
			vSelected='';
		
		vHTML+='<OPTION '+vSelected+' value="'+this.parent.theNavigator.selectedfolder.folders[v].name+'">'+this.parent.theNavigator.selectedfolder.folders[v].name+'</OPTION>';
	}
	*/
	//vHTML+='</SELECT>';

	vHTML+='<P class="'+this.name+'_Text">Enter search criteria:<br><input name="advanced_criteria" class="'+this.name+'_Criteria" type="text">'; //style="width:200px; font-size: 10px;" 
	//vHTML+='<input name="object" type="hidden"/>';
	vHTML+='<img src="images/list_arrows.gif" alt="" width="7" height="15">&nbsp;';
	vHTML+='<a class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnAdvancedSearch(document.forms[\''+this.parent.theWebPageTemplate.name+'\']));" href="">Go</a>';
	vHTML+='<br><br></P>';
	vHTML+='</TD>';
	vHTML+='</TR>';
	vHTML+='</TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theArticleAdvancedSearchForm(vParent)
{
	this.parent=vParent;
	this.name= 'theArticleAdvancedSearchForm';
	this.scope=null;
	this.topic=null;
	this.HTML = '';
	this.GetHTML=theArticleAdvancedSearchForm_GetHTML;
	this.Write=theArticleAdvancedSearchForm_Write;
	//this.OnSearch=theArticleAdvancedSearchForm_OnSearch;
	this.OnSelectChange=theArticleAdvancedSearchForm_OnSelectChange;
	this.OnTopicChange=theArticleAdvancedSearchForm_OnTopicChange;
	this.SetTopic=theArticleAdvancedSearchForm_SetTopic;
	this.GetScope=theArticleAdvancedSearchForm_GetScope;
	this.OnAdvancedSearch=theArticleAdvancedSearchForm_OnAdvancedSearch;
	return(this);
}



function theHomePage_OnClick(vObject,vIndex)
{
	window.document.location.href='?' + this.folder.articles[vIndex].GetQueryString();
	return(false);
}

function theHomePage_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}
function theHomePage_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="416px" BORDER=0 cellspacing="0" cellpadding="0"><TR><TD>';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="0" cellpadding="1"><TR><TD align=center>';
	vHTML+='<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="416" height="235" id="randomImgGen" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+this.movie+'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /><embed src="'+this.movie+'" quality="high" bgcolor="#ffffff" width="416" height="235" name="randomImgGen" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	vHTML+='</TD></TR></TABLE>';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD>';
	vHTML+='<TABLE border=0 cellspacing=0 cellpadding=2 width="100%">';
	vHTML+='<TR><TD valign="top" width="50%" colspan=2>'+this.parent.theMyAccount.GetHTML()+'</TD><TD valign="top" width="50%" colspan=2>'+this.parent.theInstantAnswers.GetHTML()+'</TD></TR>';
	vHTML+='<TR><TD colspan=4>'+this.parent.theTopArticles.GetHTML()+'</TD></TR>';
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theHomePage(vParent)
{
	this.parent=vParent;
	this.name='theHomePage';
	this.folder=this.parent.toparticlesfolder;
	this.HTML = '';
	this.movie='swf/randomImgGen08.swf'
	this.GetHTML=theHomePage_GetHTML;
	this.Write=theHomePage_Write;
	this.OnClick=theHomePage_OnClick;	
	return(this);
}
function theAnnouncements_OnClick(vObject,vIndex)
{
	window.document.location.href='?'+this.folder.articles[vIndex].GetQueryString()
	return(false);
}

function theAnnouncements_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theAnnouncements_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD>';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD colspan=2>';
	//vHTML+='<P class="'+this.name+'_Title">&nbsp;'+this.folder.name+'</P></TD></TR>';
	for (var i=0;i<this.folder.articles.length;i++)
		vHTML+='<TR><TD valign=top width=12 align="right"><IMG SRC="images/list_arrows.gif"></TD><TD><A class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" href="">'+this.folder.articles[i].name+'</a></TD></TR>';
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theAnnouncements(vParent)
{
	this.parent=vParent;
	this.name= 'theAnnouncements';
	this.folder=this.parent.announcements;
	this.HTML = '';
	this.GetHTML=theAnnouncements_GetHTML;
	this.Write=theAnnouncements_Write;
	this.OnClick=theAnnouncements_OnClick;
	return(this);
}


function theAdditionalResources_OnAddBookmark(vObject)
{
	window.external.AddFavorite(window.document.location.href,this.parent.article.name); 	
	return(false);
}

function theAdditionalResources_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theAdditionalResources_GetHTML()
{
	var vHTML='';
	var vHTML='';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD>';
	vHTML+='<TABLE width="100%" border=0 cellpadding=0 cellspacing=1><TR><TD valign=bottom colspan=2 height=16>';
	vHTML+='<P class="'+this.name+'_Title">&nbsp;Additional Resources</P></TD></TR>';
	vHTML+='<TR><TD height=15 width=12 align="right"><IMG SRC="images/list_arrows.gif"></TD><TD valign=bottom align="left"><A class="'+this.name+'_Anchor" onclick="window.print();return(false);" href="">Print this page</a></TD></TR>';
        // Hide Bookmark link for non-IE browsers
	if (IsIE()) vHTML+='<TR><TD valign=top width=12 align="right"><IMG SRC="images/list_arrows.gif"></TD><TD valign=middle align="left"><A class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnAddBookmark(this));" href="">Bookmark</a></TD></TR>';
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theAdditionalResources(vParent)
{
	this.parent=vParent;
	this.name= 'theAdditionalResources';
	this.HTML = '';
	this.GetHTML=theAdditionalResources_GetHTML;
	this.Write=theAdditionalResources_Write;
	this.OnAddBookmark=theAdditionalResources_OnAddBookmark;
	return(this);
}


function theQuickLinks_OnClick(vObject,vIndex)
{
	window.document.location.href='?'+this.folder.articles[vIndex].GetQueryString()
	return(false);
}
function theQuickLinks_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theQuickLinks_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD>';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD colspan=2>';
	//vHTML+='<P class="'+this.name+'_Title">&nbsp;'+this.folder.name+'</P></TD></TR>';
	for (var i=0;i<this.folder.articles.length;i++)
		vHTML+='<TR><TD valign=top width=12 align="right"><IMG SRC="images/list_arrows.gif"></TD><TD><A class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" href="">'+this.folder.articles[i].name+'</a></TD></TR>';
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theQuickLinks(vParent)
{
	this.parent=vParent;
	this.name= 'theQuickLinks';
	this.HTML = '';
	this.folder=this.parent.quicklinks;
	this.GetHTML=theQuickLinks_GetHTML;
	this.Write=theQuickLinks_Write;
	this.OnClick=theQuickLinks_OnClick;
	return(this);
}


function theTopArticles_OnClick(vObject,vIndex)
{
	window.document.location.href='?' + this.folder.articles[vIndex].GetQueryString();
	return(false);
}
function theTopArticles_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}
function theTopArticles_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="0" cellpadding="0">';
	vHTML+='<TR><TD height="26" align=left valign=center bgcolor="#002854">'; 
	vHTML+='';
	vHTML+='<P class="'+this.name+'_Header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Top Articles</P>';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD>';
	vHTML+='<TABLE border=0 cellspacing=0 cellpadding=2>';
	for (var i=0;i<this.folder.articles.length ;i++)
	{
		if (i>this.max-1) break;
		vHTML+='<TR><TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD valign=top align=left><P class="'+this.name+'_Text">'+String(i+1) + '.</P></TD><TD>&nbsp;</TD><TD valign=top><a class="'+this.name+'_Anchor" href="" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" >'+this.folder.articles[i].name+'</a></TD></TR>';
	}	
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theTopArticles(vParent)
{
	this.parent=vParent;
	this.name='theTopArticles';
	this.max=5;
	this.folder=this.parent.toparticlesfolder;
	this.HTML = '';
	this.GetHTML=theTopArticles_GetHTML;
	this.Write=theTopArticles_Write;
	this.OnClick=theTopArticles_OnClick;	
	return(this);
}
function theMyAccount_OnClick(vObject,vIndex)
{
	window.document.location.href='?' + this.folder.articles[vIndex].GetQueryString();
	return(false);
}
function theMyAccount_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}
function theMyAccount_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="0" cellpadding="0">';
	vHTML+='<TR><TD height="26" align=left valign=center bgcolor="#002854">'; 
	vHTML+='';
	vHTML+='<P class="'+this.name+'_Header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+this.folder.name+'</P>';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD>';
	vHTML+='<TABLE border=0 cellspacing=0 cellpadding=2>';
	for (var i=0;i<this.folder.articles.length ;i++)
	{
		vHTML+='<TR><TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD valign=top align=left><IMG BORDER=0 SRC="images/list_arrows.gif"></TD><TD>&nbsp;</TD><TD valign=top><a class="'+this.name+'_Anchor" href="" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" >'+this.folder.articles[i].name+'</a></TD></TR>';
	}	
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theMyAccount(vParent)
{
	this.parent=vParent;
	this.name='theMyAccount';
	this.folder=this.parent.myaccount;
	this.HTML = '';
	this.GetHTML=theMyAccount_GetHTML;
	this.Write=theMyAccount_Write;
	this.OnClick=theMyAccount_OnClick;	
	return(this);
}
function theInstantAnswers_OnClick(vObject,vIndex)
{
	window.document.location.href='?' + this.folder.articles[vIndex].GetQueryString();
	return(false);
}
function theInstantAnswers_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}
function theInstantAnswers_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" BORDER=0 cellspacing="0" cellpadding="0">';
	vHTML+='<TR><TD height="26" align=left valign=center bgcolor="#002854">'; 
	vHTML+='<P class="'+this.name+'_Header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;'+this.folder.name+'</P>';
	vHTML+='</TD></TR>';
	vHTML+='<TR><TD>';
	vHTML+='<TABLE border=0 cellspacing=0 cellpadding=2>';
	for (var i=0;i<this.folder.articles.length ;i++)
	{
		vHTML+='<TR><TD>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD><TD valign=top align=left><IMG BORDER=0 SRC="images/list_arrows.gif"></TD><TD>&nbsp;</TD><TD valign=bottom><a class="'+this.name+'_Anchor" href="" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));" >'+this.folder.articles[i].name+'</a></TD></TR>';
	}	
	vHTML+='</TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theInstantAnswers(vParent)
{
	this.parent=vParent;
	this.name='theInstantAnswers';
	this.folder=this.parent.instantanswers;
	this.HTML = '';
	this.GetHTML=theInstantAnswers_GetHTML;
	this.Write=theInstantAnswers_Write;
	this.OnClick=theInstantAnswers_OnClick;	
	return(this);
}
// JScript source code




function theContactInfo_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theContactInfo_GetHTML()
{
	var vHTML='';
	//vHTML+='<div id="cs_leftcontact">';
	//vHTML+='<layer width="175" position="relative" id="cs_leftcontact">';
	//vHTML+='<TABLE width=175 border=0 cellpadding=1 cellspacing=0><TR><TD>'
	//vHTML+='<TABLE width=100% border=0 cellpadding=0 cellspacing=0><TR><TD align=left bgcolor="#DBDBDB" valign=middle>&nbsp;';

	vHTML+='<a class="'+this.name+'_Anchor" href="http://contact.coxbusiness.com">';	
	vHTML+='<img src="refresh_images/contact_sppt.gif" alt="" border="0" id="contact support" /><BR>';
	vHTML+='</a><BR>';
//	vHTML+='</TD><TD align=right bgcolor="#DBDBDB">'
//	vHTML+='<img border=0 src="images/cs_contact_photo.gif" alt=""/>';
//	vHTML+='</TD></TR><TR><TD bgcolor="#DBDBDB">'
	
	//vHTML+='</TD></TR></TABLE>';
	//vHTML+='</TD></TR></TABLE>';
	//vHTML+'</div>';
	//vHTML+'</layer>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theContactInfo(vParent)
{
	this.parent=vParent;
	this.name= 'theContactInfo';
	this.HTML = '';
	this.GetHTML=theContactInfo_GetHTML;
	this.Write=theContactInfo_Write;
	return(this);
}


function theContentRatingForm_OnClick(vObject,vIndex)
{
	var vURL=''
	if (this.saved) 
	{
		alert('You have already rated this article.');
		return(false);
	}
	if (this.parent.article!=null && vIndex!=null)
	{
		vURL+='sprt_cid=' + escape(this.parent.article.id);
		vURL+='&sprt_version=' + this.parent.article.version;
		vURL+='&rating=' + (parseInt(vIndex)+1);
		vURL+='&sprt_qsession=';
                // Don't assign feedback url to an image variable. Some browsers call
                // the url right away, which causes feedback and rating stored twice.
                // Assign the url to the actual image directly.
		//var vImage=new Image();
		//vImage.src='kcfeedback.asp?'+vURL
		//window.document.images[this.name+'_Saved'].src=vImage.src
		window.document.images[this.name+'_Saved'].src='kcfeedback.asp?'+vURL
		this.saved=true;
	}
	return(false)
}
function theContentRatingForm_SetImages(vIndex,vFlag)
{
	var vImage=new Image();
	vImage.src='images/star_'+vFlag+'.gif';
	for (var i=0;i<vIndex+1;i++)
		window.document.images[this.name+'_'+i].src=vImage.src
}
function theContentRatingForm_OnMouseOver(vObject,vIndex)
{
	if (this.saved) return(false);
	return(this.SetImages(vIndex,'on'))
}
function theContentRatingForm_OnMouseOut(vObject,vIndex)
{
	if (this.saved) return(false);
	return(this.SetImages(vIndex,'off'))
}
function theContentRatingForm_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theContentRatingForm_GetHTML()
{
	var vHTML='';
	
	vHTML+='<TABLE width="100%" border=0 cellpadding=3 cellspacing=0><TR><TD>';
	vHTML+='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	vHTML+='<tr><td COLSPAN=2 valign=middle>';
	vHTML+='<P class="'+this.name+'_Title">&nbsp;Rate this Content</P>';
	vHTML+='</TD></TR><tr><td valign=middle>&nbsp;';
	for (var i=0;i<5;i++)
		vHTML+='<A href="javascript:void();" ONMOUSEOVER="return(window.'+this.parent.name+'.'+this.name+'.OnMouseOver(this,'+i+'));" ONMOUSEOUT="return(window.'+this.parent.name+'.'+this.name+'.OnMouseOut(this,'+i+'));" ONCLICK="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,'+i+'));"><img name="'+this.name+'_'+i+'" border=0 src="images/star_off.gif" alt="" width="17" height="29" /></A>';
	vHTML+='</TD><td valign=middle>';
	vHTML+='<IMG border=0 name="'+this.name+'_Saved" src="images/spacer.gif" width="32" height="11">';
	vHTML+='</td></tr><tr><td colspan=2>';
	vHTML+='<P class="'+this.name+'_Text">'
	var vString=new String(this.parent.article.avgrating);
	var vArray=vString.split('.');
	vString=''+((vArray.length==2) ? (vArray[0] + '.' + vArray[1].charAt(0)) : vArray[0])+'';
	vHTML+='&nbsp;Current Rating: '+vString+' (Rated '+this.parent.article.nrating+' Times)</P>'
	vHTML+='</td></tr></table>';
	vHTML+='</td></tr></table>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theContentRatingForm(vParent)
{
	this.parent=vParent;
	this.name= 'theContentRatingForm';
	this.HTML = '';
	this.saved=false;
	this.GetHTML=theContentRatingForm_GetHTML;
	this.Write=theContentRatingForm_Write;
	this.SetImages=theContentRatingForm_SetImages;
	this.OnMouseOver=theContentRatingForm_OnMouseOver;
	this.OnMouseOut=theContentRatingForm_OnMouseOut;
	this.OnClick=theContentRatingForm_OnClick;
	return(this);
}
function theFeedbackForm_OnOptionClick(vObject)
{
	this.helpful=vObject.value
	return(true);
}

function theFeedbackForm_OnSend(vObject)
{
	var vURL=''
	if (this.saved) 
	{
		alert('You have already submitted your comments.');
		return(false);
	}
	var vElement=vObject.elements['comments'];
	this.comments=vElement.value=this.parent.Trim(vElement.value);
	if (this.parent.article!=null && this.helpful!='' && this.comments!='')
	{
		vURL+='sprt_cid=' + escape(this.parent.article.id);
		vURL+='&sprt_version=' + this.parent.article.version;
		vURL+='&solved=' + ((this.helpful != '-1') ? this.helpful : '');
		vURL+='&comment=' + escape(this.comments);
		vURL+='&sprt_qsession=';
                // Don't assign feedback url to an image variable. Some browsers call
                // the url right away, which causes feedback and rating stored twice.
                // Assign the url to the actual image directly.
		//var vImage=new Image();
		//vImage.src='kcfeedback.asp?'+vURL
		//window.document.images[this.name+'_Saved'].src=vImage.src
		window.document.images[this.name+'_Saved'].src='kcfeedback.asp?'+vURL
		this.saved=true;
	}
	else
	{
		alert('Please select a value and provide comments.')
		vElement.focus();
	}	
	return(false);
}
function theFeedbackForm_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theFeedbackForm_GetHTML()
{
	var vHTML='';
	vHTML+='<TABLE width="100%" border=0 cellpadding=2 cellspacing=0><TR><TD>';
	vHTML+='<table width="100%" border="0" cellspacing="0" cellpadding="3">';
	vHTML+='<tr><td>';
	vHTML+='<P class="'+this.name+'_Title">Your Comments</P>';
	vHTML+='</TD></TR><tr><td>';
	vHTML+='<P class="'+this.name+'_Text">Was this information helpful?</P>';
	vHTML+='</TD></TR><tr><td>';
	vHTML+='<table width="100%" border="0" cellspacing="0" cellpadding="0">';
	vHTML+='<tr><td width=20>';
	vHTML+='<input onclick="return(window.'+this.parent.name+'.'+this.name+'.OnOptionClick(this));" name="helpful" type="radio" value="1">';
	vHTML+='</TD><TD>';
	vHTML+='<P class="'+this.name+'_Text">Yes</P>';
	vHTML+='</TD></TR><tr><td>';
	vHTML+='<input onclick="return(window.'+this.parent.name+'.'+this.name+'.OnOptionClick(this));" name="helpful" type="radio" value="0">';
	vHTML+='</TD><TD>';
	vHTML+='<P class="'+this.name+'_Text">No</P>';
	vHTML+='</TD></TR><tr><td>';
	vHTML+='<input onclick="return(window.'+this.parent.name+'.'+this.name+'.OnOptionClick(this));" name="helpful" type="radio" value="-1">';
	vHTML+='</TD><TD>';
	vHTML+='<P class="'+this.name+'_Text">Just Browsing</P>';
	vHTML+='</TD></TR></TABLE>';
	vHTML+='<textarea class="'+this.name+'_Comments" name="comments" '+ ((document.layers)  ? 'cols="15" rows="2"' : '') + '></textarea>';
	vHTML+='</TD></TR><tr><td>';
	vHTML+='<IMG SRC="images/list_arrows.gif">&nbsp;'; 
	vHTML+='<a class="'+this.name+'_Anchor" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnSend(document.forms[\''+this.parent.theWebPageTemplate.name+'\']));" href="">Send</a>';
	vHTML+='&nbsp;&nbsp;<IMG border=0 NAME="'+this.name+'_Saved" src="images/spacer.gif" width="32" height="11">';
	vHTML+='</TD></TR></TABLE>';
	vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theFeedbackForm(vParent)
{
	this.parent=vParent;
	this.name= 'theFeedbackForm';
	this.HTML = '';
	this.saved=false;
	this.helpful='';
	this.comments='';
	this.GetHTML=theFeedbackForm_GetHTML;
	this.Write=theFeedbackForm_Write;
	this.OnSend=theFeedbackForm_OnSend;
	this.OnOptionClick=theFeedbackForm_OnOptionClick;
	return(this);
}


function theNavigator_GetFolders()
{
	var vFolderObject=null;
	var j=0;
	this.filters=String(this.filterexp).split('\n');
	this.folders.length=0;
	for (j=0;j<this.filters.length;j++)
	{
		vFolderObject=this.parent.GetFolderObject(this.filters[j]);
		if (vFolderObject!=null) 
		{
			vFolderObject.image=this.parent.GetPropertyValue(this.filters[j]+'.IMG');
			//alert(vFolderObject.image)
			this.folders.push(vFolderObject)
		}
	}
	return(this.folders)
	
}
function theNavigator_GetQueryString()
{
		//alert()
		//this.selectedfolder=(this.selectedfolder) ? this.selectedfolder : this.folder
		//return(this.name+'='+escape(this.selectedfolder.GetPath()))
		if (this.selectedfolder) 
			return(this.name+'='+escape(this.selectedfolder.GetPath()))
		else
			return(this.name+'='+escape(this.folder.GetPath()))
}

function theNavigator_OnClick(vObject,vID)
{
		window.document.location.href='?'+'theNavigator='+vID;//+'&theArticleFolderView='+escape(this.parent.articlefolderview)
		return(false);
		if (this.selectedfolder) 
		{
			if (this.selectedfolder.id==vID)
				window.document.location.href='?'+this.name+'='+this.selectedfolder.id +'&theArticleFolderView='+ vID
				//JC window.document.location.href='?'+this.name+'='+this.selectedfolder.GetPath() +'&theArticleFolderView='+ vPath 
			else
				window.document.location.href='?'+this.name+'='+vID;
		}
		else
			window.document.location.href='?'+this.name+'='+vID;
	return(false);
}
function theNavigator_OnChildClick(vObject,vID)
{
		window.document.location.href='?'+this.name+'='+vID
		return(false);
}

function theNavigator_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theNavigator_GetHTML()
{
	var vHTML='';
	vObject=this.parent.GetFolderObjectByID(this.parent.navigator);
	var vFolderObject=null;
	var activeFolder='subnav';
	var i=0;
	var f=0;
	var j=0;
	this.GetFolders();
		for (j=0;j<this.folders.length;j++)
		{
			vFolderObject=this.parent.GetFolderObjectByID(this.parent.navigator);			
			if (vFolderObject.GetPath().split(this.folders[j].GetPath()).length==2)
			{
				this.selectedfolder=this.folders[j];


				vHTML+='<div id="" class="navheader"><a onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,\''+this.folders[j].parent.id+'\'));" href="">'+this.folders[j].image+'</a></div>';												
				
				if (this.folders[j].folders.length>0)
				{
					
					//vHTML+='<div id="" class="subnav" >'; //style="font-family:Arial, Helvetica, sans-serif;font-size:10px;font-weight:bold;text-decoration:none;"
					for(f=0;f<this.folders[j].folders.length;f++)
					{
						if(this.folders[j].folders[f].name==vObject.name){activeFolder='activesubnav'}else{activeFolder='subnav';}
						vHTML+='<div id="" class="'+activeFolder+'" ><A class="'+this.name+'_Folders" onclick="return(window.'+this.parent.name+'.'+this.name+'.OnChildClick(this,\''+this.folders[j].folders[f].id+'\'));" href="">'+this.folders[j].folders[f].name+'</a></div>';

					}	
					//vHTML+='</div>';
				}
			}
			
			else
			{
				//vHTML+='<div align="left">'
				vHTML+='<div id="" class="navheader" ><a onclick="return(window.'+this.parent.name+'.'+this.name+'.OnClick(this,\''+escape(this.folders[j].id)+'\'));" href="">'+this.folders[j].image+'</a></div>';
				//vHTML+='</div>';
			}
		}
	this.HTML=vHTML;
	return(this.HTML);
}

function theNavigator(vParent)
{
	this.parent=vParent;
	this.name= 'theNavigator';
	this.HTML = '';
	this.folder=this.parent.rootfolder;
	this.folders=new Array();
	this.filterexp=this.parent.navigatorfilter;
	this.filters=new Array();
	this.selectedfolder=null;
	this.GetFolders=theNavigator_GetFolders;
	this.GetHTML=theNavigator_GetHTML;
	this.Write=theNavigator_Write;
	this.OnClick=theNavigator_OnClick;
	this.OnChildClick=theNavigator_OnChildClick;
	this.GetQueryString=theNavigator_GetQueryString;
	return(this);
}



function theServerError_SetError(vErrorNumber)
{
	this.errornumber=vErrorNumber;
}
function theServerError_Display()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theServerError_GetHTML()
{
	var vHTML='';
	if (this.errornumber!='')
	{
		this.title=this.parent.GetPropertyValue(this.name+'.'+this.errornumber+'.Title');
		this.body=this.parent.GetPropertyValue(this.name+'.'+this.errornumber+'.Body');	
		
		vHTML+='<TABLE width="416" BORDER=0 CELLSPACING=0 CELLPADDING=0>';
		vHTML+='<TR>';
		vHTML+='<TD colspan=3 height="28" valign=middle bgcolor="#002854"><P class="'+this.name+'_Header">&nbsp;&nbsp;'+this.title+'</P></TD>';
		vHTML+='</TR>';
		vHTML+='<TR>';
		vHTML+='<TD colspan=3>&nbsp;</TD>';
		vHTML+='</TR>';
		vHTML+='<TR>';
		vHTML+='<TD width=25>&nbsp;</TD><TD colspan=2><P class="'+this.name+'_Text">'+this.body+'</P></TD>';
		vHTML+='</TR>';
		vHTML+='<TR>';
		vHTML+='<TD colspan=3>&nbsp;</TD>';
		vHTML+='</TR>';
		vHTML+='<TR>';
		vHTML+='<TD>&nbsp;</TD><TD colspan=2><P class="'+this.name+'_Text">'+this.parent.GetPropertyValue(this.name+'.Footer')+'</P></TD>';
		vHTML+='</TR>';
		vHTML+='</TABLE>';
		this.HTML=vHTML;
	}
	return(this.HTML);
}

function theServerError(vParent)
{
	this.parent=vParent;
	this.name= 'theServerError';
	this.title=''
	this.body='';
	this.HTML = '';
	this.errornumber=this.parent.servererror;
	this.GetHTML=theServerError_GetHTML;
	this.SetError=theServerError_SetError;
	this.Display=theServerError_Display;
	return(this);
}function theWebPageFooter_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theWebPageFooter_GetHTML()
{
	var vHTML='';
		vHTML+='<div align="right">';
		vHTML+='<tr align="center" valign="middle"><td colspan="2"><div id="footer_">';
		vHTML+='<a href="http://www.coxbusiness.com/aboutus/index.html">About Us</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://www.coxbusiness.com/sitemap/index.html">Site Map</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://contact.coxbusiness.com/">Contact Us</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://www.cox.com/policy/">Privacy Policy</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://www.coxbusiness.com/acceptableusepolicy.pdf">Acceptable Use Policy</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="http://www.cox.com">Residential Services</a></div></td>';
		vHTML+='</tr></table></div>';
		vHTML+='<div id="maincopyright">&copy;1998-2008 Cox Communications Inc. All rights reserved. Services not available in all areas.</div>';

	//vHTML+='<TABLE width="770px" BORDER=0 cellspacing="0" cellpadding="0"><TR><TD height=20 bgcolor="#1B75BC" align=center>';
	//vHTML+='<P>';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://coxbusiness.com/aboutus/">About Us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://coxbusiness.com/sitemap/">Site Map</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://contact.coxbusiness.com/">Contact Us</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://www.cox.com/policy" target="_blank">Policy</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://www.coxbusiness.com/acceptableusepolicy.pdf" target="_blank">Acceptable Use Policy</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;';
	//vHTML+='<a class="'+this.name+'_Anchor" href="http://www.cox.com/" target="_blank">Residential Services</a>';
	//vHTML+='</p>';
	//vHTML+='</TD></TR>';
	//vHTML+='<TR><TD height=18 bgcolor="#1B75BC" align=center>';
	//vHTML+='<p class="'+this.name+'_Text">&copy;2005 Cox Communications, Inc. All rights reserved. Service not available in all areas.</p>';
	//vHTML+='</TD></TR></TABLE>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theWebPageFooter(vParent)
{
	this.parent=vParent;
	this.name= 'theWebPageFooter';
	this.HTML = '';
	this.GetHTML=theWebPageFooter_GetHTML;
	this.Write=theWebPageFooter_Write;
	return(this);
}

function theWebPageHeader_OnClick(vObject,vURL)
{
	alert('Open\n\n'+vURL);
	//window.document.location.href=vURL;
	return(false);
}
function theWebPageHeader_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theWebPageHeader_GetHTML()
{
	var vHTML='';
	vHTML+='<table width="854" cellspacing="0" cellpadding="0" border="0" ><tr><td>';
	vHTML+='<div id="top-frame_">';
	vHTML+='<div style="float:left; margin:0px; margin-top:5px;"><a href="http://www.coxbusiness.com"><img src="images/spacer.gif" border="0" width="200" height="50"></a></div>';	
	vHTML+='<div align="right" style="float:right"><a href="#" onmouseover="document.myacct_link.src=\'refresh_images/myacct_link-over.gif\';" onmouseout="document.myacct_link.src=\'refresh_images/myacct_link.gif\';" onClick="showitem(\'myacctmenu_\');">';
	vHTML+='<img name="myacct_link" id="myacct_link" src="refresh_images/myacct_link.gif" width="99" height="22" border="0" alt="" /></a><a href="http://support.coxbusiness.com" onmouseover="document.sprt_link.src=\'refresh_images/sprt_link-over.gif\';" onmouseout="document.sprt_link.src=\'refresh_images/sprt_link.gif\';"><img name="sprt_link" id="sprt_link" src="refresh_images/sprt_link.gif" width="94" height="22" border="0" alt="" /></a>';
	vHTML+='</div>';

	vHTML+='</div>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theWebPageHeader(vParent)
{
	this.parent=vParent;
	this.name= 'theWebPageHeader';
	this.HTML = '';
	this.GetHTML=theWebPageHeader_GetHTML;
	this.Write=theWebPageHeader_Write;
	this.OnClick=theWebPageHeader_OnClick;
	return(this);
}

function theWebPageHeaderMenu_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theWebPageHeaderMenu_GetHTML()
{
	var vHTML='';
	//style="width:770px;" width="770"
	vHTML+='<div id="primarymenu-frame_">';
	vHTML+='<div id="primarymenu-wrap">';
	vHTML+='<div class="primarybtns" id="prim-spacer-btn">';
	vHTML+='<img name="prim_prodserv_btn" src="refresh_images/spacer.gif" width="55" height="18" border="0" alt="">';
	vHTML+='</div>';
	vHTML+='<div class="primarybtns" id="prim-prodserv-btn">';
	vHTML+='<a href="http://www.coxbusiness.com/products/index.html" onmouseover="document.prim_prodserv_btn.src=\'refresh_images/prim_prodserv_btn-over.gif\';" onmouseout="document.prim_prodserv_btn.src=\'refresh_images/prim_prodserv_btn.gif\';">';
	vHTML+='<img name="prim_prodserv_btn" src="refresh_images/prim_prodserv_btn.gif" width="136" height="18" border="0" alt=""></a>';
	vHTML+='</div>';
	vHTML+='<div class="primarybtns" id="prim-specind-btn">';
	vHTML+='<a href="http://www.coxbusiness.com/industries/index.html"onmouseover="document.prim_specind_btn.src=\'refresh_images/prim_specind_btn-over.gif\';" onmouseout="document.prim_specind_btn.src=\'refresh_images/prim_specind_btn.gif\';">';
	vHTML+='<img name="prim_specind_btn" src="refresh_images/prim_specind_btn.gif" width="124" height="18" border="0" alt=""></a>';
	vHTML+='</div>';
	vHTML+='<div class="primarybtns" id="prim-lrgbus-btn">';
	vHTML+='<a href="http://www.coxbusiness.com/lgbusiness/index.html" onmouseover="document.prim_lrgbus_btn.src=\'refresh_images/prim_lrgbus_btn-over.gif\';" onmouseout="document.prim_lrgbus_btn.src=\'refresh_images/prim_lrgbus_btn.gif\';">';
	vHTML+='<img name="prim_lrgbus_btn" src="refresh_images/prim_lrgbus_btn.gif" width="110" height="18" border="0" alt=""></a>';
	vHTML+='</div>';
	vHTML+='<div class="primarybtns" id="prim-medbus-btn">';
	vHTML+='<a href="http://www.coxbusiness.com/mdbusiness/index.html" onmouseover="document.prim_medbus_btn.src=\'refresh_images/prim_medbus_btn-over.gif\';" onmouseout="document.prim_medbus_btn.src=\'refresh_images/prim_medbus_btn.gif\';">';
	vHTML+='<img name="prim_medbus_btn" src="refresh_images/prim_medbus_btn.gif" width="122" height="18" border="0" alt=""></a>';
	vHTML+='</div>';
	vHTML+='<div class="primarybtns" id="prim-smlbus-btn">';
	vHTML+='<a href="http://www.coxbusiness.com/smbusiness/index.html" onmouseover="document.prim_smlbus_btn.src=\'refresh_images/prim_smlbus_btn-over.gif\';" onmouseout="document.prim_smlbus_btn.src=\'refresh_images/prim_smlbus_btn.gif\';">';
	vHTML+='<img name="prim_smlbus_btn" src="refresh_images/prim_smlbus_btn.gif" width="122" height="18" border="0" alt=""></a>';
	vHTML+='</div>';
	vHTML+='</div>';
	vHTML+='</div>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theWebPageHeaderMenu(vParent)
{
	this.parent=vParent;
	this.name= 'theWebPageHeaderMenu';
	this.HTML = '';
	this.GetHTML=theWebPageHeaderMenu_GetHTML;
	this.Write=theWebPageHeaderMenu_Write;
	return(this);
}
//+++++++++++++++++++++++++++++++Added by RTN 0382008++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++Box Element+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function theBoxElementTop_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theBoxElementTop_GetHTML(title)
{
	var vHTML='';
	vHTML+='<table  width="100%" border="0" cellspacing="0" cellpadding="0">';
	vHTML+='<tr>';
	vHTML+='<td width="11"><img src="refresh_images/content_lfthdr_boxele.gif" width="11" height="25" /></td>';
	vHTML+='<td valign="middle" background="refresh_images/content_midlnhdr_boxele.gif"><div align="center" class="lghtgrayheader"><span class="theArticleSearchForm_Title">'+title+'</span></div></td>';
	vHTML+='<td><img src="refresh_images/content_rthdr_boxele.gif" width="11" height="25" /></td>';
	vHTML+='</tr>';
	vHTML+='<tr>';
	vHTML+='<td background="refresh_images/content_ltsidelncnt_boxele.gif">&nbsp;</td>';
	vHTML+='<td width="289" valign="top" bgcolor="#F2F0EB">';
	this.HTML=vHTML;
	return(this.HTML);
}

function theBoxElementTop(vParent)
{
	this.parent=vParent;
	this.name= 'theBoxElementTop';
	this.HTML = '';
	this.GetHTML=theBoxElementTop_GetHTML;
	this.Write=theBoxElementTop_Write;
	return(this);
	
}


function theBoxElementBot_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}

function theBoxElementBot_GetHTML()
{
	var vHTML='';
	vHTML+='</td>';
	vHTML+='<td width="11" background="refresh_images/content_rtsidelncnt_boxele.gif">&nbsp;</td>';
	vHTML+='</tr>';
	vHTML+='<tr>';
	vHTML+='<td><img src="refresh_images/content_lftbtcnt_boxele.gif" width="11" height="13" /></td>';
	vHTML+='<td background="refresh_images/content_midlncnt_boxele.gif"><img src="refresh_images/content_midlncnt_boxele.gif" width="8" height="13" /></td>';
	vHTML+='<td><img src="refresh_images/content_rtbtcnt_boxele.gif" width="11" height="13" /></td>';
	vHTML+='</tr>';
	vHTML+='</table>';
	this.HTML=vHTML;
	return(this.HTML);
}

function theBoxElementBot(vParent)
{
	this.parent=vParent;
	this.name= 'theBoxElementBot';
	this.HTML = '';
	this.GetHTML=theBoxElementBot_GetHTML;
	this.Write=theBoxElementBot_Write;
	return(this);
}

function theMyAcctMenu_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}



function theMyAcctMenu_GetHTML()
{
	
	var vHTML='';
	vHTML+='<div id="myacctmenu_" class="myacctmenu">';
	vHTML+='<form name="loginForm" method="post" action="https://myaccount.coxbusiness.com/weblogic/login.ms" onsubmit="setTimeZone()">';
	vHTML+='<input type="hidden" name="timeZone" value="0">';
	vHTML+='<table width="425"  border="0" cellpadding="0" cellspacing="0">';
	vHTML+='<tr valign="top">';
	vHTML+='<td width="13" height="54" background="refresh_images/myacctmenu_left.gif">&nbsp;</td>';
	vHTML+='<td background="refresh_images/myacctmenu_mid.gif" valign="top"><div align="center">';
	vHTML+='<a href="#" onClick="showitem(\'myacctmenu_\');"><img src="refresh_images/cwCloseBox.gif" border="0" align="right"/></a>';
	vHTML+='<input type="text" style="display:none;" name="userName" defaultValue="Username" >';
	vHTML+='<input onfocus="this.style.display=\'none\';userName.style.display=\'\';" type="text" value="enter username" /><img src="images/spacer.gif" width="5"/>';
	vHTML+='<input name="passWord" style="display:none;" type="password" />'; 
	vHTML+='<input onfocus="this.style.display=\'none\';passWord.style.display=\'\';" type="text" value="enter password" />'; 
	vHTML+='<img src="images/spacer.gif" width="10"/><input type="image" src="refresh_images/go_btn.gif" alt="Log in"/>';
	vHTML+='</div>';
	vHTML+='<div style="text-align: center;"><a href="https://myaccount.coxbusiness.com/weblogic/register.ms;jsessionid=HvfWSpTSyGtnJxv9hf1NKhkYh1Lc59jFSxwCCmjn58mn2sppykSL!1643498804">Register</a> &nbsp; | &nbsp; <a href="https://myaccount.coxbusiness.com/weblogic/resetpwd.ms;jsessionid=HvfWSpTSyGtnJxv9hf1NKhkYh1Lc59jFSxwCCmjn58mn2sppykSL!1643498804">Forgot Your Password?</a> &nbsp; | &nbsp; <a href="http://support.coxbusiness.com/sdcxuser/cbs/default.asp?theNavigator=f12433c7-6b78-4272-aa70-34bb0cd1bf79">Need Help Logging In?</a></div> </td>';
	vHTML+='<td width="20" height="45" background="refresh_images/myacctmenu_right.gif">&nbsp;</td>';
	vHTML+='</tr>';
	vHTML+='</table>';
	vHTML+='</form>';
	vHTML+='</div>';

	this.HTML=vHTML;
	return(this.HTML);
}

function theMyAcctMenu(vParent)
{
	this.parent=vParent;
	this.name= 'theMyAcctMenu';
	this.HTML = '';
	this.GetHTML=theMyAcctMenu_GetHTML;
	this.Write=theMyAcctMenu_Write;
	return(this);
}


//+++++++++++++++++++++++++++++++Added by RTN 0382008++++++++++++++++++++++++++++++++++++++++++++++++++++
//+++++++++++++++++++++++++++++++Box Element+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function theWebPageTemplate_OnSubmit(vObject)
{
	
	if (typeof(vObject.elements['criteria'])=='object')
		this.parent.theArticleSearchForm.OnSearch(vObject)
	else
		if (typeof(vObject.elements['advanced_criteria'])=='object')
			this.parent.theArticleAdvancedSearchForm.OnAdvancedSearch(vObject)
	return(false);
}

function theWebPageTemplate_GetContext()
{
	var vFolderObject=null;
	var vContext='';

	if (this.parent.servererror!='')
	{
		this.context=this.parent.theServerError.name;
		this.parent.theServerError.errornumber=this.parent.servererror;
		return(this.context);
	}	
	if (this.parent.searchresultsfolder!=null)
	{
		this.context=this.parent.theArticleSearchResults.name;
		return(this.context);
	}	
	vFolderObject=this.parent.GetFolderObjectByID(this.parent.navigator);
	if (this.parent.articleadvancedsearchform!='')
	{
		vSearchFolder=this.parent.GetFolderObject(this.parent.articleadvancedsearchform);
		vContext=this.parent.theArticleAdvancedSearchForm.name;
	}	
	
	if (typeof(this.parent.article)!='undefined' && this.parent.article!=null) 
	{
//		this.parent.theArticleView.article=this.parent.article;
		vContext=this.parent.theArticleView.name;
	}

	if (vContext=='' && typeof(vFolderObject.folders)!='undefined') 
	{
		this.parent.selectedarticle=null;
		var vLevels=vFolderObject.GetPath().split('\\').length;	
		if (vLevels<3)
		{
			vContext='theNavigator'
			this.parent.theNavigator.folder=vFolderObject
		}
		else if (vLevels>4)
		{
			this.parent.theArticleFolderView.folder=vFolderObject.parent;
			vContext='theArticleFolderView'
		}
		else
		{
			this.parent.theArticleFolderView.folder=vFolderObject;
			vContext='theArticleFolderView'
		}
	}
	this.context=vContext;
	return(vContext);

}
function theWebPageTemplate_GetBreadCrumb()
{
	var vReturn='';
	var vFolderObject=null;
	var vObject=null;

	switch (this.context)
	{
	case 'theArticleView':
		vObject=this.parent.article.parent;
		this.parent.navigator=vObject.id
		break;
	case 'theArticleAdvancedSearchForm':
		vObject=this.parent.GetFolderObjectByID(this.parent.articleadvancedsearchform)
		break;
	case 'theArticleSearchResults':
		vObject=this.parent.searchresultsfolder;
		break;
	default:
		vObject=this.parent.GetFolderObjectByID(this.parent.navigator)
		break;	
	}
	while (vObject)		
	{
		if (this.parent.navigator==vObject.id || vObject.name==this.parent.announcements.name || vObject.name==this.parent.quicklinks.name || vObject.name==this.parent.GetPropertyValue('theArticleSearchResults.Name'))
		{
					vReturn='&nbsp;&gt;&nbsp;'+ vObject.name + vReturn
					
		}
		else
			vReturn='&nbsp;&gt;&nbsp;<a class="'+this.name+'_BreadCrumb" href="?'+this.parent.theNavigator.name+'='+vObject.id+'">'+ vObject.name+'</a>' + vReturn
			
		if (vObject.parent)
			vObject=vObject.parent
		else break;
	}
	vReturn='<ul class="breadcrumbs"><li><a class="'+this.name+'_BreadCrumb" href="' + location.pathname + '">Support Home</a>'	+ vReturn + '</li><ul>'
	return(vReturn)
}
function theWebPageTemplate_OnClick(vObject,vIndex)
{
	alert('theWebPageTemplate_OnClick('+vIndex+')')
	return(false);
}

function theWebPageTemplate_OnSearch(vObject)
{
	alert('theWebPageTemplate_OnSearch()')
	return(false);
}

function theWebPageTemplate_Write()
{
	this.GetHTML();
	window.document.write(this.HTML);
}
function theWebPageTemplate_GetHTML()
{
	this.GetContext()
	var vName=''
	var vHTML='';
	var pageTitle='';
	var vObject=null;
	vObject=this.parent.GetFolderObjectByID(this.parent.navigator)
	var vFormOpen='<FORM onsubmit="return(window.'+this.parent.name+'.'+this.name+'.OnSubmit(this));" action="" name="'+this.name+'" method="post">';
	var vFormClose='</FORM>';
	
	if (this.parent.navigator==vObject.id){pageTitle=vObject.name}else{pageTitle='Cox Business Customer Support'}
	if (this.parent.article){pageTitle=this.parent.article.parent.name}
	vHTML+='<table width="854" cellspacing="0" cellpadding="0" border="0" ><tr><td><div style="width:854">';
	vHTML+='<div id="top-frame_">';
	vHTML+=this.parent.theWebPageHeader.GetHTML();
	vHTML+=this.parent.theWebPageHeaderMenu.GetHTML();
	vHTML+='<div id="content-frame_">';
	vHTML+='<table width="854" border="0" cellpadding="0" cellspacing="0">';
	vHTML+='<tr>';
	vHTML+='<td height="35" colspan="2" valign="top">';
	vHTML+='<div id="pageheader">' + pageTitle + '</div>';
	vHTML+='<div id="breadcrumbs">';		
	vHTML+=this.GetBreadCrumb();
	vHTML+='</div>';
	vHTML+='</td>';	
	vHTML+='</tr>';
	//vHTML+='<tr>';
	//vHTML+='<td height="22"></td>';
	//vHTML+='<td>&nbsp;</td>';
	//vHTML+='</tr>';
	vHTML+='<tr valign="top">';
			
	//alert(pageTitle);
	
	if (this.context==this.parent.theNavigator.name 
		|| this.context==this.parent.theArticleFolderView.name 
		|| this.context==this.parent.theArticleAdvancedSearchForm.name 
		|| this.context==this.parent.theArticleSearchResults.name
		|| this.context==this.parent.theServerError.name
		|| this.context==this.parent.theArticleView.name)
	{
		
		
		vHTML+='<td width="140" height="100%" class="leftnav-bg" valign="top"><div  id="leftnavsuhdrtop" >SUPPORT&nbsp;</div>'; 
		vHTML+='<table width="100%"  border="0" cellspacing="0" cellpadding="0">';

		vHTML+='<tr>';
		vHTML+='<td ><img src="refresh/images/spacer.gif" width="14" height="1"></td>';
		vHTML+='<td align="left" valign="top" bgcolor="#FFFFFF">';
		vHTML+='<div  id="leftnav" >';
          	vHTML+=this.parent.theMyAcctMenu.GetHTML();
          
		//vHTML+=this.parent.theContactInfo.GetHTML()
		//vHTML+='<table>';
		vHTML+=this.parent.theNavigator.GetHTML();
			
		vHTML+='</div></td></tr></table>';	
    
		vHTML+='</td>';
	}

	vHTML+='<td align="left" valign="top">';
	vHTML+='<div id="content_">';	
      	vHTML+='<table width="100%"  border="0" cellspacing="0" cellpadding="0">';
     	vHTML+='<tr>';
       	vHTML+='<td width="71%" align="center" valign="top">';
          //++++++STARTS CONTENT+++++++++++++++++++++++++

	if (this.context==this.parent.theServerError.name)	
	{
		vHTML+=this.parent.theServerError.GetHTML();
	}
	else if (this.context==this.parent.theArticleFolderView.name)	
	{
		vHTML+=this.parent.theArticleFolderView.GetHTML();	
	}
	else if (this.context==this.parent.theArticleView.name)
	{
		this.parent.theNavigator.GetFolders();
		if (!document.layers) 
			vHTML+='<DIV ID="'+this.parent.theArticleView.name+'_Content">'
		vHTML+=this.parent.theArticleView.GetHTML();	
		if (!document.layers)
			vHTML+='</DIV>';
		
	}
	else if (this.context==this.parent.theArticleAdvancedSearchForm.name)
	{
		this.parent.theArticleAdvancedSearchForm.folder=this.parent.selectedfolder;
		vHTML+=vFormOpen
		vHTML+=this.parent.theArticleAdvancedSearchForm.GetHTML();	
		vHTML+=vFormClose
	}
	else if (this.context==this.parent.theArticleSearchResults.name)
	{
		vHTML+=this.parent.theArticleSearchResults.GetHTML();	
	}
	else
	{
		vHTML+=this.parent.theHomePage.GetHTML();	
	}
		//vHTML+='</TD></TR></TABLE>';
	vHTML+='</td>';
	vHTML+='<td width="29%" valign="top">';
	vHTML+=this.parent.theContactInfo.GetHTML()
	if (this.context!=this.parent.theArticleAdvancedSearchForm.name) vHTML+=vFormOpen
	//vHTML+='<TABLE width="175px" bgcolor="white" border=0 cellpadding=0 cellspacing=1><TR><TD>'
	//vHTML+='<TABLE bgcolor="#DBDBDB" BORDER=0 width=100% cellpadding=0 cellspacing=0><TR>';
	//vHTML+='<TD>';

	if (this.context==this.parent.theArticleView.name)
	{	
		vHTML+=this.parent.theBoxElementTop.GetHTML("Additional Resources");
		vHTML+=this.parent.theAdditionalResources.GetHTML();
		vHTML+=this.parent.theBoxElementBot.GetHTML();
	}
	if (this.context!=this.parent.theArticleAdvancedSearchForm.name) 
	{	
		vHTML+=this.parent.theBoxElementTop.GetHTML("Search");
		vHTML+=this.parent.theArticleSearchForm.GetHTML();
		vHTML+=this.parent.theBoxElementBot.GetHTML();
		

	}
	if (this.context==this.parent.theArticleView.name)
	{
		vHTML+=this.parent.theBoxElementTop.GetHTML("Your Comments");
		vHTML+=this.parent.theFeedbackForm.GetHTML();
		vHTML+='<HR NOSHADE size="1" color="white" width="100%">';
		vHTML+=this.parent.theContentRatingForm.GetHTML();
		vHTML+=this.parent.theBoxElementBot.GetHTML();
	
	}
	else
	{
		vHTML+=this.parent.theBoxElementTop.GetHTML("Announcements");
		vHTML+=this.parent.theAnnouncements.GetHTML();
		vHTML+=this.parent.theBoxElementBot.GetHTML();
		
		vHTML+=this.parent.theBoxElementTop.GetHTML("Quick Links");
		vHTML+=this.parent.theQuickLinks.GetHTML();
		vHTML+=this.parent.theBoxElementBot.GetHTML();
	}
	
	//vHTML+='</TD></TR></TABLE>';
	//vHTML+='</TD></TR></TABLE>';
	if (this.context!=this.parent.theArticleAdvancedSearchForm.name) vHTML+=vFormClose;
	//---
	vHTML+='</td></tr></table></div></td></tr>';
	vHTML+='<tr valign="top"><td align="left" valign="top"><img src="refresh_images/leftnav_bgbtmcap.gif" width="156" height="60" /></td><td></td></tr>';
	vHTML+=this.parent.theWebPageFooter.GetHTML()
	vHTML+='</td></tr></table></div></div></td></tr></table>';
	//alert('hi');
	this.HTML=vHTML;
	return(this.HTML);
}
function theWebPageTemplate(vParent) 
{
	this.parent=vParent;
	this.name='theWebPageTemplate';
	this.folder=this.parent.toparticlesfolder;
	this.HTML = '';
	this.context='';
	this.GetHTML=theWebPageTemplate_GetHTML;
	this.Write=theWebPageTemplate_Write;
	this.OnSearch=theWebPageTemplate_OnSearch;
	this.OnClick=theWebPageTemplate_OnClick;	
	this.GetBreadCrumb=theWebPageTemplate_GetBreadCrumb;
	this.GetContext=theWebPageTemplate_GetContext;
	this.OnSubmit=theWebPageTemplate_OnSubmit;
	return(this);
}
/*

Author: James Champagne <james.champagne@cgi.com>

*/
//function theApp_SetContext(vNavigatorFilter,vNavigator,vArticleAdvancedSearchForm)
function theApp_GetFolderObjectByID(vID)
{
	var i=0;
	var vReturn=''
	var j=0;
	var vFolder=this.folder;
	var vObject=null;
	var vString=new String(vID);
	if (vString.length==0) vString=this.folder.id;
	vObject=this.GetFolderByID(vID)			
	//alert(vObject.name);
	if (!vObject) vObject=this.GetArticleByID(vID)
	return(vObject);
}

function theApp_SetContext(vServerError,vNavigator,vArticleAdvancedSearchForm)
{
	//alert('setc')
	this.servererror=vServerError
	this.navigator=this.Trim(vNavigator);
	this.navigator=(this.navigator.length>0) ? this.navigator : this.rootfolder.id;
	this.articleadvancedsearchform=vArticleAdvancedSearchForm;
	return(this);
}
function theApp_GetArticleByID(vID)
{
	var i=0;
	var j=0;
	for(i=0;i<this.folders.length;i++)
	{
		for(j=0;j<this.folders[i].articles.length;j++)
		{
			if (this.folders[i].articles[j].id==vID) return(this.folders[i].articles[j])
		}
	}
	return(null);
}

function theApp_GetFolderByID(vID)
{
	var i=0;
	for(i=0;i<this.folders.length;i++)
		//alert(vID + '?' + this.folders[i].id)
		if (this.folders[i].id==vID) return(this.folders[i])
	return(null);
}
function theApp_GetFoldersEx(vObject)
{
	var vFolder=vObject;
	var vArray=new Array();
	var i=0;
	vArray.push(vFolder);
	for(i=0;i<vFolder.folders.length;i++)
	{
		//vArray.concat(this.GetFoldersEx(vFolder.folders[i]));
		
		vArray.push(vFolder.folders[i]);
		vArray.concat(this.GetFoldersEx(vFolder.folders[i]));
		//alert(vFolder.folders[i].name);
	}
	return(vArray)
}
function theApp_GetFolderObject(vPath)
{
	var i=0;
	var vReturn=''
	var j=0;
	var vFolder=this.folder;
	var vObject=null;
	var vString=new String(vPath);
	if (vString.length==0) vString=this.folder.GetPath();
	var vArray=vString.split('\\');
		for(j=0;j<vArray.length;j++)
		{
			vObject=this.GetFolder(vFolder,vArray[j])			
			while (vObject && vFolder)
			{
				vObject=this.GetFolder(vFolder,vArray[j])
				if (vObject)	
				{
					vReturn+=vObject.name+'|'	
					vFolder=vObject
				}
			}
			vReturn=vFolder;			
			if (vFolder && vFolder.name!=vArray[vArray.length-1])
				vReturn=this.GetArticle(vFolder,vArray[vArray.length-1])
		}	
	return(vReturn);
}
function theApp_GetFolder(vParent,vName)
{
	var i=0;
	for(i=0;i<vParent.folders.length;i++)
		if (vParent.folders[i].name==vName) return(vParent.folders[i]);
	return(null);
}
function theApp_GetArticle(vParent,vName)
{
	var i=0;
	for(i=0;i<vParent.articles.length;i++)
		if (vParent.articles[i].name==vName) return(vParent.articles[i]);
	return(null);
}

function theApp_GetGMTDate(vDateString)
{
	vNewDate=new Date(0);
	vMSeconds=Date.parse(vDateString)
	vDST=(this.IsDST(vDateString)) ? 0 : 60;
	vNewDate.setTime(vMSeconds - ((vNewDate.getTimezoneOffset()-vDST)*60*1000))
	var vYear=vNewDate.getFullYear();
	var vMonth=vNewDate.getMonth()+1;
	var vDate=vNewDate.getDate();
	var vHours=vNewDate.getHours();
	var vMinutes=vNewDate.getMinutes();
	var vSeconds=vNewDate.getSeconds();
	var vReturn=vYear;
	vReturn+='/'+((vMonth<10) ? '0'+vMonth:vMonth)
	vReturn+='/'+((vDate<10) ? '0'+vDate:vDate)
	vReturn+=' '+((vHours<10) ? '0'+vHours:vHours)
	vReturn+=':'+((vMinutes<10) ? '0'+vMinutes:vMinutes)
	vReturn+=':'+((vSeconds<10) ? '0'+vSeconds:vSeconds)
	return(vReturn)
}

function theApp_IsDST(vDateString)
{
	dst=false
	var gmt = new Date(vDateString);
	var lsm = new Date;
	var lso = new Date;
	lsm.setMonth(2); // March
	lsm.setDate(31);
	var day = lsm.getDay();// day of week of 31st
	lsm.setDate(31-day); // last Sunday
	lso.setMonth(9); // October
	lso.setDate(31);
	day = lso.getDay();
	lso.setDate(31-day);
	if (gmt < lsm || gmt >= lso) dst = true;
	return(dst)
}

function theApp_SetCookie(name, value) 
{ 
	var vCookie = document.cookie;
	var today = new Date();
	var expiry = new Date(today.getTime() + this.cookieduration); 
	if (value != null && value != "")
	  document.cookie=name + '=' + escape(value) + '; expires=' + expiry.toGMTString() + ';' 
	else
	  document.cookie=name + '=' + escape(value) + '; expires=' + today.toGMTString() + ';' 
	return (value);
}

function theApp_GetCookie(name) 
{ 
	var vCookie = window.document.cookie;
    var index = vCookie.indexOf(name + "=");    
    if (index == -1) return '';
    index = vCookie.indexOf("=", index) + 1;
    var endstr = vCookie.indexOf(";", index);
    if (endstr == -1) endstr = vCookie.length;
    return unescape(vCookie.substring(index, endstr));  
}  

function theApp_ConvertToHTML(vString)
{
	vReturn=String(vString)
	return(vReturn.replace(/\r\n/g,'<BR>'))
}
function theApp_Trim(vString)
{    
    var strReturn = String(vString);
    strReturn = strReturn.replace(/^\s+/, ''); // beginning spaces are convert to an empty string
    strReturn = strReturn.replace(/\s+$/, ''); // ending spaces are convert to an empty string
	return (strReturn);
}
function theApp_GetPropertyValue(vName)
{
	for(var i=0;i<this.properties.length;i++)
		if (this.properties[i][0]==vName) return(this.properties[i][1]);
	return('')
}
function theApp_AddProperty(vName,vValue)
{
	var vProperty = new Array(vName,vValue)
	this.properties[this.properties.length]=vProperty;
	return(vProperty);
}

function theApp(vParent)
{
	this.parent=vParent;
	this.name='theApp';	
	this.folder=null;
	this.servererror='';
	this.folders=new Array();
	this.articleadvancedsearchform='';
	//this.selectedarticle=null;
	//this.selectedfolder=null;
	this.article=null;
	this.searchresultsfolder=null;
	//this.cmd='';
	this.isbinded=false;
	this.modified=''
	this.modifiedby=''
	this.cookieduration=(1 * 24 * 60 * 60 * 1000);
	this.properties=new Array();
	this.navigatorfilter='';
	this.navigator='';
	this.AddProperty=theApp_AddProperty;
	this.GetPropertyValue=theApp_GetPropertyValue;
	this.Trim=theApp_Trim;
	this.GetCookie=theApp_GetCookie;
	this.SetCookie=theApp_SetCookie;
	this.IsDST=theApp_IsDST;
	this.GetGMTDate=theApp_GetGMTDate;
	this.ConvertToHTML=theApp_ConvertToHTML;
	this.GetFolderObject=theApp_GetFolderObject;
	this.GetFolder=theApp_GetFolder;
	this.GetArticle=theApp_GetArticle;
	this.GetFoldersEx=theApp_GetFoldersEx;
	this.GetFolderByID=theApp_GetFolderByID;
	this.GetArticleByID=theApp_GetArticleByID;
	this.GetFolderObjectByID=theApp_GetFolderObjectByID;
	this.SetContext=theApp_SetContext;
	return(this);
}
window.theApp=new theApp(window);

