dodownload(); //start download
					
function dodownload(eventId) 
{
	window.status = 'downloading ... please wait.'; //status message

	var qryString = window.location.search;
	var EventId = eventId;
	var iframe = document.getElementById("dlh");
	var ACTION = '02'; // download tracking index tools

	if(qryString.indexOf('?') == -1) //no querystring
		qryString = '?' + window.location.search

	var iframeSrc = '/include/TrackingDownload.asp'+qryString+'&EventId='+EventId; 

	window.location = 'http://'+dlsource+'/cgi-bin/dlwrapper2/dlwrapper2.dll?WrapQuick&VT='+vt+'&CAS='+cas+'&SRC='+src+'&BAN='+ban+'&ADID='+adid //set the location to download source
	alert('http://'+dlsource+'/cgi-bin/dlwrapper2/dlwrapper2.dll?WrapQuick&VT='+vt+'&CAS='+cas+'&SRC='+src+'&BAN='+ban+'&ADID='+adid);

	if(iframe == null) 
	{
		//track download- new frame
		iframe = document.createElement('iframe');
		iframe.setAttribute('id', 'dlh'); //set the anchor style to hidden

		document.body.insertBefore(iframe, null); //add to DOM - x browser implementation.
		iframe.style.display = 'none'; //hide the iframe
	}

	iframe.src = iframeSrc; //tracking

	if(typeof urchinTracker != "undefined")
		urchinTracker("/download/software");
		
}
