﻿/******************/
/* shop list */
/******************/

	var allowDuplicates		= false;
	var nothingSelectedText = "";
	var reels;
	var submitField;
	
	var select	= new Array();
	var chosen	= new Array();
	
	// This line gets changed depending on the number of lists.
	// if you wanted three lists this would be:
	// var details = new Array( new Array(), new Array(), new Array() );
	var details = new Array( new Array
			(new Array( "-1-", "Select Best Of Category Reels", "$0.00" ), 
					   new Array( "1289408-215146", "Best Of Airlines 2004", "$399.00" ), 
					   new Array( "1335451-286326", "Best Of Airlines 2005", "$399.00" ), 
					   new Array( "2006/1400001", "Best Of Airlines 2006", "$399.00" ), 
					   new Array( "2007/2007-airlines", "Best Of Airlines 2007", "$399.00" ), 
					   new Array( "2008-full/2146410", "Best Of Airlines 2008", "$399.00" ), 
					   new Array( "2009-half/228985501", "Best Of Airlines 2009 half year", "$299.00" ), 
					   new Array( "2009-half/228985501", "Best Of Airlines 2009", "$399.00" ), 
					   new Array( "1289416-192272", "Best Of Analgesics 2004", "$399.00" ), 
					   new Array( "1335453-198434", "Best Of Analgesics 2005", "$399.00" ), 
					   new Array( "2006/1400002", "Best Of Analgesics 2006", "$399.00" ), 
					   new Array( "2007", "Best Of Analgesics 2007", "$399.00" ) , 
					   new Array( "2008-full/2055232", "Best Of Analgesics 2008", "$399.00" ) , 
					   new Array( "1289418-251677", "Best Of Baby Hygiene 2004", "$399.00" ), 
					   new Array( "1335462-140775", "Best Of Baby Hygiene 2005", "$399.00" ), 
					   new Array( "2006/1400003", "Best Of Baby Hygiene 2006", "$399.00" ) , 
					   new Array( "2007", "Best Of Baby Hygiene 2007", "$399.00" ) , 
					   new Array( "2008-full/2053786", "Best Of Baby Hygiene 2008", "$399.00" ) , 
					   new Array( "1304027-114170", "Best Of Banking (Online) 2004", "$399.00" ), 
					   new Array( "1294705-263608", "Best Of Banking (Retail) 2004", "$399.00" ), 
					   new Array( "1335466-194782", "Best Of Banking (Retail) 2005", "$399.00" ), 
					   new Array( "2006/1400004", "Best Of Banking (Retail) 2006", "$399.00" ), 
					   new Array( "2007", "Best Of Banking (Retail) 2007", "$399.00" ), 
					   new Array( "2008-full/2053887", "Best Of Banking (Retail) 2008", "$399.00" ), 
					   new Array( "2009-half/229229401", "Best Of Banking (Retail) 2009 half year", "$299.00" ), 
									   new Array( "1290406-192322", "Best Of Bath & Shower 2004", "$399.00" ), 
									   new Array( "1335468-154683", "Best Of Bath & Shower 2005", "$399.00" ), 
									   new Array( "2007/2007-bath-body", "Best Of Bath & Shower 2007", "$399.00" ), 
									   new Array( "2008-full/2150459", "Best Of Bath & Shower 2008", "$399.00" ),
									   new Array( "1289193-153336", "Best Of Beer 2004", "$399.00" ), 
									   new Array( "1335470-243034", "Best Of Beer 2005", "$399.00" ), 
									   new Array( "2006/1400005", "Best Of Beer 2006", "$399.00" ), 
   									   new Array( "2007/2007-best-of-beer", "Best Of Beer 2007", "$399.00" ), 
   									   new Array( "2008-full/2045591", "Best Of Beer 2008", "$399.00" ),
									   new Array( "2009-half/229035401", "Best Of Beer 2009 (half year)", "$299.00" ),
									   new Array( "1295569-237368", "Best Of Biscuits/Cookies 2004", "$399.00" ), 
									   new Array( "1335474-101683", "Best Of Biscuits/Cookies 2005", "$399.00" ), 
									   new Array( "2006/1400006", "Best Of Biscuits/Cookies 2006", "$399.00" ) , 
									   new Array( "2007/2007-best-of-biscuits-cookies", "Best Of Biscuits/Cookies 2007", "$399.00" ), 
									   new Array( "2008-full/2158977", "Best Of Biscuits/Cookies 2008", "$399.00" ),
									   new Array( "1289394-252025", "Best Of Carbonated Soft Drinks 2004", "$399.00" ),
									   new Array( "1335481-284792", "Best Of Carbonated Soft Drinks 2005", "$399.00" ),
									   new Array( "2006/1400007", "Best Of Carbonated Soft Drinks 2006", "$399.00" ),
									   new Array( "2007/2007-best-of-carbonated-drinks", "Best Of Carbonated Soft Drinks 2007", "$399.00" ),
									   new Array( "2008-full/2148541", "Best Of Carbonated Soft Drinks 2008", "$399.00" ), 
									   new Array( "2009-half/228833401", "Best Of Carbonated Soft Drinks 2009 (Half Year)", "$299.00" ), 
									   new Array( "1289409-131029", "Best Of Cars 2004", "$399.00" ), 
									   new Array( "1335484-146762", "Best Of Cars 2005", "$399.00" ), 
									   new Array( "2006/1400008", "Best Of Cars 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-cars", "Best Of Cars 2007", "$399.00" ),
									   new Array( "2008-full/2146388", "Best Of Cars 2008", "$399.00" ),
									   new Array( "2009-half/229313201", "Best Of Cars 2009 (Half Year)", "$299.00" ),																		   									   new Array( "1290437-132266", "Best Of Cereals 2004", "$399.00" ), 
									   new Array( "1335489-214957", "Best Of Cereals 2005", "$399.00" ), 
									   new Array( "2006/1400009", "Best Of Cereals 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Cereals 2007", "$399.00" ),
									   new Array( "2008-full/2154699", "Best Of Cereals 2008", "$399.00" ),
									   new Array( "2009-half/228900401", "Best Of Cereals 2009 (Half Year)", "$299.00" ),
									   new Array( "1295581-272149", "Best Of Cheese 2004", "$399.00" ), 
									   new Array( "1335491-175248", "Best Of Cheese 2005", "$399.00" ), 
									   new Array( "2006/1400010", "Best Of Cheese 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-cheese", "Best Of Cheese 2007", "$399.00" ), 
									   new Array( "2008-full/2149544", "Best Of Cheese 2008", "$399.00" ), 
									   new Array( "1295589-161092", "Best Of Chocolate Confectionery 2004", "$399.00" ), 
									   new Array( "1335493-125745", "Best Of Chocolate Confectionery 2005", "$399.00" ), 
									   new Array( "2006/1400011", "Best Of Chocolate Confectionery 2006", "$399.00" ) , 
								       new Array( "2007", "Best Of Chocolate Confectionery 2007", "$399.00" ),
								       new Array( "2008-full/2053004", "Best Of Chocolate Confectionery 2008", "$399.00" ),
   									   new Array( "1289166-173050", "Best Of Cleaning Products 2004", "$399.00" ), 
									   new Array( "1335495-245719", "Best Of Cleaning Products 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Cleaning Products 2007", "$399.00" ),
									   new Array( "2008-full/2171678", "Best Of Cleaning Products 2008", "$399.00" ),									   
   									   new Array( "1275257-253603", "Best Of Clothing 2004", "$399.00" ), 
									   new Array( "1335497-239087", "Best Of Clothing 2005", "$399.00" ),
									   new Array( "2007/2007-best-of-clothing", "Best Of Clothing 2007", "$399.00" ),
									   new Array( "2008-full/2146340", "Best Of Clothing 2008", "$399.00" ),
   									   new Array( "1289195-220287", "Best Of Coffee 2004", "$399.00" ), 
									   new Array( "1335500-256236", "Best Of Coffee 2005", "$399.00" ), 
									   new Array( "2006/1400012", "Best Of Coffee 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-coffee", "Best Of Coffee 2007", "$399.00" ),
									   new Array( "2008-full/2146340", "Best Of Coffee 2008", "$399.00" ),
									   new Array( "1315648-275274", "Best Of Computers 2004", "$399.00" ), 
									   new Array( "1335502-119884", "Best Of Computers 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Computers 2007", "$399.00" ),
									   new Array( "2008-full/2149563", "Best Of Computers 2008", "$399.00" ),
									   new Array( "1271108-122787", "Best Of Convenience Meals 2004", "$399.00" ), 
									   new Array( "1335504-188763", "Best Of Convenience Meals 2005", "$399.00" ), 
									   new Array( "2006/1400013", "Best Of Convenience Meals 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Convenience Meals 2007", "$399.00" ),
									   new Array( "2008-full/2056966", "Best Of Convenience Meals 2008", "$399.00" ),
									   new Array( "1295601-260399", "Best Of Cooking Oil & Fat 2004", "$399.00" ), 
									   new Array( "1335506-185895", "Best Of Cooking Oil & Fat 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-cooking-oil", "Best Of Cooking Oil & Fat 2007", "$399.00" ),
									   new Array( "2008-full/2151239", "Best Of Cooking Oil & Fat 2008", "$399.00" ),
									   new Array( "1289420-207270", "Best Of Cooking Sauces & Condiments 2004", "$399.00" ), 
									   new Array( "1335508-243680", "Best Of Cooking Sauces & Condiments 2005", "$399.00" ), 
									   new Array( "2006/1400014", "Best Of Cooking Sauces & Condiments 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-cooking-sauces_condiments", "Best Of Cooking Sauces & Condiments 2007", "$399.00" ),
									   new Array( "2008-full/2148569", "Best Of Cooking Sauces & Condiments 2008", "$399.00" ),
									   new Array( "1289183-110036", "Best Of Corporate Advertising 2004", "$399.00" ), 
									   new Array( "1335510-244818", "Best Of Corporate Advertising 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Corporate Advertising 2007", "$399.00" ),
									   new Array( "2008-full/2048806", "Best Of Corporate Advertising 2008", "$399.00" ),
									   new Array( "1290410-239591", "Best Of Cosmetics 2004", "$399.00" ), 
									   new Array( "1335512-297957", "Best Of Cosmetics 2005", "$399.00" ), 
								       new Array( "2007/2007-best-of-cosmetics", "Best Of Cosmetics 2007", "$399.00" ),
								       new Array( "2008-full/2149568", "Best Of Cosmetics 2008", "$399.00" ),
									   new Array( "1290411-230840", "Best Of Cough & Cold Remedies 2004", "$399.00" ), 
									   new Array( "1335514-106656", "Best Of Cough & Cold Remedies 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-cough-cold", "Best Of Cough & Cold Remedies 2007", "$399.00" ), 
   									   new Array( "2008-full/2060667", "Best Of Cough & Cold Remedies 2008", "$399.00" ), 
									   new Array( "1289167-198196", "Best Of Couriers 2004", "$399.00" ), 
									   new Array( "1335516-143546", "Best Of Couriers 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-couriers", "Best Of Couriers 2007", "$399.00" ),
									   new Array( "2008-full/2148558", "Best Of Couriers 2008", "$399.00" ),
									   new Array( "1289168-110850", "Best Of Credit Cards 2004", "$399.00" ), 
									   new Array( "1335518-237096", "Best Of Credit Cards 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-creditcards", "Best Of Credit Cards 2007", "$399.00" ), 
									   new Array( "2008-full/2045548", "Best Of Credit Cards 2008", "$399.00" ), 
									   new Array( "2009-half/228831001", "Best Of Credit Cards 2009 (Half Year)", "$299.00" ), 
									   new Array( "1289421-134816", "Best Of Crisps & Snacks 2004", "$399.00" ), 
									   new Array( "1335447-199448", "Best Of Crisps & Snacks 2005", "$399.00" ), 
									   new Array( "2006/1400015", "Best Of Crisps & Snacks 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Crisps & Snacks 2007", "$399.00" ),
									   new Array( "2008-full/2056958", "Best Of Crisps & Snacks 2008", "$399.00" ),
									   new Array( "1289422-274207", "Best Of Dairy Products 2004", "$399.00" ), 
									   new Array( "1335520-279304", "Best Of Dairy Products 2005", "$399.00" ), 
									   new Array( "2006/1400016", "Best Of Dairy Products 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-dairy", "Best Of Dairy Products 2007", "$399.00" ),
									   new Array( "2008-full/2150307", "Best Of Dairy Products 2008", "$399.00" ),
   									   new Array( "1290416-197113", "Best Of Deodorants 2004", "$399.00" ), 
									   new Array( "1335522-159935", "Best Of Deodorants 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-deodorant", "Best Of Deodorants 2007", "$399.00" ), 
									   new Array( "2008-full/2149527", "Best Of Deodorants 2008", "$399.00" ), 
									   new Array( "1289178-288842", "Best Of Department Stores 2004", "$399.00" ), 
									   new Array( "1335524-185397", "Best Of Department Stores 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Department Stores 2007", "$399.00" ),
									   new Array( "2008-full/2148554", "Best Of Department Stores 2008", "$399.00" ),
   									   new Array( "1289158-259486", "Best Of Desserts 2004", "$399.00" ), 
									   new Array( "1335526-238034", "Best Of Desserts 2005", "$399.00" ), 
									   new Array( "2006/1400017", "Best Of Desserts 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Desserts 2007", "$399.00" ),
									   new Array( "2008/2057024", "Best Of Desserts 2008 (Jan-Jun) CD", "$299.00" ),
									   new Array( "1289184-187504", "Best Of Energy (Gas, Electricity) 2004", "$399.00" ), 
									   new Array( "1335533-199422", "Best Of Energy (Gas, Electricity) 2005", "$399.00" ), 
									   new Array( "2006/1400018", "Best Of Energy (Gas, Electricity) 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-energy", "Best Of Energy (Gas, Electricity) 2007", "$399.00" ),
									   new Array( "2008-full/2146342", "Best Of Energy (Gas, Electricity) 2008", "$399.00" ),
									   new Array( "2009-half/229040201", "Best Of Energy (Gas, Electricity) 2009 (Half Year)","$299.00" ),
									   new Array( "1289179-194521", "Best Of Fast Food Restaurants 2004", "$399.00" ), 
									   new Array( "1335538-160997", "Best Of Fast Food Restaurants 2005", "$399.00" ), 
									   new Array( "2006/1400019", "Best Of Fast Food Restaurants 2006", "$399.00" ), 
									   new Array( "2007/2065998", "Best Of Fast Food Restaurants 2007", "$399.00" ), 
									   new Array( "2008-full/2149547", "Best Of Fast Food Restaurants 2008", "$399.00" ),  
									   new Array( "1290418-222042", "Best Of Feminine Hygiene 2004", "$399.00" ), 
									   new Array( "1335540-167803", "Best Of Feminine Hygiene 2005", "$399.00" ), 
									   new Array( "2006/1400020", "Best Of Feminine Hygiene 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-feminine-hygiene", "Best Of Feminine Hygiene 2007", "$399.00" ),
									   new Array( "2008-full/2146396", "Best Of Feminine Hygiene 2008", "$399.00" ),
   									   new Array( "199807-978654", "Best Of Finance (Classics)", "$399.00" ), 
									   new Array( "1290423-282556", "Best Of Fragrances - Male & Female 2004", "$399.00" ), 
									   new Array( "1335543-198313", "Best Of Fragrances - Male & Female 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-fragrances", "Best Of Fragrances - Male & Female 2007", "$399.00" ),
									   new Array( "2008-full/2146334", "Best Of Fragrances - Male & Female 2008", "$399.00" ),
   									   new Array( "1289160-206449", "Best Of Fresh & Frozen Meat, Fish, Poultry 2004", "$399.00" ), 
									   new Array( "1335545-270628", "Best Of Fresh & Frozen Meat, Fish, Poultry 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Fresh & Frozen Meat, Fish, Poultry 2007", "$399.00" ), 
									   new Array( "2008-full/2056988", "Best Of Fresh & Frozen Meat, Fish, Poultry 2008", "$399.00" ), 
									   new Array( "1289398-280371", "Best Of Fresh Fruit & Vegetables 2004", "$399.00" ), 
									   new Array( "1335547-232088", "Best Of Fresh Fruit & Vegetables 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-fruit-vegetables", "Best Of Fresh Fruit & Vegetables 2007", "$399.00" ),
									   new Array( "2008-full/2150405", "Best Of Fresh Fruit & Vegetables 2008", "$399.00" ),
									   new Array( "1289186-177245", "Best Of Government Campaigns 2004", "$399.00" ), 
									   new Array( "1335551-239950", "Best Of Government Campaigns 2005", "$399.00" ), 
									   new Array( "2006/1400021", "Best Of Government Campaigns 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Government Campaigns 2007", "$399.00" ), 
									   new Array( "2008/2046285", "Best Of Government Campaigns 2008 (Jan-Jun) CD", "$299.00" ), 
									   new Array( "1290426-257092", "Best Of Hair Care 2004", "$399.00" ), 
									   new Array( "1335554-258283", "Best Of Hair Care 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-hair-care", "Best Of Hair Care 2007", "$399.00" ), 
									   new Array( "2008-full/2149542", "Best Of Hair Care 2008", "$399.00" ), 
									   new Array( "2009-half/231297601", "Best Of Hair Care 2009 half year", "$299.00" ), 
									   new Array( "1278762-182522", "Best Of Home Entertainment Equipment 2004", "$399.00" ), 
									   new Array( "1335557-165216", "Best Of Home Entertainment Equipment 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Home Entertainment Equipment 2007", "$399.00" ),
									   new Array( "2008-full/2053006", "Best Of Home Entertainment Equipment 2008", "$399.00" ),
   									   new Array( "1267991-132639", "Best Of Ice Cream 2004", "$399.00" ), 
									   new Array( "1335561-138565", "Best Of Ice Cream 2005", "$399.00" ), 
									   new Array( "2006/1400022", "Best Of Ice Cream 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Ice Cream 2007", "$399.00" ), 
									   new Array( "2008-full/2139895", "Best Of Ice Cream 2008", "$399.00" ),
									   new Array( "1289171-118367", "Best Of Insurance 2004", "$399.00" ), 
									   new Array( "1335563-181129", "Best Of Insurance 2005", "$399.00" ), 
									   new Array( "2006/1400023", "Best Of Insurance 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-insurance", "Best Of Insurance 2007", "$399.00" ), 
									   new Array( "2008-full/2051167", "Best Of Insurance 2008", "$399.00" ), 
									   new Array( "2009-half/228972801", "Best Of Insurance 2009 (Half Year)", "$299.00" ), 
									   new Array( "1289174-255166", "Best Of Internet Service Providers 2004", "$399.00" ), 
									   new Array( "1335565-185661", "Best Of Internet Service Providers 2005", "$399.00" ), 
									   new Array( "2006/1400024", "Best Of Internet Service Providers 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Internet Service Providers 2007", "$399.00" ), 
									   new Array( "2008-full/2056194", "Best Of Internet Service Providers 2008", "$399.00" ), 
									   new Array( "926760-195390", "Best Of Jeans (Classics)", "$399.00" ), 
									   new Array( "1289164-167460", "Best Of Juice Drinks (Fruit/Vegetable) 2004", "$399.00" ), 
									   new Array( "1335549-152811", "Best Of Juice Drinks (Fruit/Vegetable) 2005", "$399.00" ), 
									   new Array( "2006/1400025", "Best Of Juice Drinks (Fruit/Vegetable) 2006", "$399.00" ),
									   new Array( "2007/2007-best-of-juice", "Best Of Juice Drinks (Fruit/Vegetable) 2007", "$399.00" ),
									   new Array( "2008-full/2151326", "Best Of Juice Drinks (Fruit/Vegetable) 2008", "$399.00" ),
   									   new Array( "2009-half/228909401", "Best Of Juice Drinks (Fruit/Vegetable) 2009 (Half Year)", "$299.00" ),
									   new Array( "1289169-193876", "Best Of Loans & Mortgages 2004", "$399.00" ), 
									   new Array( "1335588-282226", "Best Of Loans & Mortgages 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-meat-fish-poultry", "Best Of Meat Fish Poultry 2007", "$399.00" ), 
									   new Array( "1289399-181035", "Best Of Mineral Water 2004", "$399.00" ), 
									   new Array( "1335571-248090", "Best Of Mineral Water 2005", "$399.00" ), 
									   new Array( "2006/1400026", "Best Of Mineral Water 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-mineralwater", "Best Of Mineral Water 2007", "$399.00" ),
									   new Array( "2008-full/2148538", "Best Of Mineral Water 2008", "$399.00" ),
									   new Array( "2009-half/228830901", "Best Of Mineral Water 2009 (Half Year)", "$299.00" ),
									   new Array( "2007/2007-best-of-mobile-handsets", "Best Of Mobile Handsets 2007", "$399.00" ),
   									   new Array( "2008-full/2052175", "Best Of Mobile Handsets 2008", "$399.00" ),
									   new Array( "1295683-290086", "Best Of Newspapers 2004", "$399.00" ), 
									   new Array( "1335575-106423", "Best Of Newspapers 2005", "$399.00" ), 
									   new Array( "2006/1400027", "Best Of Newspapers 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-newspapers", "Best Of Newspapers 2007", "$399.00" ),
									   new Array( "2008/2053048", "Best Of Newspapers 2008 (Jan-Jun) CD", "$299.00" ),
									   new Array( "2007", "Best Of Office Equipment 2007", "$399.00" ),
									   new Array( "2008/2063798", "Best Of Office Equipment 2008 (Jan-Jun) CD", "$299.00" ),
									   new Array( "1289411-126079", "Best Of Oil & Petrol 2004", "$399.00" ), 
									   new Array( "1335579-287057", "Best Of Oil & Petrol 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-oil-petrol", "Best Of Oil & Petrol 2007", "$399.00" ), 
									   new Array( "2008-full//2151230", "Best Of Oil & Petrol 2008", "$399.00" ), 
									   new Array( "1290427-145393", "Best Of Oral Hygiene 2004", "$399.00" ), 
									   new Array( "1335581-132361", "Best Of Oral Hygiene 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-oral-hygiene", "Best Of Oral Hygiene 2007", "$399.00" ),
									   new Array( "2008-full/2057035", "Best Of Oral Hygiene 2008", "$399.00" ),
   									   new Array( "1278768-139044", "Best Of Paper Products 2004", "$399.00" ), 
									   new Array( "1335583-239119", "Best Of Paper Products 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Paper Products 2007", "$399.00" ), 
									   new Array( "2008-full/2061443", "Best Of Paper Products 2008", "$399.00" ), 
									   new Array( "1269935-193793", "Best Of Pasta & Rice 2004", "$399.00" ), 
									   new Array( "1335585-189285", "Best Of Pasta & Rice 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Pasta & Rice 2007", "$399.00" ), 
									   new Array( "2008-full/2152129", "Best Of Pasta & Rice 2008", "$399.00" ), 
									   new Array( "2007", "Best Of Personal Loans & Morgages 2007", "$399.00" ),
									   new Array( "2008-full/2148539", "Best Of Personal Loans & Morgages 2008", "$399.00" ),
   									   new Array( "1280539-247209", "Best Of Pet Food 2004", "$399.00" ), 
									   new Array( "1335590-172151", "Best Of Pet Food 2005", "$399.00" ), 
									   new Array( "2006/1400028", "Best Of Pet Food 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-pet-food", "Best Of Pet Food 2007", "$399.00" ),
									   new Array( "2008-full/2150390", "Best Of Pet Food 2008", "$399.00" ),
									   new Array( "1280575-115811", "Best Of Photography 2004", "$399.00" ), 
									   new Array( "1335592-213311", "Best Of Photography 2005", "$399.00" ), 
									   new Array( "2006/1400029", "Best Of Photography 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-photography", "Best Of Photography 2007", "$399.00" ), 
									   new Array( "2008-full/ 2148535", "Best Of Photography 2008", "$399.00" ), 
									   new Array( "1289175-191116", "Best Of Printers/Copiers 2004", "$399.00" ), 
									   new Array( "1335577-161048", "Best Of Printers/Copiers 2005", "$399.00" ), 
									   new Array( "1289414-139282", "Best Of Public Transport 2004", "$399.00" ), 
									   new Array( "1335596-248701", "Best Of Public Transport 2005", "$399.00" ), 
									   new Array( "2006/1400030", "Best Of Public Transport 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-public-transport", "Best Of Public Transport 2007", "$399.00" ), 
									   new Array( "2008-full/2149562", "Best Of Public Transport 2008", "$399.00" ),
									   new Array( "1301824-214230", "Best Of Radio Stations 2004", "$399.00" ), 
									   new Array( "1335598-144040", "Best Of Radio Stations 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-radio", "Best Of Radio Stations 2007", "$399.00" ), 
									   new Array( "2008-full/2149570", "Best Of Radio Stations 2008", "$399.00" ), 
									   new Array( "1295556-291111", "Best Of Razors & Shaving Preparations 2004", "$399.00" ), 
									   new Array( "1335605-227006", "Best Of Razors & Shaving Preparations 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Razors & Shaving Preparations 2007", "$399.00" ), 
									   new Array( "2008-full/2149564", "Best Of Razors & Shaving Preparations 2008", "$399.00" ), 
									   new Array( "1295564-170359", "Best Of Skin Care - Face & Body 2004", "$399.00" ), 
									   new Array( "1335610-254430", "Best Of Skin Care - Face & Body 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-skincare", "Best Of Skin Care - Face & Body 2007", "$399.00" ), 
									   new Array( "2008-full/2148934", "Best Of Skin Care - Face & Body 2008", "$399.00" ), 
									   new Array( "1302614-153630", "Best Of Soup 2004", "$399.00" ), 
									   new Array( "1335612-289399", "Best Of Soup 2005", "$399.00" ), 
									   new Array( "2006/1400031", "Best Of Soups 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-soup", "Best Of Soups 2007", "$399.00" ),
									   new Array( "2008-full/2148563", "Best Of Soups 2008", "$399.00" ),
   									   new Array( "2007/2007-best-of-spirits", "Best Of Spirits 2007", "$399.00" ), 
   									   new Array( "2008-full/2148056", "Best Of Spirits 2008", "$399.00" ), 
									   new Array( "1294429-115377", "Best Of Sports Shoes & Sportswear 2004", "$399.00" ), 
									   new Array( "1335626-218100", "Best Of Sports Shoes & Sportswear 2005", "$399.00" ), 
									   new Array( "2006/1400032", "Best Of Sports Shoes & Sportswear 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-sport-shoes-sportswear", "Best Of Sports Shoes & Sportswear 2007", "$399.00" ), 
									   new Array( "2008-full/2149556", "Best Of Sports Shoes & Sportswear 2008", "$399.00" ), 
									   new Array( "1317398-193836", "Best Of Sugar & Confectionery 2004", "$399.00" ), 
									   new Array( "1335627-121567", "Best Of Sugar & Confectionery 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Sugar & Confectionery 2007", "$399.00" ), 
									   new Array( "2008-full/2149572", "Best Of Sugar & Confectionery 2008", "$399.00" ), 
									   new Array( "1289182-197067", "Best Of Supermarkets 2004", "$399.00" ), 
									   new Array( "1335629-112018", "Best Of Supermarkets 2005", "$399.00" ), 
									   new Array( "2006/1400033", "Best Of Supermarkets 2006", "$399.00" ), 
   									   new Array( "2007/2007-best-of-supermarkets", "Best Of Supermarkets 2007", "$399.00" ), 
   									   new Array( "2008-full/2148049", "Best Of Supermarkets 2008", "$399.00" ),
									   new Array( "2009-half/228350701", "Best Of Supermarkets 2009 (Half Year)", "$399.00" ),
									   new Array( "1289402-231766", "Best Of Tea 2004", "$399.00" ), 
									   new Array( "1335631-231127", "Best Of Tea 2005", "$399.00" ), 
   									   new Array( "2007/2007-best-of-tea", "Best Of Tea 2007", "$399.00" ), 
   									   new Array( "2008-full/2057012", "Best Of Tea 2008", "$399.00" ),  
									   new Array( "1323873-106891", "Best Of Telecom Providers - Landline 2004", "$399.00" ), 
									   new Array( "1335633-275687", "Best Of Telecom Providers - Landline 2005", "$399.00" ), 
									   new Array( "2006/1400034", "Best Of Telecom Providers - Landline 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Telecom Providers - Landline 2007", "$399.00" ), 
									   new Array( "2008-full/2166250", "Best Of Telecom Providers - Landline 2008", "$399.00" ), 
									   new Array( "1329012-245794", "Best Of Telecom Providers - Mobile 2004", "$399.00" ), 
									   new Array( "1335635-154884", "Best Of Telecom Providers - Mobile 2005", "$399.00" ), 
									   new Array( "2006/1400035", "Best Of Telecom Providers - Mobile 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-telecom-mobile", "Best Of Telecom Providers - Mobile 2007", "$399.00" ), 
									   new Array( "2008-full/2046400", "Best Of Telecom Providers - Mobile 2008", "$399.00" ), 
									   new Array( "2009-half/229387601", "Best Of Telecom Providers - Mobile 2009 (Half Year)", "$299.00" ), 									
									   new Array( "1289413-236172", "Best Of Theme Parks 2004", "$399.00" ), 
									   new Array( "1335637-198207", "Best Of Theme Parks 2005", "$399.00" ), 
									   new Array( "2006/1400036", "Best Of Theme Parks 2006", "$399.00" ), 
   									   new Array( "2007/2007-best-of-theme-park", "Best Of Theme Parks 2007", "$399.00" ), 
   									   new Array( "2008/2055288", "Best Of Theme Parks 2008 (Jan-Jun) CD", "$299.00" ), 
									   new Array( "1289415-129160", "Best Of Tourist Boards 2004", "$399.00" ), 
									   new Array( "1335639-189444", "Best Of Tourist Boards 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Tourist Boards 2007", "$399.00" ),
									   new Array( "2008/2052195", "Best Of Tourist Boards 2008 (Jan-Jun) CD", "$299.00" ),
   									   new Array( "1292301-215009", "Best Of Toys & Games 2004", "$399.00" ), 
									   new Array( "1335641-214774", "Best Of Toys & Games 2005", "$399.00" ), 
									   new Array( "2007", "Best Of Toys & Games 2007", "$399.00" ), 
									   new Array( "2008/2058112", "Best Of Toys & Games 2008 (Jan-Jun) CD", "$299.00" ), 
									   new Array( "1303964-248204", "Best Of TV Channels 2004", "$399.00" ), 
									   new Array( "1335643-229169", "Best Of TV Channels 2005", "$399.00" ), 
									   new Array( "2007", "Best Of TV Channels 2007", "$399.00" ), 
									   new Array( "2008-full/2173391", "Best Of TV Channels 2008", "$399.00" ), 
									   new Array( "1295567-246600", "Best Of Vitamins & Tonics 2004", "$399.00" ), 
									   new Array( "1335650-242607", "Best Of Vitamins & Tonics 2005", "$399.00" ), 
									   new Array( "2007/2007-best-of-vitamins", "Best Of Vitamins & Tonics 2007", "$399.00" ), 
									   new Array( "2008-full/2150415", "Best Of Vitamins & Tonics 2008", "$399.00" ), 
									   new Array( "1295676-113927", "Best Of Washing Detergents 2004", "$399.00" ), 
									   new Array( "1335654-200286", "Best Of Washing Detergents 2005", "$399.00" ), 
									   new Array( "2006/1400037", "Best Of Washing Detergents 2006", "$399.00" ), 
									   new Array( "2007", "Best Of Washing Detergents 2007", "$399.00" ), 
									   new Array( "2008-full/2146379", "Best Of Washing Detergents 2008", "$399.00" ), 
									   new Array( "1294512-205163", "Best Of White Goods 2004", "$399.00" ), 
									   new Array( "1335656-273178", "Best Of White Goods 2005", "$399.00" ), 
									   new Array( "2007", "Best Of White Goods 2007", "$399.00" ),
									   new Array( "2008-full/2152818", "Best Of White Goods 2008", "$399.00" ),
   									   new Array( "1289404-246314", "Best Of Wine & Champagne 2004", "$399.00" ), 
									   new Array( "1335658-212212", "Best Of Wine & Champagne 2005", "$399.00" ), 
									   new Array( "2006/1400038", "Best Of Wine & Champagne 2006", "$399.00" ), 
									   new Array( "2007/2007-best-of-wine-champagne", "Best Of Wine & Champagne 2007", "$399.00" ), 
									   new Array( "2008-full/2149574", "Best Of Wine & Champagne 2008", "$399.00" ),  
									   new Array( "1303099-200817", "Best Of Women's Magazines 2004", "$399.00" ), 
									   new Array( "1335660-128442", "Best Of Women's Magazines 2005", "$399.00" ), 
									   new Array( "1317413-168714", "Best Of Yoghurts 2004", "$399.00" ), 
									   new Array( "1335663-165061", "Best Of Yoghurts 2005", "$399.00" ), 
									   new Array( "2006/1400039", "Best Of Yoghurts 2006", "$399.00" ), 
									   new Array( "2008-full/2146935", "Best Of Yoghurts 2008", "$399.00" ) ), 
							           new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array(), new Array() );
	
	/*
	**** HOW TO USE THE details ARRAY ****
	
	The details array ( e.g. "details[listID][sel][0]") has three parameters passed in square brakets.
	
	The first is the list number (starting at zero).
	The second is the row number in that list (starting at zero).
	The third chooses what actual details you want (e.g. quote number, quote title or section).
	
	You can add more details about each quote if you like,
	
	e.g. What was 
	
	details[1][0] = new Array( 10, "List 2", "Section 1" )
	
	Could be 
	
	details[1][0] = new Array( 10, "List 2", "Section 1", "01 Jan 2006" )
	
	If you wanted to add the quote date.  To use the quote date the last parameter would now be 3.
	If you do add any extra details about each quote, you must add them for all quotes.
	*/
	
	// details to go into the first list (position zero).

