function WhatDates() {
	var myd=new Date();
	var addh = 0;
  var thisYear, AprilDate, OctoberDate, MarchDate, NovemberDate;
  thisYear = Math.round(parseInt(myd.getYear()));
	var Thismonth = myd.getMonth()+1;
	
	var ThisDate = myd.getDate();
 AprilDate = (2+6 * thisYear - Math.floor (thisYear / 4) ) % 7 + 1;
 OctoberDate=  (31-( Math.floor (thisYear * 5 / 4) + 1) % 7);
 
 MarchDate = 14 - (Math.floor (1 + thisYear * 5 / 4) % 7);
 NovemberDate = 7 - (Math.floor (1 + thisYear * 5 / 4) % 7);
  if (thisYear > 2006)  
  {
	  if (Thismonth > 3 || Thismonth < 11) {return 1;}
	  else if (Thismonth == 3) 
	  	{ 
		  	if (ThisDate>MarchDate) {return 1;} 
		  	else  {return 0;}
		}
	  else if ( Thismonth == 11) 
	  { 
		 if (ThisDate>NovemberDate) {return 1;} 
		 else  {return 0;}
	  }
	  else {return 0;}
  }
  
  else	{
	  if (Thismonth > 4 || Thismonth < 10) {return 1;}
	  else if ( Thismonth == 4) {return ThisDate > AprilDate?(1): (0);}
	  else if ( Thismonth == 10) {return ThisDate < OctoberDate?(1):(0);}
	  else return 0;
	  }


//document.getElementById("startu").innerHTML= thisYear>2006?("March "+MarchDate):("April "+AprilDate);
//document.getElementById("stopu").innerHTML = thisYear>2006?("November "+NovemberDate):("October "+OctoberDate);
}

//alert("day="+WhatDates());


var d=new Date();
  
//javascript:void(window.open(&quot;http://161.228.212.215/netagent/proactive/chatredir.asp?RouteIdent=SBS_Sales&LoginName=Visitor&EMAIL=199.231.50.128&CLIENT=ACTIVEXCLIENT&LangSelection=11&Subject=Anonymous%20Chat%20Bilal%20Test.&#10;&&quot;,&quot;tpoChatWindow&quot;,&quot;width=700,height=310,alwaysRaised=1,menubar=no,toolbar=no,resizable=no&quot;));tpoCloseButton();
var chatlink = "javascript:void(window.open('https://customerassistance.pb.com/netagent/proactive/chatredir.asp?RouteIdent=SBS_Sales&LoginName=Visitor&EMAIL=199.231.50.128&CLIENT=ACTIVEXCLIENT&LangSelection=11&Subject=Anonymous%20Chat%20Bilal%20Test.&#10;&','tpoChatWindow','width=700,height=310,alwaysRaised=1,menubar=no,toolbar=no,resizable=no'));tpoCloseButton();"
//var naon = "<br>&ensp;&ensp;&ensp;&ensp;&ensp;<A HREF='javascript:void(window.open(&quot;https://customerassistance.pb.com/netagent/proactive/chatredir.asp?RouteIdent=E700%20Wizard&LoginName=Visitor&EMAIL=" + d.getTime() + "&CLIENT=ACTIVEXCLIENT&LangSelection=11&Subject=Anonymous%20Chat&quot;,&quot;tpoChatWindow&quot;,&quot;width=700,height=310,alwaysRaised=1,menubar=no,toolbar=no,resizable=no&quot;));' ><IMG border=0 NAME='ChatImag' SRC='https://www.pb.com/bv70/images/SupportChat.gif' ALT='Image'></A>";
var naon = "<br>&ensp;&ensp;&ensp;&ensp;&ensp;<A HREF='javascript:void(window.open(&quot;https://cim.pb.com/netagent/cimlogin.aspx?questid=E2DD964C-E855-4FEB-8D4E-36C82A23113B&portid=05080F85-AFFD-4CF7-A886-630D9A101733&nareferer=&rsquo;+escape(document.location)&quot;,&quot;tpoChatWindow&quot;,&quot;width=700,height=475,alwaysRaised=1,menubar=no,toolbar=no,resizable=no&quot;));' ><IMG border=0 NAME='ChatImag' SRC='https://cim.pb.com/netagent/client/invites/chatimage.aspx?style=style0&questid=E2DD964C-E855-4FEB-8D4E-36C82A23113B&portid=05080F85-AFFD-4CF7-A886-630D9A101733&imagelanguage=en-us&customopenimage=https%3A//cim.pb.com/netagent/PBChatImages/chat2expert.png&customcloseimage=https%3A//cim.pb.com/netagent/PBChatImages/blank.gif' ALT='Login to Chat'></A>";
var naoff = "<br><div class='qna-wizard-question-label'>Sorry, Our Chat line is closed!!</div>";
var show = "";

var contactuslink1 = "";
var contactuslink2 = "<a class='contactus-emaillink' href='http://www.pb.com/cgi-bin/pb.dll/jsp/ContactHome.do?lang=en&country=us' ><img src='http://www.pitneyworks.com/images/shared/sidebar_actions/contactus_generic.gif' alt='Contact us'/></a>";
var contactuslink3 = "";
var contactuslink4 = "";
var contactuslink5 = "";
var contactuslink6 = "";

var gmtMS = d.getTime() 
              + (d.getTimezoneOffset() * 60000);
var temp = d.getTimezoneOffset();
var gmtTime =  new Date(gmtMS);
var hr = gmtTime.getHours() + WhatDates();
//alert(hr);
 var thehour = d.getHours();
 var themonth = d.getMonth()+1;
 var thedate = d.getDate();
 //alert(themonth);
 //alert(thedate);
 if (( themonth == 11 && thedate == 23) || ( themonth == 11 && thedate == 24))
{
	show = naoff;
}
else
{
//alert(hr); 19=1pm
		if (d.getDay()==1 || d.getDay()==2 || d.getDay()==3 || d.getDay()==4 || d.getDay()==5)
		{
			if (hr >= 14 || hr <= 1 ) {
			show = naon;
			} else {
			show = naoff;
			} 
		}
}