// This function determines whether or not the product selected is device-specific or not, and thereby, how to proceed. 
// If the flag in the db is set, then the Select Device option will be displayed, and it will progress through that route.
// If the flag is not set (ie product not device-specific), then use the findLink2.php script to jump straight to the result 

function dynDownload(manuId, prodId){
	var prd = prodId.substring(0,1);

	if (prd == "1"){
		document.getElementById('devtxt').innerHTML='<p class="headertext">Select a Device :</p>';
		document.getElementById('linkdiv').innerHTML='';
		getDevice(manuId, prodId);
	}
	else{
		document.getElementById('devtxt').innerHTML='';
		document.getElementById('devdiv').innerHTML='';
		getLink2(manuId, prodId);
	}
}

