//This function writes the liveHelp image and link
function getLiveHelp()
{
	var theText = new String("");
	if (CM_PageID == "" || CM_PageID == null || CM_PageID.length <= 0 || CM_PageID == undefined)
	  CM_PageID = 'SPECIAL PROMOTION';
	
	var newCatID;
	if (CM_CatID == "" || CM_CatID == null || CM_CatID.length <= 0 || CM_CatID == undefined)
	  newCatID = 'PROM';
	else
		var newCatID = 'LIVE' + CM_CatID.substring(4, 8)
	 
	theText = theText + '<table width="95%" cellpadding="5" align="center" cellspacing="0" border="0">';
	theText = theText + '    <tr>';
	theText = theText + '	    <td align="center">';
	theText = theText + '          <a href="https://www-ssl.qvc.com/qic/qvcapp.aspx/app.multi/params.file.|cshtml|cs_help,html/walk.multi.|cshtml|cs_helpmenu,asp?PAGE-_-FOOTER-_-CUSTOMERSVC" onClick="Javascript:MoreInfo_cmPageViewTag(&#034;' + CM_PageID + '&#034;, &#034;' + newCatID + '&#034;, &#034;LIVE HELP&#034;, &#034;&#034;);" target="_blank">';
  theText = theText + '               <img src="/qvc/gif/liveonlinebttn_new.gif" alt="Need Help? Click Here for Customer Service" border="0" width="175" height="44"></a></td>';
	theText = theText + '	 </tr>';	
	theText = theText + '</table>';
	
	document.write(theText);

}

//the following functions were taken out of footer.html
function createCookie(name,value,days)
	{
	  if (days)
		{
			var date = new Date();
		  date.setTime(date.getTime()+(days*24*60*60*1000));
			var expires = "; expires="+date.toGMTString();
		}
		else var expires = "";

		document.cookie = name+"="+value+expires+"; path=/; domain=.qvc.com";
	}

	createCookie("origin","new",365)

function getFullYear(d)
{
	var y = d.getYear();
	if (y < 1000) y += 1900;
	return y;
}

function displayYear() {

var thedate = new Date();
var currYear = getFullYear(thedate);
  //alert('currYear :: ' + currYear);
  document.getElementById('copyYear').innerHTML = '&copy;1995-' + currYear;
}