
				
				
				//begin
				d = new Array(
				"Sunday",
				"Monday",
				"Tuesday",
				"Wednesday",
				"Thursday",
				"Friday",
				"Saturday"
				);
				m = new Array(
				"January",
				"February",
				"March",
				"April",
				"May",
				"June",
				"July",
				"August",
				"September",
				"October",
				"November",
				"December"
				);
				
				today = new Date();
				day = today.getDate();
				year = today.getYear();
				
				if (year < 2000)    
				year = year + 1900; 
				
				end = "th";
				if (day==1 || day==21 || day==31) end="st";
				if (day==2 || day==22) end="nd";
				if (day==3 || day==23) end="rd";
			//	day+=end;
				var thisDate = " " + d[today.getDay()]+" "+m[today.getMonth()]+" " + day+", " + year +" "
				
				var signin = "<table id='dealerportal' width='1000px'><tr height='24' valign='top'><td width='200', valign='middle'><font style='font-weight: normal; font-family:Verdana; font-size:10px; color:#000000;'>" + thisDate + "</td><td width='350' align='right'><form action='http://www.helicalpiersystems.com/search_results.htm' id='cse-search-box'><div><input type='hidden' name='cx' value='003891937402139721589:wo7gswcd4ig'/><input type='hidden' name='cof' value='FORID:9'/><input type='hidden' name='ie' value='UTF-8'/><font style='font-weight: normal; font-family:Verdana; font-size:10px; color:#000000;'>Search HPS website:</font> <input type='text' name='q' size='20' style='font-family: Verdana; font-size:10px; border:1px solid #999999;'/>&nbsp;<input type='submit' name='sa' value='Search' style='font-family:Verdana; font-size:10px;'/></div></form></td><td width='350' align='right'><form name='ccoptin' action='http://ui.constantcontact.com/d.jsp' target='_blank' method='post' style='margin-bottom:3;'><font style='font-weight: normal; font-family:Verdana; font-size:10px; color:#000000;'>Newsletter Sign Up Enter Email: </font><input type='text' name='ea' size='20' value='' style='font-family: Verdana; font-size:10px; border:1px solid #999999;'>&nbsp;<input type='submit' name='go' value='Join' class='submit'  style='font-family:Verdana; font-size:10px;'><input type='hidden' name='m' value='1101216916617'><input type='hidden' name='p' value='oi'></form></td></tr></table>";
				
			
				document.write(signin);
			