<script language="javascript">


var xmldoc = new ActiveXObject("Microsoft.XMLDOM")

xmldoc.async="false"

xmldoc.load("http://www.ukbusinessdirectory.org/xml/choices.xml")

var mainNode = xmldoc.getElementsByTagName("choices");
var strMainlink = xmldoc.getElementsByTagName("business");
mainChildNodesLength = mainNode[0].childNodes.length;


document.write("<link href='http://www.ukbusinessdirectory.org/pgestyle/pgeStyle.css' rel='stylesheet' type='text/css'>");

document.write(" <form action='' method='post' onsubmit='return validateForm1()' name='search' id='search' >");
//CHANGE THE BGCOLOR TO MATCH YOUR PAGE & CHANGE THE TABLE WIDTH TO SUIT
document.write("<table width='80%' bgcolor='#CCCCCC' border='1'>");
document.write("<tr align='left' valign='top'>");
document.write("<td height='28' width='50%'><select name='select1'>");
document.write(" <option value='selected'>Select A Business</option>");

for(i=0;i<mainChildNodesLength;i++){

document.write("<option value=' " + mainNode(0).childNodes(i).getAttribute('value') + "'>" + mainNode(0).childNodes(i).firstChild.text + "</option>" );
}


document.write("</select></td>");
document.write("<td height='26'>");
document.write("<INPUT TYPE='image' SRC='http://www.ukbusinessdirectory.org/images/search_btn.gif' HEIGHT='25' WIDTH='100' BORDER='0' ALT='Submit Form'></td>");
document.write("</tr> </table> </Form>");

function validateForm1(){
strCategoryResult1 = document.search.select1.value

strCategoryResult1 = strCategoryResult1.replace(/^\s*|\s*$/g,"");
document.search.action = "http://www.ukbusinessdirectory.org/directory/pge1.asp?category=" + strCategoryResult1 + "&myReg="
document.search.submit();
}
</script>