function carInfoGuide(townID, depotID,droptownID, dropdepotID, startTime, startDate, endTime, endDate,timeStamp, productID, carCode) {
	extraInfoWin = launch("http://www.holidaycars.co.uk/carInfoGuide.php3?Town_ID="+townID+"&Depot_ID="+depotID+"&dropTown_ID="+droptownID+"&dropDepot_ID="+dropdepotID+"&startDate="+startDate+"&startTime="+startTime+"&endDate="+endDate+"&endTime="+endTime+"&timeStamp="+timeStamp+"&productID="+productID+"&carCode="+carCode, "Information", "width=600,height=600,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0", "extraInfoWin");
}

function carGuide(carCode) {
	carInfo = launch("http://www.holidaycars.co.uk/carGuide.php3?carCode="+carCode, "Guidance", "height=180,width=300,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0", "carInfo");
}

function extraInfo(infoType) {
	extraInfoWin = launch("http://www.holidaycars.co.uk/extraInfo.php3?infolink="+infoType, "Information", "width=350,height=240,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0", "extraInfoWin");
}

function infoWindow() {

	//arv[0] = URL - always present
	//arv[1] = partnerID - always present
	//arv[2] = nopopup (if set to 1 then the window will NOT be a popup)
	
    // ARRAY OF ARGUMENT VALUES
    var argv = infoWindow.arguments;

    // THE NUMBER OF ARGUMENTS PASSED TO THIS FUNCTION
    var argc = argv.length;
    
	infoURL=argv[0]
	if (argv[1]) partnerID=argv[1]
	if (argv[2] && argv[2]=="nopopup"){
		infoURL="loadpage.php3?page="+infoURL+"&nopopup=0&partnerID="+partnerID
		location.href=infoURL
	}
	else {
		//This line altered to below infoURL="loadpage.php3?page="+infoURL+"&nopopup=1"
		infoURL="loadpage.php3?page="+infoURL+"&popup=1"
		extraInfoWin = launch(infoURL, "Information", "width=600,height=400,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0", "opener");
	}
}


//carInfo(1330,10,2002-3-19,14,2002-4-19,1006333075,%201036)

function carInfo(townID, depotID,droptownID, dropdepotID, startTime, startDate, endTime, endDate,timeStamp, productID) {
//	alert("carInfo.php3?Town_ID="+townID+"&Depot_ID="+depotID+"&dropTown_ID="+droptownID+"&dropDepot_ID="+dropdepotID+"&startDate="+startDate+"&startTime="+startTime+"&endDate="+endDate+"&endTime="+endTime+"&timeStamp="+timeStamp+"&productID="+productID)
	extraInfoWin = launch("http://www.holidaycars.co.uk/carInfo.php3?Town_ID="+townID+"&Depot_ID="+depotID+"&dropTown_ID="+droptownID+"&dropDepot_ID="+dropdepotID+"&startDate="+startDate+"&startTime="+startTime+"&endDate="+endDate+"&endTime="+endTime+"&timeStamp="+timeStamp+"&productID="+productID, "Information", "width=600,height=600,channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=yes,scrollbars=yes,status=0,toolbar=0", "extraInfoWin");
}

function launch(newURL, newName, newFeatures, orgName) {
	var remote = open(newURL, newName, newFeatures);
	if (remote.opener == null)
	remote.opener = window;
	remote.opener.name = orgName;
	return remote;
}

function makeRemote(width,source) {
	remote = window.open("","remote","width="+width+",height=400,resizable=yes,scrollbars=1");
	if (remote.opener == null) remote.opener = window; 
	remote.opener.name = "opener";
	//alert(source)
	remote.location.href = source+"?popup=1";
	remote.focus();
}


