function show_print_coupon(url, lCouponId)
{
	if (url) {
	    var oNewWin = window.open(url + "?cid="+lCouponId, "printcoupon", "height=540,width=430,resizable=yes,menubar=no,location=no,status=no,scrollbars=no");
	    oNewWin.focus();
	}
}

function show_print_allcoupons(url, sOfferType) 
{
	if (url) {
	    var oNewWin = window.open(url + "?t="+sOfferType, "printcoupons", "height=540,width=444,resizable=yes,menubar=no,location=no,status=no,scrollbars=yes");
	    oNewWin.focus();
	}
}

function pwordPopup(url) {
	if (url) {
	    var oNewWin = window.open(url, "passWindow", "height=400,width=432,resizable=no,menubar=no,location=no,status=no,scrollbars=no");
        oNewWin.focus();
    }
}

function windowOpen(url) 
{
	if (url) {
        window.open (url,"")
    }
}
    
function popupSvcContract(url)
{
	if (url) {
		var oNewWin = window.open(url, '', 'width=1050,height=800,resizable=yes,scrollbars=yes,menubar=false');
	    oNewWin.focus();
	}
}

function popupEstore(url)
{
	if (url) {
		var oNewWin = window.open(url, '', 'width='+screen.width+',height='+screen.height+',resizable=yes,scrollbars=yes,menubar=false');
	    oNewWin.focus();
	}
}

function popRadioNavi(url)
{
    if (url) {
	    var oNewWin = window.open(url, '', 'height=725, width=1010,resizable=no,menubar=no,location=no,status=no,scrollbars=no');
	    oNewWin.focus();
	    }
}

function helpPopUp(url) 
{
	
	if (url) {
	    var oNewWin = window.open(url, 'helpWindow', 'height=350, width=586,resizable=no,menubar=no,location=no,status=no,scrollbars=yes');
	    oNewWin.focus();
	}
}

function helpPopUpForRemoteEngineStarter(url) 
{
	
	if (url) {
	    var oNewWin = window.open(url, 'RemoteEngineStarterhelpWindow', 'height=400, width=798,resizable=no,menubar=no,location=no,status=no,scrollbars=yes');
	    oNewWin.focus();
	}
}

function ResetApptReminderDays(chkEmailApptReminder, ddlReminderDays){
	if(chkEmailApptReminder.checked == false){
		//Reset to 1 Day
		ddlReminderDays.selectedIndex = 1;
	}
}

function ResetApptReminderDaysAcuraLink(chkApptReminder, ddlReminderDays){
	if(chkApptReminder.checked == false){
		var ctl;
		ctl = document.getElementById(ddlReminderDays);
		ctl.disabled = true; }
	
	else {
    	var ctl;
		ctl = document.getElementById(ddlReminderDays);
		ctl.disabled = false; }
}


function CreateControl(CODEBASE, CLSID, ObjectID, WIDTH, HEIGHT, URL, QUALITY, BGCOLOR, ALIGN, SCRIPTACCESS, TYPE, PLUGINSPAGE, type)	
{
    if (type == 'swf')	{
	    var	sString = '<object classid=' + CLSID + ' codebase=' + CODEBASE + ' id=' + ObjectID + ' width=' + WIDTH + ' height=' + HEIGHT + ' align=' + ALIGN + '><param name="allowScriptAccess" value="' + SCRIPTACCESS + '"><param name="movie" value="' + URL + '"><param name="quality" value="' + QUALITY + '"><param name="bgcolor" value="' + BGCOLOR + '"><param name="wmode" value="transparent"><embed src=' + URL + ' quality=' + QUALITY + ' bgcolor=' + BGCOLOR + ' width=' + WIDTH + ' height=' + HEIGHT + ' name=' + ObjectID + ' align=' + ALIGN + ' wmode=transparent allowScriptAccess=' + SCRIPTACCESS + ' type=' + TYPE +' pluginspage=' + PLUGINSPAGE + '></embed></object>';
    }
    else if (type == 'mov')	{
	    var	sString = '<embed src=' + URL + ' width=' + WIDTH + ' height=' + HEIGHT + '></embed>';
    }
    document.write(sString);
}

// Download PDF Files with Tracking for Omniture Created by Amit Lathi (alathi@genex.com)"

function popUpPDFAttachment(obj, URL, OmnitureTrackingName, SectionName)
{
    //alert('Tracking obj: ' + obj + ' URL: ' + URL + ' Name: ' + OmnitureTrackingName);
    TagFileDownload(obj,OmnitureTrackingName);
    //alert('Tracked');
    
	window.open(URL, 'pdfWindow', 'height=840,width=800,left=200,top=50,resizable=yes,menubar=no,location=no,status=no,scrollbars=yes');
}

//added on 19-may-2008

function popForTsxNewLinks(url)
{
    if (url) {
	    var oNewWin = window.open(url, '', 'height=900, width=980,resizable=no,menubar=no,location=no,status=no,scrollbars=yes,left=100,top=50');
	    oNewWin.focus();
	    }
}

function SubmitFormOnEnter(e,buttonID)
{
	var iKeyCode;
	if(navigator.appName=='Netscape')
		iKeyCode = e.which;
	else
		iKeyCode = e.keyCode;

    if(iKeyCode==13) { 
        var objSubmit=document.getElementById(buttonID);
        if (objSubmit!=null) 
            objSubmit.click(); }
}

function callSiteWithOmniture(destination,url,obj)
{
    if (destination == "acura")
        X.Omniture.trigger({data: {prop25:'ACURA.COM',prop24:window.omniData['pageName']}},obj,'e');
    else if (destination == "myacura")
        X.Omniture.trigger({data: {prop25:'MY ACURA',prop24:window.omniData['pageName']}},obj,'e');
    
    window.location.href = url;
    return false;
}