var j, k = 0;    
var maxprod = 200;
var stkcategory;
var stkhead;
var stkdescript;
var stkinvoiceline;
var stkprice;
var stkimage;
var stkinvoiceline;
var stkcode;

var itemnum;
var stroutput = "";
var strout2="";

var stkcategoryarray = new Array(maxprod);
var stkheadarray = new Array(maxprod);
var stkcodearray = new Array(maxprod);
var stkdescriptarray = new Array(maxprod);
var stkpricearray = new Array(maxprod);
var stkimagearray = new Array(maxprod);
var deliveryarray = new Array(maxprod);
var stkinvoicelinearray = new Array(maxprod);
var basket = 'cartmanager.html';

var moneysign = '£';
var howmanyproducts = 120;
stkcategoryarray[37] = 'pclsoft';
stkheadarray[37] = 'Clippings';
stkdescriptarray[37] = 'This program has been designed to accommodate report writers who need to create small reports from large ones. It is a very specialised operation that can usually only be carried out by cutting and pasting between two documents.The program looks like any standard word processor and reacts in a similar way. All the standard icons that you are used to, can be found on the toolbar as well as all of the options being available from the menus.';
stkinvoicelinearray[37] = 'Clippings Retail Pack';
stkpricearray[37] = '64.00';
stkcodearray[37] = '000093';
deliveryarray[37] = '3.00';
stkimagearray[37] = '../images/catalogue/clippings';

stkcategoryarray[38] = 'pclsoft';
stkheadarray[38] = 'Options';
stkdescriptarray[38] = 'Options is a must for all training departments, because with Options you can automate your appraisal and induction courses and aptitude tests with one easy to use application.Supervisors may build questions in two formats and final questionnaires are compiled randomly or to a specified format, so that a relevant set of questions are presented to the candidate.';
stkinvoicelinearray[38] = 'Options Retail Pack';
stkpricearray[38] = '599.00';
stkcodearray[38] = '000092';
deliveryarray[38] = '3.00';
stkimagearray[38] = '../images/catalogue/options';

stkcategoryarray[39] = 'pclsoft';
stkheadarray[39] = 'MC Ledgers';
stkdescriptarray[39] = 'Multi-Company Ledgers provides a sales and purchase ledger system which also incorporates client and sundry invoicing. There is no limit to the number of companies that can be set up with this software, so making the package very cost effective to those who have interests in more than one business. This system is fully compliant with a workgroup environment and incorporates password protection separately on each company data set.';
stkinvoicelinearray[39] = 'Multi-Company Ledgers Retail Pack';
stkpricearray[39] = '684.00';
stkcodearray[39] = '000091';
deliveryarray[39] = '3.00';
stkimagearray[39] = '../images/catalogue/mcledgers';

stkcategoryarray[40] = 'pclsoft';
stkheadarray[40] = 'Resource';
stkdescriptarray[40] = 'Double bookings are a thing of the past when you use Resource Booking Manager. This useful little package is a remake of our original Resource Manager which was designed to take care of booking rooms for training courses and other training equipment such as computers and overhead projectors.Hairdressers and beauticians, sports therapists, training centres, cyber cafes to name just a few users of the original package.This package can be run on a single PC or as a network package if you purchase the relevant license. It is easy to install and use.';
stkinvoicelinearray[40] = 'Resource Bookings Retail Pack';
stkpricearray[40] = '46.00';
stkcodearray[40] = '000090';
deliveryarray[40] = '3.00';
stkimagearray[40] = '../images/catalogue/resource';

stkcategoryarray[41] = 'pclsoft';
stkheadarray[41] = 'Diary';
stkdescriptarray[41] = 'This personal diary is simple and convenient to use. Its like a best freind, its always there when you need it, sitting unobtrusively in your system tray. A single click on the icon makes it spring into action, allowing appointments to be entered. While sitting in the system tray it continues to monitor your appointments and reminder alarms are activated 30 minutes before the appointment is due.';
stkinvoicelinearray[41] = 'Personal Diary Retail Pack';
stkpricearray[41] = '11.00';
stkcodearray[41] = '000089';
deliveryarray[41] = '3.00';
stkimagearray[41] = '../images/catalogue/diary';

stkcategoryarray[42] = 'pclsoft';
stkheadarray[42] = 'Ledgers';
stkdescriptarray[42] = 'Ledgers is a simplified sales and purchase ledger package with integrated invoicing. It has been designed specifically for service industries, where no stock control is required. The package takes care of all sales invoicing procedures for account clients and sundry customers. Other features include quarterly VAT reports to ease the filling in of VAT returns.';
stkinvoicelinearray[42] = 'Ledgers Sales & Purchase Retail Pack';
stkpricearray[42] = '89.00';
stkcodearray[42] = '000088';
deliveryarray[42] = '3.00';
stkimagearray[42] = '../images/catalogue/ledgers';

