var curPopupWindow = null;
var simplePopupWindow = null;

/*
 openPopupWithFeatures: open a popup window and enforce windows features and width and height
 */
function openPopupWithFeatures(url, name, features, closeOnFocus){
    closePopup();

    if (closeOnFocus) {
        curPopupWindow = window.open(url, name, features, false);
        curPopupWindow.focus();
    } else {
		/* assign the open window to a dummy var so when closePopup() is called it won't be assigned to curPopupWindow */
        win = window.open(url, name, features, false);
        win.focus();
    }
}

/* Functions for the ACR popup with tabs */

function openPopupWithACRFeatures(url2, name, features, closeOnFocus){
    closePopup();

    if (closeOnFocus) {
		
        curPopupWindow = window.open(url2, name, features, false);
		curPopupWindow.focus();
        
    } else {
		/* assign the open window to a dummy var so when closePopup() is called it won't be assigned to curPopupWindow */
        win = window.open(url2, name, features, false);
        win.focus();
    }
}


function openACRPopup(url, name, tab)
{
	url2 = url + "?tab=" + tab;
    features = "width=400,height=580,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithACRFeatures(url2, name, features, true);
}

/* End of functions for the ACR popup with tabs */

/* Functions for the Vehicles ACR popup */
function openACRVehiclesPopup(url, name)
{
    features = "width=550,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}
/* End of functions for the Vehicles ACR popup */

/* Functions for the SVA popup with tabs */

function openPopupWithSVAFeatures(url2, name, features, closeOnFocus){
    closePopup();

    if (closeOnFocus) {
		
        curPopupWindow = window.open(url2, name, features, false);
		curPopupWindow.focus();
        
    } else {
		/* assign the open window to a dummy var so when closePopup() is called it won't be assigned to curPopupWindow */
        win = window.open(url2, name, features, false);
        win.focus();
    }
}


function openSVAPopup(url, name, tab)
{
	url2 = url + "?tab=" + tab;
    features = "width=364,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithSVAFeatures(url2, name, features, true);
}

/* End of functions for the SVA popup with tabs */

/* SVA FAQs popup */
function openSVAFaqsPopup(url, name)
{
    features = "width=610,height=720,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}
/* End of SVA FAQs popup */


/* SVS popup */
function openSVSPopup(url, name,tab)
{
    url2 = url + "?tab=" + tab;
    features = "width=440,height=400,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithSVAFeatures(url2, name, features, false);
}
/* End of SVS popup */

/* Functions for the SCA popup */
function openSCAPopup(url, name, tab){
	url2 = url + "?tab=" + tab;
  features = "width=560,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithSCAFeatures(url2, name, features, true);
}

function openPopupWithSCAFeatures(url2, name, features, closeOnFocus){
    closePopup();
    if (closeOnFocus) {
			curPopupWindow = window.open(url2, name, features, false);
			curPopupWindow.focus();
		} else {
			/* assign the open window to a dummy var so when closePopup() is called it won't be assigned to curPopupWindow */
      win = window.open(url2, name, features, false);
      win.focus();
    }
}
/* End of functions for the SCA popup */
 
/*
  openSimplePopup: Opens a simple popup with no width/height restrictions or features.  Equivalent to opening a new browser window.
 */
function openSimplePopup(url, name)
{
	simplePopupWindow = window.open(url,name);
	simplePopupWindow.focus();
}

/* 
   closePopup: Closes current popup, usually called before opening a popup to clean up last popup which prevent many popups up at once.
*/
function closePopup() {
    if (curPopupWindow != null) {

        if (!curPopupWindow.closed) 
        {
            curPopupWindow.close();
        }
        curPopupWindow = null;
    }
}

function dealerPopup(url, name)
{
    features = "width=455,height=420,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openTextPopup(url, name)
{
    features = "width=418,height=350,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openTTYPopup(url, name)
{
    features = "width=418,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openTBTPopup(url, name)
{
    features = "width=400,height=600,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}


function openDirConnPopup(url, name)
{
    features = "width=500,height=650,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openSimplePopupNoNav(url, name)
{
    features = "location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
}

function openBigPopup(url, name)
{
    features = "width=624,height=550,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
}

function openFullPagePopup(url, name)
{
    features = "width=790,height=575,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
}

function openImagePopup(url, name) {
    features = "width=400,height=650,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openImagePopupScroll(url, name) {
    features = "width=418,height=550,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openModelPopupScroll(url, name) {
    features = "width=428,height=550,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openMultiPopup(url, name) {
    features = "width=400,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openCanTBTPopup(url, name) {
    features = "width=350,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openTBTDemoPopup(url, name)
{
    features = "width=420,height=296,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openMoviePopup(url, name) {
    features = "width="+screen.width+",height="+screen.height+",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
}

function open_iDemo(flash) {
	
    if(flash)
	{
		document.getElementById('flash').style.display = "none";
		document.getElementById('static').style.display = "block";	
	}

    url = "/us_english/jsp/idemo/index.jsp";
	features = "width=" + screen.width + ",height=" + screen.height +",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	win = window.open(url, name, features);
	win.moveTo(0, 0);

	if(flash)
		win.focus();
}

function show_iDemo1(){
	open_iDemo1(true);
}

function open_iDemo1(flash) {
	
    if(flash)
	{
		document.getElementById('flash').style.display = "none";
		document.getElementById('static').style.display = "block";	
	}

    url = "/us_english/jsp/idemo/index.jsp?evar1=hpdemolink_map";
	features = "width=" + screen.width + ",height=" + screen.height +",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	win = window.open(url, name, features);
	win.moveTo(0, 0);

	if(flash)
		win.focus();
}

function show_iDemo2(){
	open_iDemo2(true);
}

function open_iDemo2(flash) {
	
    if(flash)
	{
		document.getElementById('flash').style.display = "none";
		document.getElementById('static').style.display = "block";	
	}

    url = "/us_english/jsp/idemo/index.jsp?evar1=hpdemolink_mirror"
	features = "width=" + screen.width + ",height=" + screen.height +",location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	win = window.open(url, name, features);
	win.moveTo(0, 0);

	if(flash)
		win.focus();
}


function open_sashowroom() {
    url = "/us_english/jsp/idemo/sa_showroom.jsp";
	features = "width=775,height=500,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	win = window.open(url, 'sashowroom', features);
	win.focus();
}

function openDHSPopup(url, name)
{
    features = "width=400,height=276,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}
function openServicesPopup(url, name)
{
    features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}

function openServicesVideoPopup(url, name)
{
    features = "width=925,height=550,location=no,menubar=no,status=no,toolbar=no,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
}

function openCSPopup(url, name)
{
    features = "width=360,height=240,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
}


/* ONSTAR TREATMENT SPECIFIC FUNCTIONS. These functions are being referenced inside of the flash to override a tracking issue. -DR  */


//TOP LEFT SIDE LINK for the US_EN and CA_EN treatment pages. For the divisional pages it is the "DRIVING CONFIDENCE" tile. -- DR.

function openServicesTreatment() { 
	
	if (window.location.href.indexOf("buick_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=buick&model=enclave&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | BUICK | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 
	
	}else if (window.location.href.indexOf("chevy_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=chevy&model=silverado&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CHEVROLET | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 
	
	}else if (window.location.href.indexOf("gmc_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=gmc&model=yukon&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | GMC | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 
	
	}else if (window.location.href.indexOf("pontiac_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=pontiac&model=homepage&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 

	}else if (window.location.href.indexOf("cadillac_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=cadillac&model=sts&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 


}else if (window.location.href.indexOf("hummer_treatment")>=0){
	url = "/us_english/jsp/services/index.jsp?make=hummer&model=homepage&deepLink=overview&custom=divisionaltreatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | HUMMER | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | HUMMER';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | HUMMER | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 


	}else if (window.location.href.indexOf("us_english")>=0) {
	//alert ("US_EN TEST Services Popup");
	
	url = "/us_english/jsp/services/index.jsp?make=onstar&model=homepage&deepLink=overview&custom=treatment";
	features = "width=675,height=461,location=no,menubar=no,status=no,toolbar=no,scrollbars=no,resizable=no";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | SERVICES EXPERIENCE'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | SERVICES EXPERIENCE';s_prop6='ONSTAR TREATMENT | SERVICES EXPERIENCE';s_prop25='ONSTAR'; 
	
	
	}

sendAnalyticsEvent();
	
}


//TOP RIGHT SIDE LINK TREATMENT PAGES

function openLearnMore() { 
	
	
	if (window.location.href.indexOf("buick")>=0){
	
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | BUICK | HOME'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';
	
	
	}else if (window.location.href.indexOf("chevy")>=0){
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CHEVROLET | HOME'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';
	
	}else if (window.location.href.indexOf("gmc")>=0){
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | GMC | HOME'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';
	
	
	}else if (window.location.href.indexOf("pontiac")>=0){
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | HOME'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';
	
	}else if (window.location.href.indexOf("hummer")>=0){
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | HUMMER | HOME'; s_prop1='ONSTAR TREATMENT | HUMMER';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | HUMMER | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';

}else if (window.location.href.indexOf("cadillac")>=0){
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | HOME'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';
	
	}else if (window.location.href.indexOf("us_english")>=0) {
	//alert ("US_EN TEST Learn More Popup");
	url = "/us_english/jsp/index.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | HOME'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | HOME';s_prop6='ONSTAR TREATMENT | HOME';s_prop25='ONSTAR';

	}

sendAnalyticsEvent();
	
}


// Function that calls a brand and a make where applicable. -- DR.
function openBrands(brand,makeID) { 

if (brand=="bu" && makeID==null) {
	//alert ("US_EN TEST BU");
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | BUICK'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | BUICK';s_prop25='ONSTAR';
  
  url = "http://www.buick.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
  
} else if (brand=="bu" && makeID=="lacrosse") {
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | LACROSSE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | LACROSSE';s_prop25='ONSTAR';
		
		url = "http://www.buick.com/lacrosse";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
} else if (brand=="bu" && makeID=="tile") {
		url = "http://www.buick.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';
		
} else if (brand=="bu" && makeID=="lucerne") {
		url = "http://www.buick.com/lucerne";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | LUCERNE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | LUCERNE';s_prop25='ONSTAR';
		
} else if (brand=="bu" && makeID=="rainier") {
		url = "http://www.buick.com/rainier";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | RAINIER'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | RAINIER';s_prop25='ONSTAR';
		
} else if (brand=="bu" && makeID=="rendezvous") {
		url = "http://www.buick.com/rendezvous";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | RENDEZVOUS'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | RENDEZVOUS';s_prop25='ONSTAR';
		
} else if (brand=="bu" && makeID=="terraza") {
		url = "http://www.buick.com/terraza";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | TERRAZA'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | TERRAZA';s_prop25='ONSTAR';
		
} else if (brand=="bu" && makeID=="enclave") {
		url = "http://www.buick.com/enclave";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | BUICK | GM VEHICLES | ENCLAVE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | ENCLAVE';s_prop25='ONSTAR';

} else if (brand=="ca" && makeID==null) {
	//alert ("US_EN TEST CA");
	url = "http://www.cadillac.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | CADILLAC'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | CADILLAC';s_prop25='ONSTAR';

} else if (brand=="ca" && makeID=="tile") {
	//alert ("US_EN TEST HU");
	url = "http://www.cadillac.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';


} else if (brand=="ch" && makeID==null) {
	//alert ("US_EN TEST CH");
	url = "http://www.chevrolet.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | CHEVROLET'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | CHEVROLET';s_prop25='ONSTAR';

} else if (brand=="ch" && makeID=="cobalt") {
		url = "http://www.chevy.com/cobalt";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | COBALT'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | COBALT';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="tile") {
		url = "http://www.chevy.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="corvette") {
		url = "http://www.chevy.com/corvette";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | CORVETTE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | CORVETTE';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="hhr") {
		url = "http://www.chevy.com/hhr";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | HHR'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | HHR';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="impala") {
		url = "http://www.chevy.com/impala";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | IMPALA'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | IMPALA';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="malibu") {
		url = "http://www.chevy.com/malibu";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | MALIBU'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | MALIBU';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="malibumaxx") {
		url = "http://www.chevy.com/malibu";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | MALIBU MAXX'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | MALIBU MAXX';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="montecarlo") {
		url = "http://www.chevy.com/montecarlo";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | MONTE CARLO'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | MONTE CARLO';s_prop25='ONSTAR';
		
		//TRUCKS
} else if (brand=="ch" && makeID=="avalanche") {
		url = "http://www.chevy.com/avalanche";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | AVALANCHE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | AVALANCHE';s_prop25='ONSTAR';
		
		
} else if (brand=="ch" && makeID=="silverado") {
		url = "http://www.chevy.com/silverado";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | SILVERADO'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SILVERADO';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="silverado_classic") {
		url = "http://www.chevy.com/silverado";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | SILVERADO CLASSIC'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SILVERADO CLASSIC';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="colorado") {
		url = "http://www.chevy.com/colorado";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | COLORADO'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | COLORADO';s_prop25='ONSTAR';
		
}
		
		
		//SUVs
else if (brand=="ch" && makeID=="equinox") {
		url = "http://www.chevy.com/equinox";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | EQUINOX'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | EQUINOX';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="hhr") {
		url = "http://www.chevy.com/hhr";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | EQUINOX'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | EQUINOX';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="suburban") {
		url = "http://www.chevy.com/suburban";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | SUBURBAN'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SUBURBAN';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="tahoe") {
		url = "http://www.chevy.com/tahoe";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | TAHOE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | TAHOE';s_prop25='ONSTAR';
		
} else if (brand=="ch" && makeID=="trailblazer") {
		url = "http://www.chevy.com/trailblazer";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | TRAILBLAZER'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | TRAILBLAZER';s_prop25='ONSTAR';
		
		//VANs
} else if (brand=="ch" && makeID=="express") {
		url = "http://www.chevy.com/express";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | EXPRESS'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | EXPRESS';s_prop25='ONSTAR';
		
		
} else if (brand=="ch" && makeID=="uplander") {
		url = "http://www.chevy.com/uplander";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | CHEVROLET | GM VEHICLES | UPLANDER'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | UPLANDER';s_prop25='ONSTAR';


} else if (brand=="gc" && makeID==null){
	//alert ("US_EN TEST GC");
	url = "http://www.gmc.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | GMC'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | GMC';s_prop25='ONSTAR';
     }
	 // GMC MODEL SPECIFIC LINKS
		//TRUCKS
else if (brand=="gc" && makeID=="canyon") {
		url = "http://www.gmc.com/canyon";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | CANYON'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | UPLANDER';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="tile") {
		url = "http://www.gmc.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="sierra_1500") {
		url = "http://www.gmc.com/sierra";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | SIERRA'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SIERRA';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="sierra_hd") {
		url = "http://www.gmc.com/sierra/1500HD/index.jsp";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | SIERRA CLASSIC'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SIERRA CLASSIC';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="sierra_denali") {
		url = "http://www.gmc.com/sierra900/denali";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | SIERRA DENALI'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SIERRA DENALI';s_prop25='ONSTAR';
		
}
		
		//SUVs
else if (brand=="gc" && makeID=="acadia") {
		url = "http://www.gmc.com/acadia";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | ACADIA'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | ACADIA';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="envoy") {
		url = "http://www.gmc.com/envoy";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | ENVOY'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | ENVOY';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="yukon") {
		url = "http://www.gmc.com/yukon";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | YUKON'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | YUKON';s_prop25='ONSTAR';
		
} else if (brand=="gc" && makeID=="yukon_xl") {
		url = "http://www.gmc.com/yukon/xl/index.jsp";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | YUKON XL'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | YUKON XL';s_prop25='ONSTAR';
		
}
		
		//VAN
else if (brand=="gc" && makeID=="savana") {
		url = "http://www.gmc.com/savana";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
		
		s_pageName='ONSTAR | TREATMENT | GMC | GM VEHICLES | SAVANA'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SAVANA';s_prop25='ONSTAR';
		
} else if (brand=="hu" && makeID==null) {
	//alert ("US_EN TEST HU");
	url = "http://www.hummer.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | HUMMER'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | HUMMER';s_prop25='ONSTAR';


} else if (brand=="hu" && makeID=="tile") {
	//alert ("US_EN TEST HU");
	url = "http://www.hummer.com";
features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | HUMMER | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | HUMMER';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | HUMMER | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';

	
} else if (brand=="pg" && makeID==null){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | PONTIAC'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | PONTIAC';s_prop25='ONSTAR';



}  else if (brand=="pg" && makeID=="tile"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	

s_pageName='ONSTAR | TREATMENT | PONTIAC | DIVISION HOME'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | DIVISION HOME';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | DIVISION HOME';s_prop6='ONSTAR TREATMENT | DIVISION HOME';s_prop25='ONSTAR';



} else if (brand=="pg" && makeID=="G5"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/g5";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | G5'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | G5';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="G6Coupe"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/g6coupe";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | G6 COUPE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | G6 COUPE';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="G6Convertible"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/g6convertible";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | G6 CONVERTIBLE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | G6 CONVERTIBLE';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="G6Sedan"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/g6sedan";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | G6 SEDAN'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | G6 SEDAN';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="GrandPrix"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/grandprix";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | GRAND PRIX'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | GRAND PRIX';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="Solstice"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/solstice";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | SOLSTICE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SOLSTICE';s_prop25='ONSTAR';


} else if (brand=="pg" && makeID=="Torrent"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/torrent";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | TORRENT'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | TORRENT';s_prop25='ONSTAR';



} else if (brand=="pg" && makeID=="Vibe"){
	//alert ("US_EN TEST PG");
	url = "http://www.pontiac.com/vibe";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | GM VEHICLES | VIBE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | VIBE';s_prop25='ONSTAR';


} else if (brand=="sb" && makeID==null){
	//alert ("US_EN TEST PG");
	url = "http://www.saabusa.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | SAAB'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SAAB';s_prop25='ONSTAR';

} else if (window.location.href.indexOf("canada_english")>=0) {
	//alert ("CA_EN TEST PG");
	url = "http://gmcanada.com/ss/gm/homepage.do?lang=en_CA&brand=saab&adv=72480";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | SAAB'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='ca_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SAAB';s_prop25='ONSTAR';

} else if (brand=="sa" && makeID==null){
	//alert ("US_EN TEST PG");
	url = "http://www.saturn.com";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | ONSTAR | GM VEHICLES | SATURN'; s_prop1='ONSTAR TREATMENT | ONSTAR';s_prop2='ONSTAR TREATMENT | GM VEHICLES';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | ONSTAR | GM VEHICLES';s_prop6='ONSTAR TREATMENT | GM VEHICLES | SATURN';s_prop25='ONSTAR';

	}

sendAnalyticsEvent();
}




// ONSTART TREATMENT DIVSIONAL BOTTOM BUILD YOUR LINKS --DR.
function buildTreatment(brand) {

if (brand=="bu"){
	
	url = "http://www.buick.com/vehicles/selectVehicle.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | BUICK | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';
	
	} else if (brand=="ch"){
	
	url = "http://www.chevrolet.com/byo/build.cv";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CHEVROLET | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';
	
	
	} else if (brand=="gc"){
	
	url = "http://www.gmc.com/byo/build.gc";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | GMC | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';


	}  else if (brand=="pg"){
	
	url = "http://www.pontiac.com/vehicles/selectVehicle.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';
	
	}  else if (brand=="ca"){
	
	url = "http://www.cadillac.com/byo/jsp/cadillac/select_model.jsp?dealer=";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';
	
	} else if (brand=="hu"){
	
	url = "http://www.gmbuypower.com/byo/build.vs";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | HUMMER | BUILD YOUR VEHICLE'; s_prop1='ONSTAR TREATMENT | HUMMER';s_prop2='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | HUMMER | BUILD YOUR VEHICLE';s_prop6='ONSTAR TREATMENT | BUILD YOUR VEHICLE';s_prop25='ONSTAR';
	
	
	}
sendAnalyticsEvent();	
	
}

// LOCATE DEALER LINKS
function buyTreatment(brand) {

if (brand=="bu"){
	
	url = "http://www.buick.com/locatedealer/buick/dealersearch.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);

	s_pageName='ONSTAR | TREATMENT | BUICK | LOCATE A DEALERSHIP'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | LOCATE A DEALERSHIP';s_prop6='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop25='ONSTAR';
	
	} else if (brand=="ch"){
	
	url = "http://www.chevrolet.com/locatedealer/chevy/dealersearch.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CHEVROLET | LOCATE A DEALERSHIP'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | LOCATE A DEALERSHIP';s_prop6='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop25='ONSTAR';
	
	} else if (brand=="gc"){
	
	url = "http://www.gmc.com/locatedealer/gmc/dealersearch.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | GMC | LOCATE A DEALERSHIP'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | LOCATE A DEALERSHIP';s_prop6='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop25='ONSTAR';


	} else if (brand=="pg"){
	
	url = "http://www.pontiac.com/locatedealer/pontiac/dealersearch.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | LOCATE A DEALERSHIP'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | LOCATE A DEALERSHIP';s_prop6='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop25='ONSTAR';


	} else if (brand=="ca"){
	
	url = "http://www.cadillac.com/locatedealer/cadillac/dealersearch.jsp?navSection=rq&model=&year=2007";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | LOCATE A DEALERSHIP'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | LOCATE A DEALERSHIP';s_prop6='ONSTAR TREATMENT | LOCATE A DEALERSHIP';s_prop25='ONSTAR';
}

sendAnalyticsEvent();
	
}

// REQUEST A QUOTE LINKS
function askTreatment(brand) {

if (brand=="bu"){
	
	url = "http://www.buick.com/messaging/buick/senddealer.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);

	s_pageName='ONSTAR | TREATMENT | BUICK | REQUEST A QUOTE'; s_prop1='ONSTAR TREATMENT | BUICK';s_prop2='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | BUICK | REQUEST A QUOTE';s_prop6='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop25='ONSTAR';
	
	
	
	} else if (brand=="ch"){
	
	url = "http://www.chevrolet.com/messaging/chevy/senddealer.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CHEVROLET | REQUEST A QUOTE'; s_prop1='ONSTAR TREATMENT | CHEVROLET';s_prop2='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CHEVROLET | REQUEST A QUOTE';s_prop6='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop25='ONSTAR';
	
	
	
	} else if (brand=="gc"){
	
	url = "http://www.gmc.com/messaging/gmc/senddealer.jsp?msgTypeCD=BP&brand=&originatingBrand=divisional&year=2007";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | GMC | REQUEST A QUOTE'; s_prop1='ONSTAR TREATMENT | GMC';s_prop2='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | GMC | REQUEST A QUOTE';s_prop6='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop25='ONSTAR';


} else if (brand=="pg"){
	
	url ="http://www.pontiac.com/messaging/pontiac/senddealer.jsp";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | PONTIAC | REQUEST A QUOTE'; s_prop1='ONSTAR TREATMENT | PONTIAC';s_prop2='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | PONTIAC | REQUEST A QUOTE';s_prop6='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop25='ONSTAR';


} else if (brand=="ca"){
	
	url ="http://www.cadillac.com/locatedealer/cadillac/dealersearch.jsp?navSection=dl";
	features = "width=1024,height=768,location=yes,menubar=yes,status=yes,toolbar=yes,scrollbars=yes,resizable=yes";
	openPopupWithFeatures(url, name, features, true);
	
	s_pageName='ONSTAR | TREATMENT | CADILLAC | REQUEST A QUOTE'; s_prop1='ONSTAR TREATMENT | CADILLAC';s_prop2='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop3='ONSTAR TREATMENT';s_prop4='us_en';s_prop5='ONSTAR TREATMENT | CADILLAC | REQUEST A QUOTE';s_prop6='ONSTAR TREATMENT | REQUEST A QUOTE';s_prop25='ONSTAR';

}

sendAnalyticsEvent();	

}




