
			function setCookie(b,d,a)
			{
			    var e = new Date();
			    var c = document.domain;
			    e.setDate(e.getDate()+a);
			    //alert(b+"="+escape(d));
			    document.cookie=b+"="+escape(d)+";path=/;domain=.verizon.com"+((a==null)?";":";expires="+e.toGMTString())
			   //alert(document.cookie);
			}
			
			function deleteCookie(a)
			{
			    if(getCookie(a).length>0)
			       {
			            document.cookie=a+"=;path=/;domain=.verizon.com;expires=Thu, 01-Jan-1970 00:00:01 GMT;"
			       }
			}
			
			function SetBusinessunitcookie(businessunit)
			{
			    var strbusinessUnit = businessunit;
			    if(strbusinessUnit == 'wireless')
			    {
			        deleteCookie('BusinessUnit');
			        setCookie('BusinessUnit','wireless',60);
			        window.location = "http://www.verizonwireless.com/b2c/index.html"
			        return false; 
			
			    }
			    else if(strbusinessUnit == 'business')
			    {
			        deleteCookie('BusinessUnit');
			        setCookie('BusinessUnit','business',60);
			        window.location = '/home/verizonglobalhome/ghp_business.aspx'; 
			        return false; 
			
			    }
			    else if(strbusinessUnit == 'residential')
			    {
			        deleteCookie('BusinessUnit');
			        setCookie('BusinessUnit','residential',60);
			 //       window.location = '/'; 
				    if (/MSIE (\d+\.\d+);/.test(navigator.userAgent))
				    { 
			 		    var ieversion=new Number(RegExp.$1) // capture x.x portion and store as a number
					    if (ieversion > 8)
					    {
						    window.location= "/?lid=//global//residential";
					    }
					    else
					    {
						    window.location="/?lid=//global//residential";
					    }
				    }
				    else
				    {
					    window.location="/?lid=//global//residential";
				    }        
			        return false; 
			       
			    }
			}
			    
			var expiredate = new Date();
			expiredate.setMinutes( expiredate.getMinutes() + 2);
			document.cookie = "hbxRet"+"="+"Y" + ";path=/;domain=.verizon.com;expires="+expiredate.toGMTString();
