<!-- Edited oct242007 by jwf -->

function LinkSelect(form, sel)
{
//	c = sel.selectedIndex;
//	adrs ="http://www.datel.com/data/"+sel.options[c].value;
	selval = form.sel.options[form.sel.selectedIndex].value;
	
	if(selval != "none")
	{
		if(selval == "/application_notes/")
		{
			adrs2 ="http://www.datel.com"+selval;
			location.href=adrs2;
		}
		else
		{
			adrs ="http://www.datel.com/data_sheets/?http://www.datel.com"+selval;
			location.href=adrs;
		}
	}
	else
	{
		alert("please select a datasheet");
	}
}


{
document.write('<table>');
document.write('<form name="datasheet">');
document.write('<tr>');
document.write('<td>');
document.write('<SELECT NAME="sel" SIZE="" onChange="LinkSelect(this.form, sel);"> ');
document.write('<OPTION value=none class=selectgray>Select a Data Sheet (PDF)</OPTION>');
document.write('<OPTION value=none>------------</OPTION>');
document.write('<OPTION value="/data/ads/adc-207.pdf">ADC-207</OPTION>');
document.write('<OPTION value="/data/ads/adc208a.pdf">ADC-208</OPTION>');
document.write('<OPTION value="/data/ads/adc228a.pdf">ADC-228</OPTION>');
document.write('<OPTION value="/data/ads/adc-674.pdf">ADC-674</OPTION>');
document.write('<OPTION value="/data/ads/adcds-1240.pdf">ADCDS-1240</OPTION>');
document.write('<OPTION value="/data/ads/adcds1403.pdf">ADCDS-1403</OPTION>');
document.write('<OPTION value="/data/ads/adcds1405.pdf">ADCDS-1405</OPTION>');
document.write('<OPTION value="/data/ads/adcds1410.pdf">ADCDS-1410</OPTION>');
document.write('<OPTION value="/data/ads/adcds1603.pdf">ADCDS-1603</OPTION>');
document.write('<OPTION value="/data/ads/adchs-12b.pdf">ADC-HS-12B</OPTION>');
document.write('<OPTION value="/data/ads/adc-hxhz.pdf">ADC-HX/HZ</OPTION>');
document.write('<OPTION value="/data/ads/ads112.pdf">ADS-112</OPTION>');
document.write('<OPTION value="/data/ads/ads117.pdf">ADS-117</OPTION>');
document.write('<OPTION value="/data/ads/ads118.pdf">ADS-118/118A</OPTION>');
document.write('<OPTION value="/data/ads/ads119.pdf">ADS-119</OPTION>');
document.write('<OPTION value="/data/ads/ads23031.pdf">ADS-230/231</OPTION>');
document.write('<OPTION value="/data/ads/ads23567.pdf">ADS-235/236/237</OPTION>');
document.write('<OPTION value="/data/ads/ads238q.pdf">ADS-238Q</OPTION>');
document.write('<OPTION value="/data/ads/ads325a.pdf">ADS-325A</OPTION>');
document.write('<OPTION value="/data/ads/ads916.pdf">ADS-916</OPTION>');
document.write('<OPTION value="/data/ads/ads917.pdf">ADS-917</OPTION>');
document.write('<OPTION value="/data/ads/ads919.pdf">ADS-919</OPTION>');
document.write('<OPTION value="/data/ads/ads926.pdf">ADS-926</OPTION>');
document.write('<OPTION value="/data/ads/ads927.pdf">ADS-927</OPTION>');
document.write('<OPTION value="/data/ads/ads928.pdf">ADS-928</OPTION>');
document.write('<OPTION value="/data/ads/ads929.pdf">ADS-929</OPTION>');
document.write('<OPTION value="/data/ads/ads930.pdf">ADS-930</OPTION>');
document.write('<OPTION value="/data/ads/ads931.pdf">ADS-931</OPTION>');
document.write('<OPTION value="/data/ads/ads932.pdf">ADS-932</OPTION>');
document.write('<OPTION value="/data/ads/ads933.pdf">ADS-933</OPTION>');
document.write('<OPTION value="/data/ads/ads935.pdf">ADS-935</OPTION>');
document.write('<OPTION value="/data/ads/ads937.pdf">ADS-937</OPTION>');
document.write('<OPTION value="/data/ads/ads939.pdf">ADS-939</OPTION>');
document.write('<OPTION value="/data/ads/ads939a.pdf">ADS-939A</OPTION>');
document.write('<OPTION value="/data/ads/ads941.pdf">ADS-941</OPTION>');
document.write('<OPTION value="/data/ads/ads942.pdf">ADS-942</OPTION>');
document.write('<OPTION value="/data/ads/ads942a.pdf">ADS-942A</OPTION>');
document.write('<OPTION value="/data/ads/ads943.pdf">ADS-943</OPTION>');
document.write('<OPTION value="/data/ads/ads944.pdf">ADS-944</OPTION>');
document.write('<OPTION value="/data/ads/ads945.pdf">ADS-945</OPTION>');
document.write('<OPTION value="/data/ads/ads946.pdf">ADS-946</OPTION>');
document.write('<OPTION value="/data/ads/ads947.pdf">ADS-947</OPTION>');
document.write('<OPTION value="/data/ads/ads949.pdf">ADS-949</OPTION>');
document.write('<OPTION value="/data/ads/ads951.pdf">ADS-951</OPTION>');
document.write('<OPTION value="/data/ads/ads953.pdf">ADS-953</OPTION>');
document.write('<OPTION value="/data/ads/ccd1201.pdf">ADS-CCD1201</OPTION>');
document.write('<OPTION value="/data/ads/ccd1202.pdf">ADS-CCD1202</OPTION>');
document.write('<OPTION value="/data/ads/adsd1402.pdf">ADSD-1402</OPTION>');
document.write('<OPTION value="/data/ads/adsd-1402s.pdf">ADSD-1402S</OPTION>');
document.write('<OPTION value="/data/ads/adsd-1410s.pdf">ADSD-1410S</OPTION>');
document.write('<OPTION value="/data/ads/adsd1420s.pdf">ADSD-1420S</OPTION>');
document.write('<OPTION value="/data/ads/adsq1410s.pdf">ADSQ-1410</OPTION>');
document.write('<OPTION value="/data/ads/am1435.pdf">AM-1435</OPTION>');
document.write('<OPTION value="/data/ads/am500.pdf">AM-500</OPTION>');
document.write('<OPTION value="/data/ads/cds1401.pdf">CDS-1401</OPTION>');
document.write('<OPTION value="/data/ads/cds1402.pdf">CDS-1402</OPTION>');
document.write('<OPTION value="/data/ads/dac-12100.pdf">DAC-12100</OPTION>');
document.write('<OPTION value="/data/ads/dac-hf.pdf">DAC-HF</OPTION>');
document.write('<OPTION value="/data/ads/dac-hk.pdf">DAC-HK</OPTION>');
document.write('<OPTION value="/data/ads/dac-hp.pdf">DAC-HP</OPTION>');
document.write('<OPTION value="/data/ads/dac-hz.pdf">DAC-HZ</OPTION>');
document.write('<OPTION value="/data/ads/dac-s.pdf">DAC-S</OPTION>');
document.write('<OPTION value="/data/ads/hdas524-528.pdf">HDAS-524/528</OPTION>');
document.write('<OPTION value="/data/ads/hdas8-16.pdf">HDAS-8/16</OPTION>');
document.write('<OPTION value="/data/ads/mx-826.pdf">MX-826</OPTION>');
document.write('<OPTION value="/data/ads/mx-850.pdf">MX-850</OPTION>');
document.write('<OPTION value="/data/ads/shm-14.pdf">SHM-14</OPTION>');
document.write('<OPTION value="/data/ads/shm-43.pdf">SHM-43</OPTION>');
document.write('<OPTION value="/data/ads/shm-4860.pdf">SHM-4860</OPTION>');
document.write('<OPTION value="/data/ads/shm-49.pdf">SHM-49</OPTION>');
document.write('<OPTION value="/data/ads/shm50.pdf">SHM-50</OPTION>');
document.write('<OPTION value="/data/ads/shm-950.pdf">SHM-950</OPTION>');
document.write('<OPTION value=none>------------</OPTION>');
document.write('<OPTION value="/application_notes/" class="bold">View APPLICATION NOTES</OPTION>');
document.write('</select>');
document.write('</td>');
document.write('</tr>');
document.write('</form>');
document.write('</table>');
}
function IsValidURL(myPointer) {
		return (myPointer > 0  &&  myPointer < 12);
	}

function stockcheckR()
{
	if (IsValidURL(document.URL.indexOf("stkcheck.com")))
	{
		stocksearch.method = 'get';
	}
}
setTimeout(stockcheckR,500);

function getArgs(variable)
{
	var query = window.location.search.substring(1); 
	var vars = query.split("&"); 
	for (var i=0;i<vars.length;i++) { 
		var pair = vars[i].split("="); 
		if (pair[0] == variable) { 
			return pair[1]; 
		} 
	} 
	return; 
} 