stkcategoryarray[43] = 'pclsoft';
stkheadarray[43] = 'Quotation Manager';
stkdescriptarray[43] = 'Quotes has been designed for companies who offer a manufacturing service to customers and who have the need to quote for jobs before commencing work. The software allows you to follow a quotation through from its origin as a provisional quotation to its acceptance when a workshop jobsheet can be produced and finally the conversion to an invoice. Sales and purchase ledger options are included in this package.';
stkinvoicelinearray[43] = 'Quotation Manager Retail Pack';
stkpricearray[43] = '769.00';
stkcodearray[43] = '000087';
deliveryarray[43] = '3.00';
stkimagearray[43] = '../images/catalogue/quotes';

stkcategoryarray[44] = 'pclsoft';
stkheadarray[44] = 'BarStock';
stkdescriptarray[44] = 'This Barstock package boasts all the features found in professional stock management packages, while being simple enough to be used by managers and owners to carry out their own stock analysis. The features included allow stock and valuation management for establishments with up to 5 different bar pricing structures';
stkinvoicelinearray[44] = 'BarStock Retail Pack';
stkpricearray[44] = '114.00';
stkcodearray[44] = '000086';
deliveryarray[44] = '3.00';
stkimagearray[44] = '../images/catalogue/barstock';

stkcategoryarray[45] = 'pclsoft';
stkheadarray[45] = 'Bar Plus';
stkdescriptarray[45] = 'The Barplus 2000 system is a professional inventory management solution for use by stock management consultants for the licensed trade. The system has no limitations on the number of client files held. The features included allow stock and valuation management for establishments with up to 5 different bars.';
stkinvoicelinearray[45] = 'Bar PLus';
stkpricearray[45] = '684.25';
stkcodearray[45] = '000085';
deliveryarray[45] = '3.00';
stkimagearray[45] = '../images/catalogue/barplus';

stkcategoryarray[46] = 'pclsoft';
stkheadarray[46] = 'Add Print Pro';
stkdescriptarray[46] = 'AddPrintPro has been specifically developed to print envelopes from a database of names and addresses. Entries in the database can be added, modified and deleted from within the AddPrintPro software. While similar to AddPrint, the Pro version allows the addresses to be categorised (i.e. Friends, Family, Business, Sales Contacts, Suppliers etc.) This utility is really simple to use. Certainly a labour saving utility for the busy office.';
stkinvoicelinearray[46] = 'Add Print Pro Retail Pack';
stkpricearray[46] = '29.95';
stkcodearray[46] = '000084';
deliveryarray[46] = '3.00';
stkimagearray[46] = '../images/catalogue/addprintpro';

stkcategoryarray[47] = 'pclsoft';
stkheadarray[47] = 'Stills Forever';
stkdescriptarray[47] = 'A photographic cataloguing system, which allows inclusion and display of a digital image with each record.  A truly professional solution suited to photographic stuidos.  Many user defined fields allow superior indexing of records and accurate search solutions for pulling sets of similar records.';
stkinvoicelinearray[47] = 'Still Forever Retail Pack';
stkpricearray[47] = '47.00';
stkcodearray[47] = '000083';
deliveryarray[47] = '3.00';
stkimagearray[47] = '../images/catalogue/stills';

stkcategoryarray[48] = 'pclsoft';
stkheadarray[48] = 'Baker';
stkdescriptarray[48] = 'Order processing and invoicing package that offers various methods of processing to produce daily or weekly invoices, depending on the individual\'s choice. Daily processing of customer orders can be carried out effortlessly, and the application incorporates an auto-process feature that removes the usual mundane repetitive processing operation.';
stkinvoicelinearray[48] = 'Baker Retail Pack';
stkpricearray[48] = '684.00';
stkcodearray[48] = '000082';
deliveryarray[48] = '3.00';
stkimagearray[48] = '../images/catalogue/baker';

stkcategoryarray[49] = 'pclsoft';
stkheadarray[49] = 'Add Print Pro - Download Version';
stkdescriptarray[49] = 'AddPrintPro has been specifically developed to print envelopes from a database of names and addresses. Entries in the database can be added, modified and deleted from within the AddPrintPro software. While similar to AddPrint, the Pro version allows the addresses to be categorised (i.e. Friends, Family, Business, Sales Contacts, Suppliers etc.) This utility is really simple to use. Certainly a labour saving utility for the busy office.';
stkinvoicelinearray[49] = 'Add Print Pro DOWNLOAD';
stkpricearray[49] = '29.95';
stkcodearray[49] = '000083';
deliveryarray[49] = '0.00';
stkimagearray[49] = '../images/catalogue/nopic';

stkcategoryarray[50] = 'pclsoft';
stkheadarray[50] = 'AddPrint - Download Version';
stkdescriptarray[50] = 'AddPrint has been specifically developed to print envelopes from a database of names and addresses. Entries in the database can be added, modified and deleted from within the AddPrint software.  Download version available on our software page.';
stkinvoicelinearray[50] = 'AddPrint Envelope Processing  DOWNLOAD ';
stkpricearray[50] = '14.99';
stkcodearray[50] = '000084';
deliveryarray[50] = '0.00';
stkimagearray[50] = '../images/catalogue/nopic';

