document.write("<table width='1002' border='0' cellpadding='0' cellspacing='0' ID='Table1'>")
document.write("<tr><td><table width='1002' cellspacing='0' cellpadding='0' border='0' ID='Table2'><tr><td width='1002' height='91'>")
document.write("<table cellpadding='0' cellspacing='0' border='0' ID='Table5'><tr><td>")
document.write("<img src='../images/headers/acura_header_top.gif' width='1002' height='91' border='0' /></td>")								
document.write("</tr><tr><td><table cellspacing='0' cellpadding='0' border='0' ID='Table20' width='1003' background='../images/headers/acura_header_btm.gif' >")
document.write("<tr><TD width='35'></TD><TD align='left' width='50'><a href='../default.asp'><img src='../images/topnavigation/home_normal.gif' alt='Home' border='0'/></a></TD><td height='19' ><a href='sitemap.htm'><img src='../images/topnavigation/sitemap_normal.gif' alt='Home' border='0'/></a></td></tr></table></td></tr></table>")
document.write("</td></tr><tr><td><img src='images/spacer.gif'  height='5' width='779' alt='' border='0' /></td></tr><tr><td background='images/es_1_ln_btmBar.gif' bgcolor='#BDC9CD'><img src='images/spacer.gif'  height='14' width='779' bgcolor='#8a8a8a' alt='' border='0' /></td></tr>")
document.write("<tr><td class='bluetext' align='right'></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=580;
					
				}
				//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';
			}
			
			if (b_openRepairPopup && b_openPopup) 
				b_closepopup = true;
			setOpenWindowParams(s_url,w,h,y,x,b_closepopup,b_closed);
			
			b_openRepairPopup=false;
			strCloseClicked='';
		}

		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='';
		}