function browseCat(letter) {	var productDatabase = initialize();	var i=0;	var finalresults= "";	var c="";	var results=false;	resultswindow= window.open("", "results", "top=200,left=200,height=400,width=650,scrollbars=1,resizable=0,") ;    	finalresults= "<title>AAPL Catalog : " + letter.toUpperCase() + "</title><head><style type='text/css'>#tableFormat { font-family: sans-serif, sans-serif; font-size:9pt;}</style></head><center><font color='purple' size=5><u>SEARCH RESULTS</u></font></center><br><BODY BACKGROUND='pics/searchback.JPG'>";	while (i != productDatabase.length) {     		c= productDatabase[i].name.toLowerCase();            if (c.substring(0,1) == letter)   {	      	finalresults += "<table id='tableFormat' width=540><tr><td width=70>Product:</td><td colspan = 3 width=470><u>" + productDatabase[i].name + "</u></td></tr><tr><td width=70>Formula:</td><td width=200>" + productDatabase[i].formula +  "</td><td width=70>CAS #:</td><td width=200>" + productDatabase[i].cas + "</td></tr><tr><td width=70>AAPL #:</td><td width=200 colspan = 3>" + productDatabase[i].aapl + "</td></tr></table><hr>";	            results=true;        	}    		i++;     	}

   	if (results==false) finalresults+=  "<b>There are no listings beginning with the letter " + letter.toUpperCase() + ".<hr></b>"; 			finalresults += "<br><input type='button' value='Close This Window' onClick='window.close()'>";	resultswindow.document.write(finalresults);}