stkcategoryarray[111] = 'pclsoft';
stkheadarray[111] = 'AddPrint';
stkdescriptarray[111] = 'AddPrint has been specifically developed to print envelopes from a database of names and addresses. Entries in the database can be added, modified and deleted from within the AddPrint software.  Download version available on our software page.';
stkinvoicelinearray[111] = 'AddPrint Envelope Processing  Retail Box';
stkpricearray[111] = '14.99';
stkcodearray[111] = '000011';
deliveryarray[111] = '3.00';
stkimagearray[111] = '../images/catalogue/Addprint';

stkcategoryarray[112] = 'pclsoft';
stkheadarray[112] = 'FlashMaster';
stkdescriptarray[112] = 'FlashMaster Creative is the latest screensaver creator for Macromedia Flash and Macromedia Director, giving you all the power you require to develop and distribute fully interactive multimedia screensavers, packaged in a neat executable for easy distribution. Download version available on our software page.';
stkinvoicelinearray[112] = 'FlashMaster Creative screensaver creator';
stkpricearray[112] = '63.79';
stkcodearray[112] = '000010';
deliveryarray[112] = '3.00';
stkimagearray[112] = '../images/catalogue/fmc';

function dolist(thisvalue) {
var testval;
var k;
	for (var j = 1; j < howmanyproducts +1; j++ ) {
		testval = "Add Item " + stkcodearray[j] + " to Basket";
		if (testval == thisvalue) {
			k = j;
			mainorder.PRICE.value = stkpricearray[k];
			mainorder.NAME.value = stkinvoicelinearray[k];
			mainorder.ID_NUM.value = stkcodearray[k];
			mainorder.SHIPPING.value = deliveryarray[k];
			AddToCart(mainorder);
		}
	}
}	

for (var i = 1; i < howmanyproducts +1; i++)
   {
	if ( order.catHead.value == stkcategoryarray[i] ) {

	    stroutput = "";
		strout2 = "";
   		stkcategory = stkcategoryarray[i];
		stkhead = stkheadarray[i];
		stkdescript = stkdescriptarray[i];
		stkinvoiceline = stkinvoicelinearray[i];
		stkprice = stkpricearray[i];
		stkimage = stkimagearray[i] + ".jpg";
		stkimage2 = stkimagearray[i] + "lg.jpg";
		stkcode = stkcodearray[i];
	
		stkhead = stkhead.fontsize(3);
		stkhead = stkhead.fontcolor(990000);
		stkdescript = stkdescript.fontsize(2);
		stkinvoiceline = stkinvoiceline.fontsize(2);
		stkprice = stkprice.fontsize(3);
		stkprice = stkprice.fontcolor(990000);
		
		stroutput += "<input type=\"text\" size=\"2\" maxlength=\"3\" name=\"QUANTITY\" onChange=\"mainorder.QUANTITY.value=CKquantity(this.value)\" value=\"1\" >" + " " +
	         	 "<input type=\"hidden\" name=\"NAME\" value=\"" + stkinvoicelinearray[i] + "\">" +				  
				 "<input type=\"hidden\" name=\"PRICE\" value=\"" + stkpricearray[i] + "\">" +
                 "<input type=\"hidden\" name=\"SHIPPING\" value=\"" + deliveryarray[i] + "\">" +
 				 "<input type=\"hidden\" name=\"ID_NUM\" value=\"" + stkcodearray[i] + "\">";
				 
        strout2 +=   "<input type=\"button\" width=\"20\" value=\"Add Item " + stkcodearray[i] + " to Basket\" onClick=\"dolist(this.value)\" name=\"buybutton\">" + " " +
				 "<input type=\"submit\" width=\"50\" value=\"View Basket\">";
	
		document.write('<P>');
		document.write('<table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');
		document.write('<tr>'); 
		document.write('<td rowspan=\"2\" width=\"370\" height=\"130\" valign=\"top\" > <B>' + stkcode + "  " + stkhead + '</B><br><br><B>' + stkinvoiceline + '</B><br><br>' + stkdescript);
		document.write('<td width=\"140\" height=\"130\" align =\"middle\" valign=\"top\"> <a href="javascript:popImage(' + "'" + stkimage2 + "'" + ')\"> <img src=\"' + stkimage + '\" </a></td>');
		document.write('</tr>');
		document.write('<tr>'); 
		document.write('<td align= \"middle\" width=\"140\" valign=\"top\"><B>' + "Price " + moneysign + stkprice + '</B></td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('<HR>');
		document.write('<table width=\"510\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">');
		document.write('<tr>');
		document.write('<td rowspan=\"2\" align= \"left\" width=\"110\" valign=\"top\"><B>' + "Quantity: " + stroutput + '</B>');
		document.write('<td align= \"right\" width=\"400\" valign=\"top\"><B>' + " " + strout2 + '</B></td>');
		document.write('</tr>');
		document.write('</table>');
		document.write('<HR>');
		document.write('</P>');
	}
}