details[1][0] = new Array( "-1-", "Select Best Of Territory Reels", "0.00" )
details[1][1] = new Array( "1335449-103362", "Best Of  Australia (2004)", "$349.00" )
details[1][2] = new Array( "1335450-186017", "Best Of  Australia (2005)", "$349.00" )
details[1][3] = new Array( "1335458-162568", "Best Of Asia (2004)", "$349.00" )
details[1][4] = new Array( "1335459-148294", "Best Of Asia (2005)", "$349.00" )
details[1][5] = new Array( "1335528-164886", "Best Of Eastern Europe (2004)", "$349.00" )
details[1][6] = new Array( "1335529-196604", "Best Of Eastern Europe (2005)", "$349.00" )
details[1][6] = new Array( "best-of/territory-reels/2170776", "Best Of Eastern Europe (2008)", "$349.00" )
details[1][7] = new Array( "1335472-177586", "Best Of International Excluding UK (2004)", "$349.00" )
details[1][8] = new Array( "1335473-155347", "Best Of International Excluding UK (2005)", "$349.00" )
details[1][9] = new Array( "907371-116598", "Best Of Latin America (2003)", "$349.00" )
details[1][10] = new Array( "1335568-158272", "Best Of Latin America (2004)", "$349.00" )
details[1][11] = new Array( "1335569-160556", "Best Of Latin America (2005)", "$349.00" )
details[1][12] = new Array( "1335594-257986", "Best Of Portugal (2004)", "$349.00" )
details[1][13] = new Array( "1335595-246535", "Best Of Portugal (2005)", "$349.00" )
details[1][14] = new Array( "1335601-212811", "Best Of Scandinavia (2004)", "$349.00" )
details[1][15] = new Array( "1335602-290507", "Best Of Scandinavia (2005)", "$349.00" )
details[1][15] = new Array( "best-of/territory-reels/2174220", "Best Of Scandinavia (2008)", "$349.00" )
details[1][16] = new Array( "1335614-206826", "Best Of Spain (2004)", "$349.00" )
details[1][17] = new Array( "1335615-276344", "Best Of Spain (2005)", "$349.00" )
details[1][18] = new Array( "1335645-117743", "Best Of UK (2004)", "$349.00" )
details[1][19] = new Array( "1335646-133473", "Best Of UK (2005)", "$349.00" )
details[1][20] = new Array( "1335647-164182", "Best Of USA (2004)", "$349.00" )
details[1][21] = new Array( "1335648-266657", "Best Of USA (2005)", "$349.00" )
details[1][22] = new Array( "800117-198735", "Best Of USA (Classics)", "$349.00" )
details[1][22] = new Array( "best-of/territory-reels/2170808", "Best Of World (2008)", "$349.00" )

