//
//
//
var xmlFile="partlists/products.xml";
var xmlProduct="VIBRAJET";

function select_vibrajet()
{
	var x;

	loadXMLDoc( xmlFile );
	document.write( "<table calls='ptable' align='center' width='80%' border='2'>" );
	document.write( "<thead>" );
	document.write( "<tr>" );
	document.write( "<th align='center'>Part Number:</th>" );
	document.write( "<th align='center'>Description:</th>" );
	document.write( "<th align='center'>List Price:</th>" );
	document.write( "</tr>" );
	document.write( "</thead>");
	document.write( "<tbody>" );
	x = xmlhttp.responseXML.documentElement.getElementsByTagName( xmlProduct );

	for (i = 0; i < x.length; i++)
	{
		document.write( "<tr>" );
		document.write( "<td width='20%'>" );
		document.write( x[i].getElementsByTagName( "PART_NUM" ) [0].childNodes[0].nodeValue );
		document.write( "</td>" );
		document.write( "<td width='65%'>" );
		document.write( x[i].getElementsByTagName( "PART_DESC" ) [0].childNodes[0].nodeValue );
		document.write( "</td>" );
		document.write( "<td align='center'>" );
		document.write( x[i].getElementsByTagName( "PART_PRICE" ) [0].childNodes[0].nodeValue );
		document.write( "</td>" );
		document.write( "</tr>" );
	}
	document.write( "</tbody>" );
	document.write( "</table>" );
}

