var today= new Date();
var year = today.getFullYear();													
document.write("<table bgcolor='#D2D2D2' width='1002' cellspacing='0' cellpadding='0' border='0'>")
document.write("<tr><td height='20'><img src='images/spacer.gif' width='2' alt='' border='0' /></td>")
document.write("<td align='left' class='blacktext' valign='middle'>&nbsp;&nbsp;&#169;")
document.write (year);
document.write("&nbsp;American Honda Motor Co., Inc.</td><td><img src='images/spacer.gif' width='10' alt='' border='0'></td>")
document.write("<td align='right' valign='middle' class='footnote'><a  STYLE='text-decoration:none' href=javascript:openPopup('../asp/contactusdetails.asp?popup=1&IsDealer=0&&popup=1',false); class='blacktext'>Contact Us</a>&nbsp;|&nbsp;")
document.write("<a  STYLE='text-decoration:none' href=javascript:openPopup('../site/site_privacy.asp?&popup=1',true); class='blacktext'>Privacy Policy</a>&nbsp;|&nbsp;")
document.write("<a  STYLE='text-decoration:none' href=javascript:openPopup('../html/termsandconditions.htm',true); class='blacktext'>Terms &#38; Conditions</a></td>")
document.write("<td><img src='images/spacer.gif' width='5' alt='' border='0' /></td></tr></table>")
var b_openPopup=false;
var b_openRepairPopup=false;
var imgpath="../images/";
var b_blnIsPopup=false;
var g_popupwin;
var g_popuptype;
var divClosed=new Array();
ie = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ));
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 setOpenWindowParams(s_url,w,h,y,x,b_closepopup,b_closed) //private Function - DO NOT USE
		{
			var bampNeeded=true;
			
			if (s_url.indexOf('.asp')>=0)
			{
				if (s_url.indexOf('?')<=0)
				{
					s_url=s_url+'?';
					bampNeeded=false;
				}
				if (s_url.indexOf('sessionid=')<=0)
					s_url=s_url+((bampNeeded)?"&":"");
				s_url=s_url+"&popup=1";
			}
			
			//if (b_closepopup)
			//	b_closed=closePopup();
			
			//once the window has been close, the variable
			//b_openPopup is set to false because we already close the window
			if (b_closed)
				b_openPopup = false;
				
			if (!b_openPopup)
			{
				//g_popupwin = printwindowOpen(s_url, x, y, w, h)
				
				g_popupwin = windowOpen(s_url, x, y, w, h)
				b_openPopup = true;

			}
			else if (g_popupwin.closed || b_closed)
				//g_popupwin = printwindowOpen(s_url, x, y, w, h)
				g_popupwin = windowOpen(s_url, x, y, w, h)
			else
				//Modified by Neeraj for Issue 412
				g_popupwin = windowOpen(s_url, x, y, w, h)
				//g_popupwin.document.location = s_url;
				//Modified by Neeraj for Issue 412

			g_popupwin.focus();
			
		}
		
		// same as windowOpen
		// please remove when not needed
		function printwindowOpen(str, x, y, w, h) //Private Function-DO NOT USE
		{
			return window.open(str, "g_popupwin", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,height='+h+',width='+w+','+((ie)?"left":"screenX")+'='+x+','+((ie)?"top":"screenY")+'='+y, true);
		}

		function windowOpen(str, x, y, w, h) //Private Function-DO NOT USE
		{
			return window.open(str, "g_popupwin", 'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,height='+h+',width='+w+','+((ie)?"left":"screenX")+'='+x+','+((ie)?"top":"screenY")+'='+y, true);
		}
		function openPopup(s_url, b_large, blnShare) //URL string, boolean large popup
		{
			var w;
			var h;
			var x;
			var y;
			var b_closepopup=false;
			var b_closed=false;
			//var bampNeeded=true;

			if (!b_large)
			{
				
				//Nisheeth: Issue 215 
				//Width is made 580 if the window is being opened by Share you Opinion link.
				
				if (!blnShare){
					
					w=550; 	//old popup width w=435; 
							//Issue:79 increase the size of the popup to fit the email textbox
				}
				else {
					w=550;
					
				}
				//blnShare = false;
				h=550;
				x=150;
				y=40;
				if (g_popuptype=='L')
					b_closepopup=true;
				g_popuptype='S';
			}
			else
			{
				
				w=450;
				h=415;
				x=150;
				y=60;
				if (g_popuptype=='S')
					b_closepopup=true;
				g_popuptype='L';
			}
			// CR 034 - Tara Tran
			// open a new window if the last open window is for Repair Popup
			if (b_openRepairPopup && b_openPopup) 
				b_closepopup = true;
			setOpenWindowParams(s_url,w,h,y,x,b_closepopup,b_closed);
			
			b_openRepairPopup=false;
			strCloseClicked='';
		}
//Changes made by JC to open up the new Map created by New Dealer Locator Components
		function openPopupMap(s_url, b_large) //URL string, boolean large popup
		{
			var w;
			var h;
			var x;
			var y;
			var b_closepopup=false;
			var b_closed=false;
			//var bampNeeded=true;

			
			if (!b_large)
			{
				w=510;
				h=525;
				x=150;
				y=30;
				if (g_popuptype=='L')
					b_closepopup=true;
				g_popuptype='L';
			}
			else
			{
				w=400;
				h=415;
				x=150;
				y=60;
				if (g_popuptype=='S')
					b_closepopup=true;
				g_popuptype='L';
			}
			// CR 034 - Tara Tran
			// open a new window if the last open window is for Repair Popup
			if (b_openRepairPopup && b_openPopup) 
				b_closepopup = true;
			
			setOpenWindowParams(s_url,w,h,y,x,b_closepopup,b_closed);
			// a window is open but not for repair
			b_openRepairPopup=false;
		strCloseClicked='';
		}