details[2][0] = new Array( "-1-", "Select Brand History Reels", "0.00" )
details[2][1] = new Array( "189074-5654321", "Best Of British Telecom - Classics", "$349.00" )
details[2][2] = new Array( "188717-985345", "Best Of British Airways - Classics", "$349.00" )
details[2][3] = new Array( "186075-876565", "Best Of Carlsberg - Classics", "$349.00" )
details[2][4] = new Array( "189436-66456", "Best Of Coca-Cola - Classics", "$349.00" )
details[2][5] = new Array( "1191427-197306", "Best Of Ford - Classics", "$349.00" )
details[2][6] = new Array( "185004-797890", "Best Of Heineken - Classics", "$349.00" )
details[2][7] = new Array( "878147-194780", "Best Of Heinz - Classics", "$349.00" )
details[2][8] = new Array( "187272-96255", "Best Of Kellogg's - Classics", "$349.00" )
details[2][9] = new Array( "best-of/classic/179288-534623", "Best Of KitKat - Classics", "$349.00" )
details[2][10] = new Array( "190199-965120", "Best Of Levi's - Classics", "$349.00" )
details[2][11] = new Array( "188224-985625", "Best Of McDonald's - Classics", "$349.00" )
details[2][12] = new Array( "189554-32465", "Best Of Nescafe - Classics", "$349.00" )
details[2][13] = new Array( "190119-21354", "Best Of Nike - Classics", "$349.00" )
details[2][14] = new Array( "189829-346842", "Best Of Pepsi - Classics", "$349.00" )
details[2][15] = new Array( "191475-494316", "Best Of Renault - Classics", "$349.00" )
details[2][16] = new Array( "191598-126588", "Best Of Volvo - Classics", "$349.00" )
details[2][17] = new Array( "179836-613153", "Best Of Yellow Pages - Classics", "$349.00" )

