// Open new window
function passed(url, win, options) {
	//top.location.href=url;

	if (typeof win == "undefined" || typeof options == "undefined"){
		window.open(url);
	}
	else{
		window.open(url, win, options);
	}
}


// To Add new onlick traking you must to use this code cahnged the namde of the function trackClic[Name]

// Start of DoubleClick Spotlight Tag: Please do not remove
// Activity Name for this tag is:GM Performance Parts - Catalog Download
// **Tag should be called on the click to download the Catalog**
// Web site URL where tag should be placed: http://www.gmperformanceparts.com/Parts/catalog.jsp
// This tag must be placed within the onclick event, as close to the beginning of it as possible
// Creation Date:8/30/2007
function trackClickTireDiscounts(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=1139861;type=x4whd385;cat=goodw927;ord='+ ord + '?';
		passed(url, "mywin","left=20,top=20,width=550,height=180,toolbar=0,resizable=0");
	}
	catch(err){
	}
}
// End of DoubleClick Spotlight Tag: Please do not remove

// Start of DoubleClick Spotlight Tag: Please do not remove
// Activity Name for this tag is:Goodwrench - Dunlop Tire Link
// Web site URL where tag should be placed: http://anyurl.com :
// This tag must be placed within the opening <body> tag, as close to the beginning of it as possible
// Creation Date:9/22/2008
function trackClickDunlopTire(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=1139861;type=x4whd385;cat=goodw017;ord='+ ord + '?';
		passed(url, "mywin"/*,"left=20,top=20,width=550,height=180,toolbar=0,resizable=0"*/);
	}
	catch(err){
	}
}
// End of DoubleClick Spotlight Tag: Please do not remove



// Start of DoubleClick Spotlight Tag: Please do not remove
// Activity Name for this tag is:Goodwrench - Bridgestone Tire Link
// Web site URL where tag should be placed: http://www.goodwrench.com
// This tag must be placed within the opening <body> tag, as close to the beginning of it as possible
// Creation Date:05/09/08

function trackClickFirestoneTire(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=x4qie273;cat=gmgoo811;ord='+ ord + '?';
		passed(url, "mywin","left=20,top=20,width=550,height=180,toolbar=0,resizable=0");
	}
	catch(err){
	}
}
// End of DoubleClick Spotlight Tag: Please do not remove


// Start of DoubleClick Spotlight Tag: Please do not remove
// Activity Name for this tag is:GM Goodwrench - Continental Tire Link
// Web site URL where tag should be placed: http://www.goodwrench.com
// This tag must be placed within the opening <body> tag, as close to the beginning of it as possible
// Creation Date:1/30/2009

function trackClickContinentalTire(url){
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://fls.doubleclick.net/activityi;src=2047248;type=x4qie273;cat=gmgoo212;ord='+ ord + '?';
		passed(url,  "mywin"/*,"left=20,top=20,width=550,height=180,toolbar=0,resizable=0"*/);
	}
	catch(err){
	}
}
// End of DoubleClick Spotlight Tag: Please do not remove

//function trackPrintPage() {
//	var axel = Math.random() + "";
//	var ord = axel * 1000000000000000000;

//	var click1 = new Image();
//	try{
//		click1.src = 'http://fls.doubleclick.net/activityi;src=2047248;type=x3aan057;cat=gmgoo764;ord='+ ord + '?';
//	}
//	catch(err){
//	}
//}


function DealerWebsite(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://fls.doubleclick.net/activityi;src=2047248;type=x5dbt379;cat=gmgoo766;ord='+ ord + '?';
		passed(url);
	}
	catch(err){
	}
}


function trackClickGoodyearTire(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=x4qie273;cat=gmgoo811;ord='+ ord + '?';
		if(url != null)
			passed(url, "mywin"/*,"left=20,top=20,width=550,height=180,toolbar=0,resizable=0"*/);
	}
	catch(err){
	}
}

function trackClickGeneralTire(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=x4qie273;cat=gmgoo811;ord='+ ord + '?';
		passed(url, "mywin","left=20,top=20,width=550,height=180,toolbar=0,resizable=0");
	}
	catch(err){
	}
}

function trackClickEvergreenCoupon20(url) {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=soffe032;cat=gmgoo111;ord='+ ord + '?';
		if (url != null){
			passed(url, "mywin");
		}
	}
	catch(err){
	}
}

function doNothing(){}

function trackClickGoTireDealer() {
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();

	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=x1oym375;cat=gmgoo499;ord='+ ord + '?';
		document.getElementById("dealersearchform2").action ="/dealersearch/searchResult.jsp";
	}
	catch(err){
	}
}

function trackClickDealerFindTires(){
	var axel = Math.random() + "";
	var ord = axel * 1000000000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=x6zpa539;cat=gmgoo434;ord='+ ord + '?';
	}
	catch(err){
	}
}


function trackClickFrontEndAssemblyArticle(url){
	var axel = Math.random()+"";
	var ord = axel * 10000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=bc-1f886;cat=gmgoo058;ord='+ ord + '?';
		if (url != null){
			passed(url);
		}
	}
	catch(err){
	}

}

function trackClickFrontWheelhouseArticle(url){
	var axel = Math.random()+"";
	var ord = axel * 10000000000000;

	var click1 = new Image();
	try{
		click1.src = 'http://ad.doubleclick.net/activity;src=2047248;type=bc-1f886;cat=gmgoo311;ord='+ ord + '?';
		if (url != null){
			passed(url);
		}
	}
	catch(err){
	}

}
