function makeSubCat(optnum){
	var text_0=new Array("In All Sections of Our Site");
	var text_1=new Array("In All Sections");
	var text_2=new Array("In Offers to Buy","In Offers to Sell");
	var text_3=new Array("All Categories","Accountancy","Agriculture (Crops)","Agriculture (Livestock)","Agricultural Services","Agriculture, Forestry, Fishing","Amusement/Recreation","Auto Dealers/Service","Auto Repairs/Service","Banks & Finance","Building Materials/Supplies","Business Services","Chemicals Products","Clothing/Apparel (Retail)","Clothing/Textile Products","Communication","Construction (General)","Educational Services","Electricity, Gas, Utilities","Electronic/Electrical Equipment","Embassies & Consulates","Environmental","Fabricated Metal Products","Financial Services","Food/Beverage Products","Food/Beverage (Retail)","Food, Hospitality Industry","Foreign Business Associations","Furniture & Fixtures","Furnishings (Soft)","General Contractors (Building)","General Merchandise (Retail)","Hardware","Heavy Construction","Holding Companies","Hospitals/Health Services","Hotel & Hospitality","Industrial Machinery/Equipment","Instruments/Allied Products","Insurance Brokers/Agents","Insurance Companies","Insurance Claims","International Organizations","Leather & Leather Goods","Legal Services","Lumber & Wood Products","Manufacturing (General)","Medical Equipment","Media & Publishing","Mining","Minerals (Non-Metalic)","Oil & Gas","Paper & Allied Products","Passenger Tranportation","Personal Services","Petroleum & Allied Products","Postal/Courier Services","Metal Industries Primary","Printing & Publishing","Public Administration","Railroad Transportation","Real Estate","Repair Services (Misc)","Retail (Misc)","Rubber/Plastic Products","Security/Commodity Brokers","Services (General)","Software","Special Trade Contractors","Stone, Clay & Glass Products","Supermarkets","Textile Products","Tobacco Products","Transportation (Air)","Transportation Equipment","Transportation Services","Transportation Infrastructure","Trucking & Warehousing","Transportation (Water)","Wholesale (Durable Goods)","Wholesale (Non-durable Goods)","Wholesale (Misc)");
	var i=0,textlen=0,optval;
	optlen=eval(i="text_"+optnum+".length");
	document.SrchForm.SubCat.length=0;
	for(i=0;i<optlen;i++){
		eval("optval=new Option(text_"+optnum+"[i],i)");
		document.SrchForm.SubCat.options[i]=optval;}
	document.SrchForm.SubCat.options[0].selected=true;
	if(navigator.appName.indexOf("Netscape")!=-1 && navigator.appVersion.substr(0,1)<5){
		history.go(0);}}
function cleanUp(){
	var re=/%22/gi;
	document.SrchForm.Keywords.value=document.SrchForm.Keywords.value.replace(re,"\"");
	document.SrchForm.Orwords.value=document.SrchForm.Orwords.value.replace(re,"\"");
	document.SrchForm.Exclwords.value=document.SrchForm.Exclwords.value.replace(re,"\"");}
function showMore(arg){
	if(arg=="N"){
		document.forms["ContSearch"].MyAction.value="NEXT";}
	else{
		document.forms["ContSearch"].MyAction.value="PREV";}
	document.forms["ContSearch"].submit();}
function chkInput(){
	var fldtext=/^\s+$/;
	if(fldtext.test(document.SrchForm.Keywords.value)||document.SrchForm.Keywords.value.length==0){
		alert("You have not entered any search words.");
		return(false);}
	else{
		return(true);}}
function newWin(loc,win,winx,winy,pos){
	var xpos=0,ypos=0,args='';
	if(pos){
		xpos=(screen.availWidth-winx)/2;ypos=(screen.availHeight-winy)/2;}
	else{
		xpos=20;ypos=20;}args='width='+winx+',height='+winy+',location=0,menubar=0,resizable=1,'
			+'scrollbars=1,status=0,titlebar=0,toolbar=0,hotkeys=0,screenx='+xpos+','  
			+'screeny='+ypos+',left='+xpos+',top='+ypos;window.open(loc,win,args);}