details[3][0] = new Array( "-1-", "Select Mood Reels", "0.00" )
details[3][1] = new Array( "best-of/classic/1341609-288781", "Mood Reel Anger Scenes - Classics", "$349.00" )
details[3][2] = new Array( "best-of/classic/1341610-177028", "Mood Reel Fear Scenes - Classics", "$349.00" )
details[3][3] = new Array( "best-of/classic/1341611-157724", "Mood Reel Happy Scenes - Classics", "$349.00" )
details[3][4] = new Array( "best-of/classic/1341612-110438", "Mood Reel Relaxation Scenes - Classics", "$349.00" )
details[3][5] = new Array( "best-of/classic/1341613-294182", "Mood Reel Sad Scenes - Classics", "$349.00" )
details[3][6] = new Array( "best-of/classic/1341614-276921", "Mood Reel Stress Scenes - Classics", "$349.00" )

details[4][0] = new Array( "-1-", "Select Themed Compilation Reels", "0.00" )
details[4][1] = new Array( "best-of/themed-reels/1051853-191089", "Best Of All Time (100) To 2001 (Global)", "$349.00" )
details[4][2] = new Array( "best-of/themed-reels/1335597-135128", " Best Of Integrated Campaigns 2005", "$349.00" )
details[4][3] = new Array( "1335455-218872", "Best Of Animation (2004)", "$349.00" )
details[4][4] = new Array( "1335456-203049", "Best Of Animation (2005)", "$349.00" )
details[4][5] = new Array( "1335457-156805", "Best Of Animation (Classics)", "$349.00" )
details[4][5] = new Array( "best-of/themed-reels/2171680", "Best Of Awards (2008)", "$349.00" )
details[4][6] = new Array( "878145-210483", "Best Of Babies & Children (2003)", "$349.00" )
details[4][7] = new Array( "1335460-143232", "Best Of Babies & Children (2004)", "$349.00" )
details[4][8] = new Array( "1335461-137536", "Best Of Babies & Children (2005)", "$349.00" )
details[4][9] = new Array( "best-of/classic/1349768-258712", "Best Of Babies & Children (Classics)", "$349.00" )
details[4][10] = new Array( "1335476-172397", "Best Of Black & White/Sepia (2004)", "$349.00" )
details[4][11] = new Array( "1335477-232387", "Best Of Black & White/Sepia (2005)", "$349.00" )
details[4][12] = new Array( "1335478-198626", "Best Of Black & White/Sepia (Classics)", "$349.00" )
details[4][13] = new Array( "1335486-265036", "Best Of Celebrities (2004)", "$349.00" )
details[4][14] = new Array( "1335487-239619", "Best Of Celebrities (2005)", "$349.00" )
details[4][15] = new Array( "1335488-224481", "Best Of Celebrities (Classics)", "$349.00" )
details[4][16] = new Array( "1341595-241699", "Best Of City Life/Urban Scenes (2005)", "$349.00" )
details[4][17] = new Array( "1124407-182939", "Best Of Customer Service Ads (UK Classics)", "$349.00" )
details[4][18] = new Array( "1335530-128983", "Best Of Elderly People (2004)", "$349.00" )
details[4][19] = new Array( "1335531-123016", "Best Of Elderly People (2005)", "$349.00" )
details[4][20] = new Array( "1335532-115912", "Best Of Elderly People (Classics)", "$349.00" )
details[4][21] = new Array( "1335535-226325", "Best Of Family Scenes (2004)", "$349.00" )
details[4][22] = new Array( "1335536-274633", "Best Of Family Scenes (2005)", "$349.00" )
details[4][23] = new Array( "1335537-238688", "Best Of Family Scenes (Classics)", "$349.00" )
details[4][24] = new Array( "1335559-172988", "Best Of Humour (2005)", "$349.00" )
details[4][25] = new Array( "1335560-284476", "Best Of Humour (Classics)", "$349.00" )
details[4][26] = new Array( "1335573-266186", "Best Of Musical Ads (2005)", "$349.00" )
details[4][27] = new Array( "1341596-279195", "Best Of Nature Scenes (2005)", "$349.00" )
details[4][28] = new Array( "best-of/olympic/2087641", "Best Of Beijing Olympics (2008)", "$349.00" )
details[4][29] = new Array( "898168-167786", "Best Of Sex & Nudity (2003)", "$349.00" )
details[4][30] = new Array( "1335603-239309", "Best Of Sex & Nudity (2004)", "$349.00" )
details[4][31] = new Array( "1335604-137988", "Best Of Sex & Nudity (2005)", "$349.00" )
details[4][32] = new Array( "best-of/themed-reels/131730-564374", "Best Of Sex & Nudity (Classics)", "$349.00" )
details[4][33] = new Array( "1335607-218446", "Best Of Shocking/Controversial (2004)", "$349.00" )
details[4][34] = new Array( "1335608-163553", "Best Of Shocking/Controversial (2005)", "$349.00" )
details[4][35] = new Array( "1335609-145630", "Best Of Shocking/Controversial (Classics)", "$349.00" )
details[4][36] = new Array( "1335616-106576", "Best Of Special Effects (2004)", "$349.00" )
details[4][37] = new Array( "1335617-217896", "Best Of Special Effects (2005)", "$349.00" )
details[4][38] = new Array( "1335618-193943", "Best Of Special Effects (Classics)", "$349.00" )
details[4][39] = new Array( "2005/1341598-156976", "Best Of Speed Scenes (2005)", "$349.00" )
details[4][40] = new Array( "1335619-193820", "Best Of Spoofs (2004)", "$349.00" )
details[4][41] = new Array( "1335620-120375", "Best Of Spoofs (2005)", "$349.00" )
details[4][42] = new Array( "1335621-119202", "Best Of Spoofs (Classics)", "$349.00" )
details[4][43] = new Array( "1335622-275634", "Best Of Sport Scenes (2004)", "$349.00" )
details[4][44] = new Array( "1335623-188288", "Best Of Sport Scenes (2005)", "$349.00" )
details[4][45] = new Array( "best-of/sport-classic/1335624", "Best Of Sport Scenes (Classics)", "$349.00" )
details[4][46] = new Array( "1335649-296532", "Best Of The Awards 2005", "$349.00" )


	// tells the page to load the lists once the page loads.
	window.onload = LoadLists;
	
	// loads the lists when the page loads.
	function LoadLists()
	{
		reels	= document.getElementById( "reels" );
		submitField = document.forms[1].post_list;
		
		for( i=0; i<details.length; i++ )
		{
			select[i]	= document.getElementById( "select_"+i );
			
			for( j=0; j<details[i].length; j++ )
			{
				select[i].options[select[i].options.length]=new Option( details[i][j][1], j );
			}
			
			chosen[i] = new Array();	
		}
		
		WriteSelected();
	}
	
	// Adds items to a selection.
	function OnSelected( listID )
	{		
		if( !allowDuplicates )
		{
			for( i=0; i<chosen[listID].length; i++ )
			{
				if( chosen[listID][i]==select[listID].selectedIndex )
				{
					return;
				}
			}
		}
		
		chosen[listID][chosen[listID].length]=select[listID].selectedIndex;
		
		WriteSelected();
		
		select[listID].selectedIndex = 0;
	}
		
	// Removes items from a selection.
	function RemoveSelection( listID, index )
	{
		var s = 0;
		
		for( i=0; i<chosen[listID].length-1; i++ )
		{
			if( i==index )
			{
				s = 1;
			}
			
			chosen[listID][i] = chosen[listID][i+s];
		}
		
		chosen[listID].length = chosen[listID].length-1;
		
		WriteSelected();
	}
	
	// Writes out all selections after any have been changed.
	function WriteSelected()
	{
		var reelText = "";
		var posted = "";
		
		for( i=0; i<5; i++ )
		{
			reelText += GetListText( i );
			posted += GetPostText( i );
		}
		
		if( reelText.length == 0 )
		{
			reels.innerHTML = nothingSelectedText;
		}
		else
		{
			reels.innerHTML = reelText;
		}
		
		for( i=5; i<10; i++ )
		{
			posted += GetPostText( i );
		}

		submitField.value = posted;
	}
	
	function GetListText( listID )
	{
		var listText = "";
		
		for( j=0; j<chosen[listID].length; j++ )
		{
			listText += GetLineText( listID, chosen[listID][j], j );
		}
		
		return listText;
	}
	
	function GetPostText( listID )
	{
		var postList = "";
		
		for( j=0; j<chosen[listID].length; j++ )
		{
			postList += details[listID][chosen[listID][j]][1] + "<br>\n";
		}
		
		return postList;
	}
	
	function GetLineText( listID, sel, index )
	{
		var t = "<span class=\"stuff\">" + details[listID][sel][1] + "</span>&nbsp;&nbsp;";
		if( details[listID][sel][0]!="0" )
		{
			t += "<a href=\"http://www.xtremeinfo.com.au/AUS/shop/" + details[listID][sel][0] + ".htm\" onClick=\"window.open(this.href,'reel','scrollbars=1,width=700,height=600');return false;\" target=\"_blank\">View</a>&nbsp;&nbsp;";
		}
		t += "<a href=\"javascript:onclick=RemoveSelection("+listID+"," + index + ")\">Remove</a>&nbsp;&nbsp;" +details[listID][sel][2];
		t += "<br />";
		
		
		
		return t;
	}


/*******************/
/* form validation */
/*******************/
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_validateForm() { //v4.0
  var i,p,q,nm,test,num,min,max,errors='',args=MM_validateForm.arguments;
  for (i=0; i<(args.length-2); i+=3) { test=args[i+2]; val=MM_findObj(args[i]);
    if (val) { nm=val.name; if ((val=val.value)!="") {
      if (test.indexOf('isEmail')!=-1) { p=val.indexOf('@');
        if (p<1 || p==(val.length-1)) errors+='- '+nm+' must contain an e-mail address.\n';
      } else if (test!='R') { num = parseFloat(val);
        if (isNaN(val)) errors+='- '+nm+' must contain a number.\n';
        if (test.indexOf('inRange') != -1) { p=test.indexOf(':');
          min=test.substring(8,p); max=test.substring(p+1);
          if (num<min || max<num) errors+='- '+nm+' must contain a number between '+min+' and '+max+'.\n';
    } } } else if (test.charAt(0) == 'R') errors += '- '+nm+' is required.\n'; }
  } if (errors) alert('The following error(s) occurred:\n'+errors);
  document.MM_returnValue = (errors == '');
}


