﻿

function getimg(id, item, grp, numcolrs, colset) {
    var email1 = "<a  style='font-weight:bold;' href = '#self' onclick='wantedhorse()'  title='Click to Order'>";
    var email2 = "Place An Order</a> <br />";
    var path = "play/";
    var tit1 = "Combo 3 in 1 rug";
    var tit2 = "Thermalux saddle cloth";
    var tit3 = "Matching Hood";
    var tit4 = "Matching Neck cover with Velcro straps ";
    var tit5 = "Matching Stay up tail guard with Velcro fastenings";
    var tit6 = "Thermalux  Hydrotherm Leg Wraps";
    var tit7 = "Thermalux wrap around exercise sheet ";
    var tit8 = "Thermalux exercise sheet  ";
    var tit9 = "Thermalux Combo rug ";
    var tit10 = "Thermalux 'Thermally Efficient' Dog coat ";
    var tit11 = "Aerborn Stable/Travel Bandages ";
    var tit12 = "Aerborn Saddle pad/saddlecloth/numnah";
    var tit13 = "Aerborn Cushion Web Headcollar ";
    var tit14 = "Fillet String";
    var tit15 = "Cotton Lead rope";
    var tit16 = "Whips";
    var tit17 = "Velvet Covered Brow Band";
    var tit18 = "";
    var tit19 = "Embroidery Sample";
    var tit20 = "Embroidery Sample";
    var tit21 = "Embroidery Sample";
    var tit22 = "tit22";
    var specnote ="&nbsp;";

    var desc1 = email1 + email2 + "<br />";
    var ad = '"ab14_l"';
    desc1 = desc1 + "<span class='bgspan'>&pound;95 &nbsp;&nbsp;(up to 5’6”)<br /> &pound;105 (up to 6’6”)<br /> &pound;115 (up to 7’3”)</span><br />";
    desc1 = desc1 + "<br /><a style='font-weight:bold;' href='#self' onclick='getimg(\"ab14_l\",14,0,2)' >Matching fillet string available priced at <span class='bgspan'> £1.50.</span></a>";
    desc1 = desc1 + "<br /><br />With reinforced neckline for shape retention. ";
    desc1 = desc1 + "Exceptional thermal properties to provide a 3in1 rug that keeps your horse looking clean and smart. Ideal for use before a competition. Works as a:<br />";
    desc1 = desc1 + "<span style='position:relative; top:-7px;'>Sweat Rug</span><img style='margin-left:40px;' src='" + path + "arrow.gif' alt='' title='' /><br />";
    desc1 = desc1 + "<span style='position:relative; top:-7px;'>Stable Rug</span><br />";
    desc1 = desc1 + "<span style='position:relative; top:-7px;'>Travel Rug</span><br />";
    desc1 = desc1 + "Maintains the horse";
    desc1 = desc1 + " at a constant, comfortable, even temperature, keeping coat in show condition and muscles supple.<br />";
    desc1 = desc1 + "<br />Wicks away moisture rapidly. <br />";
    desc1 = desc1 + "Retains its shape and looks smart time after time.";
   
    var desc2 = email1 + email2 + "<br />";
    desc2 = desc2 + "<span class='bgspan'>&pound; tbc </span><br /><br />";
    desc2 = desc2 + "Helps to maintain the horse at a constant, comfortable, even temperature. <br /> Wicks away moisture rapidly.<br /> Retains its shape and looks smart time after time. <br /><br />Sizes <span class='bgspan'>Pony, cob or full.</span>";
    var desc3 = email1 + email2 + "<br />";
    desc3 = desc3 + "<span class='bgspan'>pull on &pound;51.00 <br /> zipped &pound;55.99</span><br /><br />";
    desc3 = desc3 + "Hood with Velcro strap";
    desc3 = desc3 + "<br /><br />";
    desc3 = desc3 + "Sizes: S,M,L,XL";
    
    var desc4 = email1 + email2 + "<br />";
    desc4 = desc4 + "<span class='bgspan'>&pound;49.99</span><br /><br />";
    desc4 = desc4 + "Neck cover with Velcro straps";
    desc4 = desc4 + "<br /><br />";
    desc4 = desc4 + "Sizes: S,M,L,XL";
   
    var desc5 = email1 + email2 + "<br />";
    desc5 = desc5 + "<span class='bgspan'>&pound;19.99</span><br /><br />";
    desc5 = desc5 + "Stay up tail guard with Velcro fastenings.";
    desc5 = desc5 + "<br /><br />";
    desc5 = desc5 + "Size: One Size";
    
    var desc6 = email1 + email2 + "<br />";
    desc6 = desc6 + "<span class='bgspan'>&pound;39.99 per Pack of 4.</span><br />";
    desc6 = desc6 + "<br />";
    desc6 = desc6 + "Can be place directly onto muddy or wet legs.<br />";
    desc6 = desc6 + "The thermatex fabric quickly wicks away moisture leaving legs dry.<br />";
    desc6 = desc6 + "This can help promote the healing of mud fever and filled legs.<br />";
    desc6 = desc6 + "Elasticated medical quality Velcro ensures even pressure to the leg for light support.";
    desc6 = desc6 + "<br /><img style='margin-left:105px;' src='" + path + "arrow.gif' alt='' title='' /><br />"
   
    var desc7 = email1 + email2 + "<br />";
    desc7 = desc7 + "<span class='bgspan'>&pound;49.99 </span><br />";
    desc7 = desc7 + "<a class='contact5a' href='#sizec'> See size chart below.</a>";
    desc7 = desc7 + "<br /><br />";
    desc7 = desc7 + "Made from Aerborn’s super thermal Thermalux fabric with matching fillet string included.";
   
    var desc8 = email1 + email2 + "<br />";
    desc8 = desc8 + "<span class='bgspan'>&pound;45.99 </span><br />";
    desc8 = desc8 + "<a class='contact5a' href='#sizec'> See size chart below.</a>";
    desc8 = desc8 + "<br /><br />";
    desc8 = desc8 + "Made from Aerborn’s super thermal Thermalux fabric with matching fillet string included.";
    
    var desc9 = email1 + email2 + "<br />";
    desc9 = desc9 + "&pound;155 &nbsp;&nbsp;(up to 5’6”)<br /> &pound;165 (up to 6’6”)<br /> &pound;175 (up to 7’3”)</span><br />";
    desc9 = desc9 + "<a class='contact5a' href='#sizec'> See size chart below.</a>";
    desc9 = desc9 + "<br /><br />";
    desc9 = desc9 + "Wicks away moisture from neck and body.<br />";
    desc9 = desc9 + "Ideal for use after exercise, competition and hosing down.";
    
    var desc10 = email1 + email2 + "<br />";
    desc10 = desc10 + "<span class='bgspan'>&pound;18.00 XSml to &pound;25.00 XL</span><br />";
    desc10 = desc10 + "<a class='contact5a' href='#dogsize'> See size chart below.</a>";
    desc10 = desc10 + "<br /><br />";
    desc10 = desc10 + "Available to co-ordinate your four legged friends and available in all our range of colours. <br /><br />";
    desc10 = desc10 + " These practical yet eye catching coats can be personalised with a name and/or motifs.<br /> ";
    desc10 = desc10 + "<img style='margin-left:105px;' src='" + path + "arrow.gif' alt='' title='' /><br /><br />";
    desc10 = desc10 + "They are thermally efficient and are great to keep your dog warm or to wick away moisture and dry your dog";
    desc10 = desc10 + " quickly after exercise.<br /><br />Featuring Velcro fastening and belly straps. ";
    
    var desc11 = email1 + email2 + "<br />";
    desc11 = desc11 + "Available Packs of 2 or 4 <br /><br />";
    desc11 = desc11 + "<span class='bgspan'>Size 3m x 10cm</span> &pound;10.50 x2<br />";
    desc11 = desc11 + "<span style='margin-left:105px'>&pound;13.50 x4</span><br />";  
    desc11 = desc11 + "<span class='bgspan'>Size 4m x 10cm</span> &pound;11.95 x2<br />";
    desc11 = desc11 + "<span style='margin-left:105px'>&pound;15.95 x4</span><br />";
    desc11 = desc11 + "<br /> Colours left, but also available in <br />";
    desc11 = desc11 + "<br />Special 2 Tone Colours - click a <br />";
    desc11 = desc11 + "2 tone square to select. <br /><br />";
   
    var c11 = "<p>Purple/Lilac</p><p class = 'colspn' style='background-color:#471F5E'  onclick=\"selcol('Purple-Lilac','0','1')\" alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE'></p><p class = 'colspn' style='background-color:#AB82FF'  onclick=\"selcol('Purple-Lilac','0','1')\" alt='Number: 8 - LILAC' title='Number: 8 - LILAC'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c11 = c11 + "<p>Fuchsia/Pink</p><p class = 'colspn' style='background-color:#FF51D6'  onclick=\"selcol('Fuchsia-Pink','0','1')\"  alt='Number: 11 - FUSHIA' title='Number: 11 - FUSHIA'></p><p class = 'colspn' style='background-color:#FF94B8'   onclick=\"selcol('Fuchsia-Pink','0','1')\"  alt='Number: 3 - PINK' title='Number: 3 - PINK''></p><p style='clear:both; height:1px;'>&nbsp;</p>";  
    desc11 = desc11 + c11 + "<br />Made from 100% knitted acrylic with Velcro fastening. <br />";
    desc11 = desc11 + "Easy to apply and machine washable. <br /><br />";
    desc11 = desc11 + "<img style='margin-left:105px;' src='" + path + "arrow.gif' alt='' title='' /><br /><br />";
    desc11 = desc11 + "A perfect travel bandages to co-ordinate you horse’s look. <br />";
    desc11 = desc11 + "<br /><span class='head'>Available limited addition</span> in purple/lilac fushia/pink stripes while stocks last: also:-";
    
    var desc12 = email1 + email2 + "<br />";
    desc12 = desc12 + "<span class='bgspan'>£20.00 </span><br /><br /> ";
    desc12 = desc12 + "<span class='bgspan'>Size:</span> Pony, cob or full<br /><br />";
    desc12 = desc12 + "<span style=''font-weight:bold;>After ordering click link to View and Match<a style='font-weight:bold;' href='tshirts.html#thumbs' alt='Choose your own hat silk colours and add your name or pattern' alt='Choose your own hat silk colours and add your name or pattern'> Your New Stunning Hat Silk</a></span>"
    
    var desc13 = email1 + email2 + "<br />";
    desc13 = desc13 + "<span class='bgspan'>&pound;14.95</span><br /><br />";
    desc13 = desc13 + "<span class='bgspan'>Size:</span> Small Pony, Pony, Cob and Full ";
    desc13 = desc13 + "<br /><br /><span class='bgspan'>Colours:</span> 2 Tone Colour Combinations - scroll box to view ";
    desc13 = desc13 + "<br /><br />Also available: <span class='head' style='margin-left:15px;'>Matching cushion web lead rope at &pound; 4.95</span><br /><br />";
    desc13 = desc13 + "Made from 25mm cushion web.  Strong and stylish, yet soft and comfortable.";
    desc13 = desc13 + " Quality fittings with a throat lash clip enable it to be slipped on and <span style='position:relative; top:-5px;'>off easily.</span> <img style='margin-top:-1px; margin-left:35px;' src='" + path + "arrow.gif' alt='' title='' /></span>";
    desc13 = desc13 + "<br />";
  //  desc13 = desc13 + "Please note, We are able to supply other brands of head collars in a range of colours to match our products, please ask for details";
        
    var desc14 = email1 + email2 + "<br />";
    var ad2 = '"ab1_l"';
    desc14 = desc14 + "<span class='bgspan'>&pound;1.50</span><br /><br />";
    desc14 = desc14 + "<a style='font-weight:bold;' href='#self' onclick='getimg(" + ad2 + ",1)' >Matches your Thermalux Rug</a> range and is available in a number of colours";
    
    var desc15 = email1 + email2 + "<br />";
    desc15 = desc15 + "<span class='bgspan'>&pound;3.95</span><br /><br />";
    desc15 = desc15 + "Traditional finest quality lead rope.  2.1m long.";
    
    var desc16 = email1 + email2 + "<br />";
    desc16 = desc16 + "<span class='bgspan'>&pound;6.95 <a href=\"#self\" onclick=\"setwhip('Rainbow')\"> Rainbow Colours</a> </span><br />";
    desc16 = desc16 + "<span class='bgspan'>&pound;5.95  <a href=\"#self\" onclick=\"setwhip('Metallic')\"> Metallic Colour</a></span><br />";
    desc16 = desc16 + "<span class='bgspan'>&pound;4.95  <a href=\"#self\" onclick=\"setwhip('Plain')\"> Plain Colour</a></span><br />";
    desc16 = desc16 + "<br /><br />";
    desc16 = desc16 + "Rainbow Whips <span style='margin-left:6px;'><img src='play/ab-16-col.jpg'/></span>";
    desc16 = desc16 + "<br />Metalic Finish Whips<br />";
    desc16 = desc16 + "Plain Finish Whips<br /><br />";
    desc16 = desc16 + "When Ordering please select your prefered whip style above and colour below. <br />";
    desc16 = desc16 + "<br /><a href='" + path + "ab16_xl.jpg' rel='lightbox' alt='Rainbow Whips - Metallic Whips - Plain Whips' title='Rainbow Whips - Metallic Whips - Plain Whips'>Click here </a>for an expanded view";
   
    //desc16 = desc16 + "<img style='margin-left:105px;' src='" + path + "arrow.gif' alt='' title='' /><br />";
    var desc17 = email1 + email2 + "<br />";
    desc17 = desc17 + "<span class='bgspan'>&pound; 14.95 2 colours <br />";
    desc17 = desc17 + "&pound; 15.95 3 colours</span><br /><br />";
    desc17 = desc17 + "Available in Pony, Cob and Full size on brown or black leather<br /><br />";
    desc17 = desc17 + "Complete your look with one of these exquisite Brow bands. &nbsp;&nbsp; ";
    desc17 = desc17 + "<a href='" + path + "ab17_xl.jpg' rel='lightbox' alt='Velvet covered Brow Bands ' title='Velvet covered Brow Bands '>Click here for an expanded view</a>";
    desc17 = desc17 + "</br />Suitable for everyday wear and smart enough for</br /> <span style='position:relative; top:-7px;'> competition use.</span><img style='margin-left:30px; border:0' src='" + path + "arrow.gif' alt='' title='' /><br />";
    desc17 = desc17 + "If you are looking for something different e.g. with rosettes either side, ";
    desc17 = desc17 + "please<a href='equisign-contact-us.html' target='_blank'> contact us for more details and a quote</a>.<br /><br />";
    desc17 = desc17 + "<span id='brow'>Velvet Brow Bands are available in a range of colours and styles</span>";
   
    // var desc18 = "desc18";
    var desc19 = "<span class='bgspan'>&pound;1.50 per letter </span><br /><br />";
    desc19 = desc19 + "Personalise your horse wear with our unique embroidery service. <br /><br />";
    desc19 = desc19 + "We can personalise your items to match our sign colours,  or to match whatever else you wish. <br /><br />";
    desc19 = desc19 + "Also we can provide exclusive motifs. - <br /><br /> <a href='equisign-contact-us.html' target='_blank' title='Will open contact form in seperate browser page' > contact us for information </a>";
    
    var desc20 = "<span class='bgspan'>&pound;1.50 per letter </span><br /><br />";
    desc20 = desc20 + "Embroidery will be placed on nearside (side that you mount from) unless you tell us otherwise.<br /><br /> This saddle cloth was made to match a sign shown in our gallery page.";
   
    var desc21 = "<span class='bgspan'>&pound;1.50 per letter / motif </span><br /><br />";
    desc21 = desc21 + "Embroidery to match your sign or customise with your own logo - price available on request.";
    
    var desc22 = "desc22";

    var c1 = "";
    var c2 = "";
    var c3 = "";
    var c4 = "";
    var c5 = "";
    var c6 = "";
    var c7 = "";
    var c8 = "";
    var c9 = "";
    var c10 = "";
 //   var c11 = "<p>Purple/Lilac</p><p class = 'colspn' style='background-color:#471F5E' alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE'></p><p class = 'colspn' style='background-color:#AB82FF' alt='Number: 8 - LILAC' title='Number: 8 - LILAC'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
 //   c11 = c11 + "<p>Fuchsia/Pink</p><p class = 'colspn' style='background-color:#FF51D6' alt='Number: 11 - FUSHIA' title='Number: 11 - FUSHIA'></p><p class = 'colspn' style='background-color:#FF94B8' alt='Number: 3 - PINK' title='Number: 3 - PINK''></p><p style='clear:both; height:1px;'>&nbsp;</p>";";

    var c12 = "<p class = 'colspn' style='background-color:#FAF7F7; border:solid 1px Gray;'  onclick=\"selcol('White','0','1','1')\" alt='Number: 2 - WHITE' title='Number: 2 - WHITE'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#BA0609'  onclick=\"selcol('Red','0','1','12')\" alt='Number: 5 - RED' title='Number: 5 - RED'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#471F5E'  onclick=\"selcol('Purple','0','1','12')\" alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#135436'  onclick=\"selcol('Dark Green','0','1','12')\" alt='Number: 12 - DARK GREEN' title='Number: 12 - DARK GREEN'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#602C05'  onclick=\"selcol('Dark Brown','0','1','12')\" alt='Number: 13 - Dark Brown' title='Number: 13 - Dark Brown'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#060606'  onclick=\"selcol('Black','0','1','12')\" alt='Number: 17 - BLACK' TITLE='Number: 17 - BLACK'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#F22F7D'  onclick=\"selcol('Hot Pink','0','1','12')\" alt='Number: 18 - HOT PINK' title='Number: 18 - HOT PINK'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#315065'  onclick=\"selcol('Navy Blue','0','1','12')\" alt='Number: 20 - NAVY BLUE' title='Number: 20 - NAVY BLUE'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#4CBB17'  onclick=\"selcol('Emerald','0','1','12')\" alt='Number: 21 - EMERALD' title='Number: 21 - EMERALD'></p>";
    c12 = c12 + "<p class = 'colspn' style='background-color:#0147FA'  onclick=\"selcol('Royal Blue','0','1','12')\" alt='Number: 22 - ROYAL BLUE' title='Number: 22 - ROYAL BLUE'></p>";

    var c13 = "<p class = 'colspn' style='background-color:#135436;'  onclick=\"selcol('Dark Green','0','1','13')\" alt='Number: 12 - DARK GREEN' title='Number: 12 - DARK GREEN'></p>";
    c13 = c13 + "<p class = 'colspn' style='background-color:#602C05'  onclick=\"selcol('Dark Brown','0','1','13')\" alt='Number: 13 - Dark Brown' title='Number: 13 - Dark Brown'></p>";
    c13 = c13 + "<p class = 'colspn' style='background-color:#060606'  onclick=\"selcol('Black','0','1','13')\" alt='Number: 17 - BLACK' TITLE='Number: 17 - BLACK'></p>";
    c13 = c13 + "<p class = 'colspn' style='background-color:#315065'  onclick=\"selcol('Navy Blue','0','1','13')\" alt='Number: 20 - NAVY BLUE' title='Number: 20 - NAVY BLUE'></p>";
    c13 = c13 + "<p class='bgspan' style='clear:both;'>Plus Two tone colours:</p>";
    c13 = c13 + "<p>Royal/Pale blue</p><p class = 'colspn' style='background-color:#546ACF' onclick=\"selcol('Mid Blue/Pale Blue','0','1','13')\" alt='Number: 4 - MID BLUE' title='Number: 4 - MID BLUE'></p><p class = 'colspn' style='background-color:#ABD0EB' onclick=\"selcol('Mid Blue/Pale Blue','0','1','13')\" alt='Number: 16 - PALE BLUE' title='Number: 16 - PALE BLUE'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Purple/Fuchsia</p><p class = 'colspn' style='background-color:#471F5E'  onclick=\"selcol('Purple/Fuchsia','0','1','13')\" alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE'></p><p class = 'colspn' style='background-color:#FF51D6'  onclick=\"selcol('Purple/Fuchsia','0','1','13')\" alt='Number: 11 - FUSHIA' title='Number: 11 - FUSHIA'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Navy/Red</p><p class = 'colspn' style='background-color:#315065'  onclick=\"selcol('Navy/Red','0','1','13')\" alt='Number: 20 - NAVY' title='Number: 20 - NAVY'></p><p class = 'colspn' style='background-color:#BA0609'  onclick=\"selcol('Navy/Red','0','1','13')\" alt='Number: 5 - RED' title='Number: 5 - RED'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Navy/Pale Blue</p><p class = 'colspn' style='background-color:#315065' onclick=\"selcol('Navy/Pale Blue','0','1','13')\" alt='Number: 20 - NAVY' title='Number: 20 - NAVY'></p><p class = 'colspn' style='background-color:#ABD0EB' onclick=\"selcol('Navy/Pale Blue','0','1','13')\" alt='Number: 16 - PALE BLUE' title='Number: 16 - PALE BLUE'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Red/Silver Grey</p><p class = 'colspn' style='background-color:#B60807' onclick=\"selcol('Red/Silver Gray','0','1','13')\" alt='Number: 5 - RED' title='Number: 5 - RED'></p><p class = 'colspn' style='background-color:#DDDDDD'  onclick=\"selcol('Red/Silver Gray','0','1','13')\" alt='Number: 28 - SILVER GRAY' title='Number: 28 - SILVER GRAY'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Fuchsia/Silver Grey</p><p class = 'colspn' style='background-color:#FF51D6'  onclick=\"selcol('Fuchsia/Silver Gray','0','1','13')\" alt='Number: 11 - FUSHIA' title='Number: 11 - FUCHSIA'></p><p class = 'colspn' style='background-color:#DDDDDD'  onclick=\"selcol('Fuchsia/Silver Gray','0','1','13')\" alt='Number: 28 - SILVER GRAY' title='Number: 28 - SILVER GRAY'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Royal/Silver Grey</p><p class = 'colspn' style='background-color:#546ACF' onclick=\"selcol('Mid Blue/Silver Gray','0','1','13')\" alt='Number: 4 - MID BLUE' title='Number: 4 - MID BLUE'></p><p class = 'colspn' style='background-color:#DDDDDD'  onclick=\"selcol('Mid Blue/Silver Gray','0','1','13')\" alt='Number: 28 - SILVER GRAY' title='Number: 28 - SILVER GRAY'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c13 = c13 + "<p>Fuchsia/Pink</p><p class = 'colspn' style='background-color:#FF51D6'  onclick=\"selcol('Fuchsia/Pink','0','1','13')\" alt='Number: 11 - FUSHIA' title='Number: 11 - FUSHIA'></p><p class = 'colspn' style='background-color:#FF94B8' onclick=\"selcol('Fuchsia/Pink','0','1','13')\" alt='Number: 3 - PINK' title='Number: 3 - PINK'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    
    var c14 = "";
    var c15 = "<p class = 'colspn' style='background-color:#135436;' onclick=\"selcol('Dark Green','0','1','15')\" alt='Number: 12 - DARK GREEN' title='Number: 12 - DARK GREEN'></p>";
    c15 = c15 + "<p class = 'colspn' style='background-color:#BA0609' onclick=\"selcol('Red','0','1','15')\" alt='Number: 5 - RED' title='Number: 5 - RED'></p>";
    c15 = c15 + "<p class = 'colspn' style='background-color:#060606' onclick=\"selcol('Black','0','1','15')\" alt='Number: 17 - BLACK' TITLE='Number: 17 - BLACK'></p>";
    c15 = c15 + "<p class = 'colspn' style='background-color:#315065' onclick=\"selcol('Navy Blue','0','1','15')\"  alt='Number: 20 - NAVY BLUE' title='Number: 20 - NAVY BLUE'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c15 = c15 + "<p class='bgspan' style='clear:both;'>Plus Two tone colours:</p>";
    c15 = c15 + "<p>Fuchsia/Pink</p><p class = 'colspn' style='background-color:#FF51D6' onclick=\"selcol('Fuchsia/Pink','0','1','15')\"  alt='Number: 11 - FUSHIA' title='Number: 11 - FUSHIA'></p><p class = 'colspn' style='background-color:#FF94B8'  onclick=\"selcol('Fuchsia/Pink','0','1','15')\" alt='Number: 3 - PINK' title='Number: 3 - PINK'></p><p style='clear:both; height:1px;'>&nbsp;</p>";
    c15 = c15 + "<p>Purple/Lilac</p><p class = 'colspn' style='background-color:#471F5E' onclick=\"selcol('Purple/Lilac','0','1','15')\" alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE'></p><p class = 'colspn' style='background-color:#A77BD0'  onclick=\"selcol('Purple/Lilac','0','1','15')\" alt='Number: 8 - LILAC' title='Number: 8 - LILAC'><img style='margin-left:85px;' src='" + path + "arrow.gif' alt='' title='' /></p><p style='clear:both; height:1px;'>&nbsp;</p>";


    var c16 = "<p class = 'colspn' style='background-color:#FF94B8' onclick=\"selcol('Pink','0','1','16')\" alt='Number: 3 - PINK' title='Number: 3 - PINK / METALLIC'></p>";
    c16 = c16 + "<p class = 'colspn' style='background-color:#546ACF' onclick=\"selcol('Mid Blue','0','1','16')\" alt='Number: 4 - MID BLUE' title='Number: 4 - MID BLUE'></p>";
    c16 = c16 + "<p class = 'colspn' style='background-color:#BA0609' onclick=\"selcol('Red','0','1','16')\" alt='Number: 5 - RED' title='Number: 5 - RED / METALLIC RED'></p>";
    c16 = c16 + "<p class = 'colspn' style='background-color:#EDD340' onclick=\"selcol('Gold','0','1','16')\" alt='Number: 29 - METALIC GOLD' title='Number: 29 - METALIC GOLD'></p>";
    c16 = c16 + "<p class = 'colspn' style='background-color:#471F5E' onclick=\"selcol('Purple','0','1','16')\" alt='Number: 7 - PURPLE' title='Number: 7 - PURPLE/METALLIC PURPLE'></p>";
    c16 = c16 + "<p class = 'colspn' style='background-color:#060606' onclick=\"selcol('Black','0','1','16')\"  alt='Number: 17 - BLACK' TITLE='Number: 17 - BLACK'></p>";
    var c17 = "";
    var c18 = "";
    var c19 = "";
    var c20 = "";
    var c21 = "";
    var c22 = "";


    var spcr0 = "<br /><p>Colours Available - see left<br />(other colours may be available)</p>";
    var spcr1 = "<br /><p>Colours Available - below<br />(other colours may be available)</p>";
    var spcr2 = "<br /><p style='clear:both;'>Hover Colour for Number</p>";
    var spcr3 = "<br /><p>Colours Available</p>";
    var spcr4 = "<br /><p>(other colours may be available)</p>";
    var im = document.getElementById("largeimg");


    if (item == "1") {
        document.getElementById("what").innerHTML = tit1;
        document.getElementById("rightinboxcom").innerHTML = desc1 + "<br />" + spcr0 + c1 + spcr2;
        specnote="We often have custom coloured items which are not always shown. Please contact us for information."
    }
    else if (item == "2") {
        document.getElementById("what").innerHTML = tit2;
        document.getElementById("rightinboxcom").innerHTML = desc2 + "<br />" + spcr0 + c2 + spcr2;
        specnote = "Don't forget to tell us if you would like alternative colour stitching.";
    }
    else if (item == "3") {
        document.getElementById("what").innerHTML = tit3;
        document.getElementById("rightinboxcom").innerHTML = desc3 + "<br />" + spcr0 + c3 + spcr2;
    }
    else if (item == "4") {
        document.getElementById("what").innerHTML = tit4;
        document.getElementById("rightinboxcom").innerHTML = desc4 + "<br />" + spcr0 + c4 + spcr2;
    }
    else if (item == 5) {
        document.getElementById("what").innerHTML = tit5;
        document.getElementById("rightinboxcom").innerHTML = desc5 + "<br />" + spcr0 + c5 + spcr2;
    }
    else if (item == 6) {
        document.getElementById("what").innerHTML = tit6;
        document.getElementById("rightinboxcom").innerHTML = desc6 + "<br />" + spcr0 + c6 + spcr2;
    }
    else if (item == "7") {
        document.getElementById("what").innerHTML = tit7;
        document.getElementById("rightinboxcom").innerHTML = desc7 + "<br />" + spcr0 + c7 + spcr2;
    }
    else if (item == 8) {
        document.getElementById("what").innerHTML = tit8;
        document.getElementById("rightinboxcom").innerHTML = desc8 + "<br />" + spcr0 + c8 + spcr2;
    }
    else if (item == 9) {
        document.getElementById("what").innerHTML = tit9;
        document.getElementById("rightinboxcom").innerHTML = desc9 + "<br />" + spcr0 + c9 + spcr2;
    }
    else if (item == 10) {
        document.getElementById("what").innerHTML = tit10;
        document.getElementById("rightinboxcom").innerHTML = desc10 + "<br />" + spcr0 + c10 + spcr2;
    }
    else if (item == 11) {
        document.getElementById("what").innerHTML = tit11;
        document.getElementById("rightinboxcom").innerHTML = desc11 + "<br />" + spcr0 + c11 + spcr2;
        specnote="We often stock custom 2 tone colours which are not always shown here. If you are looking for that special look, contact us."
    }
    else if (item == 12) {
        document.getElementById("what").innerHTML = tit12;
        document.getElementById("rightinboxcom").innerHTML = desc12 + "<br />" + spcr1 + c12 + spcr2;
    }
    else if (item == 13) {
        document.getElementById("what").innerHTML = tit13;
        document.getElementById("rightinboxcom").innerHTML = desc13  + spcr3 + c13 + spcr4;
        specnote = "We can supply other brands of head collars in a range of colours - please ask for details";

    }
    else if (item == 14) {
        document.getElementById("what").innerHTML = tit14;
        document.getElementById("rightinboxcom").innerHTML = desc14 + "<br />" + spcr0 + c14 + spcr2;
    }
    else if (item == 15) {
        document.getElementById("what").innerHTML = tit15;
        document.getElementById("rightinboxcom").innerHTML = desc15 + "<br />" + spcr1 + c15 + spcr2;
    }
    else if (item == 16) {
        document.getElementById("what").innerHTML = tit16;
        document.getElementById("rightinboxcom").innerHTML = desc16 + "<br />" + spcr3 + c16 + "<br />" + spcr4;

    }
    else if (item == 17) {
        document.getElementById("what").innerHTML = tit17;
        document.getElementById("rightinboxcom").innerHTML = desc17 + "<br />" + spcr0 + c17 + spcr2;
    }
    else if (item == 18) {
        document.getElementById("what").innerHTML = tit18;
        document.getElementById("rightinboxcom").innerHTML = desc18 + "<br />" + c18;
    }
    else if (item == 19) {
        document.getElementById("what").innerHTML = tit19;
        document.getElementById("rightinboxcom").innerHTML = desc19 + "<br />" + c19;
    }
    else if (item == 20) {
        document.getElementById("what").innerHTML = tit20;
        document.getElementById("rightinboxcom").innerHTML = desc20 + "<br />" + c20;
    }
    else if (item == 21) {
        document.getElementById("what").innerHTML = tit21;
        document.getElementById("rightinboxcom").innerHTML = desc21 + "<br />" + c21;
    }
    else if (item == 22) {
        document.getElementById("what").innerHTML = tit22;
        document.getElementById("rightinboxcom").innerHTML = desc22 + "<br />" + c22;
    }

   im.src = path + id + ".jpg";
    document.getElementById("specnote").innerHTML = specnote;
    prodinfotobuy(item, grp, numcolrs);
    setcolours(colset);
}

//function isPrime(n) {
 //   if (2 > n) return false;
//    if (0 == n % 2) return (2 == n);
//    for (var index = 3; n / index > index; index += 2)
//        if (0 == n % index) return false;
//    return true;
//} // isPrime

//$R(10, 15).find(isPrime)


function delanchors()

{
document.getElementById('psz1').removeChild(document.getElementById('sz1'));
document.getElementById('psz2').removeChild(document.getElementById('sz2'));
document.getElementById('psz3').removeChild(document.getElementById('sz3'));
document.getElementById('psz4').removeChild(document.getElementById('sz4'));
document.getElementById('psz5').removeChild(document.getElementById('sz5'));
document.getElementById('psz6').removeChild(document.getElementById('sz6'));
document.getElementById('psz7').removeChild(document.getElementById('sz7'));
document.getElementById('psz8').removeChild(document.getElementById('sz8'));
document.getElementById('psz9').removeChild(document.getElementById('sz9'));
document.getElementById('psz10').removeChild(document.getElementById('sz10'));
document.getElementById('psz11').removeChild(document.getElementById('sz11'));
document.getElementById('psz12').removeChild(document.getElementById('sz12'));
document.getElementById('psz13').removeChild(document.getElementById('sz13'));

}

//this will need expanding when or if new products are added. Ray Howell June 2010

function prodinfotobuy(prod, grp, numcolrs) {

    var szh1 = "&nbsp;CM - Ins";

    // group 0

    var sz0 = "One Size";


// group 1

    var sz1 = "130 - 4' 6&quot;";
    var sz2 = "140 - 4' 9&quot;";
    var sz3 = "145 - 5' 0&quot;";
    var sz4 = "150 - 5' 3&quot;";
    var sz5 = "160 - 5' 6&quot;";
    var sz6 = "165 - 5' 9&quot;";
    var sz7 = "175 - 6' 0&quot;";
    var sz8 = "185 - 6' 0&quot;";
    var sz9 = "190 - 6' 3&quot;";
    var sz10 = "195 - 6' 6&quot;";
    var sz11 = "205 - 6' 9&quot;";
    var sz12 = "215 - 7' 0&quot;";

// group 2

    var sz13 = "100 - 3' 3&quot;";
    var sz14 = "105 - 3' 6&quot;";
    var sz15 = "110 - 3' 6&quot;";
    var sz16 = "115 - 3' 9&quot;";
    var sz17 = "120 - 4' 0&quot;";
    var sz18 = "125 - 4' 0&quot;";
    var sz19 = "130 - 4' 3&quot;";
    var sz20 = "135 - 4' 6&quot;";
    var sz21 = "140 - 4' 6&quot;";
    var sz22 = "145 - 4' 9&quot;";
    var sz23 = "150 - 5' 0&quot;";
    var sz24 = "155 - 5' 3&quot;";

// group 3

    var sz25 = "115 - 3ft 9&quot;";
    var sz26 = "120 - 4ft 0&quot;";
    var sz27 = "130 - 4ft 3&quot;";
    var sz28 = "140 - 4ft 6&quot;";
    var sz29 = "145 - 4ft 9&quot;";
    var sz30 = "150 - 5ft 0&quot;";
    var sz31 = "155 - 5ft 3&quot;";

// group 4

var sz32= "Small";
var sz33= "Medium";
var sz34= "Large";

// group 5

var sz35= "Pony";
var sz36= "Cob";
var sz37= "Full";


// group 6

var sz38 = "up to 5' 6&quot;";
var sz39 = "up to 6' 6&quot;";
var sz40 = "up to 7' 3&quot;";


// group 7

var sz41 = 'Small';
var sz42 = 'Medium';
var sz43 = 'Large';
var sz44 = 'XLarge';



// group 4
var sz45 = "XSmall";
var sz46 = "Small";
var sz47 = "Medium";
var sz48 = "Large";

// group 4a
var sz45 = "XSmall";
var sz46 = "Pony";
var sz47 = "Cob";
var sz48 = "Large";
// variants - ie no size info

// group z

// colours


// 1 col

var cap = "Contrasting Colour(s)";

document.getElementById("hwspecial").innerHTML = "&nbsp;";
document.getElementById("hwsize").innerHTML = "&nbsp;";


document.getElementById("colchoice1").innerHTML = "&nbsp;";
document.getElementById("colchoice2").innerHTML = "&nbsp;";
document.getElementById("colchoice3").innerHTML = "&nbsp;";
document.getElementById("colchoice1c").innerHTML = "&nbsp;";
document.getElementById("colchoice2c").innerHTML = "&nbsp;";
document.getElementById("colchoice3c").innerHTML = "&nbsp;";
document.getElementById("colnums").innerHTML = "&nbsp;";


var p1 = document.getElementById("psz1");
var a1 = document.createElement('a');
var p2 = document.getElementById("psz2");
var a2 = document.createElement('a');
var p3 = document.getElementById("psz3");
var a3 = document.createElement('a');
var p4 = document.getElementById("psz4");
var a4 = document.createElement('a');
var p5 = document.getElementById("psz5");
var a5 = document.createElement('a');
var p6 = document.getElementById("psz6");
var a6 = document.createElement('a');
var p7 = document.getElementById("psz7");
var a7 = document.createElement('a');
var p8 = document.getElementById("psz8");
var a8 = document.createElement('a');
var p9 = document.getElementById("psz9");
var a9 = document.createElement('a');
var p10 = document.getElementById("psz10");
var a10 = document.createElement('a');
var p11 = document.getElementById("psz11");
var a11 = document.createElement('a');
var p12 = document.getElementById("psz12");
var a12 = document.createElement('a');
var p13 = document.getElementById("psz13");
var a13 = document.createElement('a');


//       var newpara11 = document.createElement('p');



//p1.appendChild(a1);
//a1.id = "sz1";
//a1.onclick = function() { appsize(sz38) };



 
    document.getElementById("orderinfohead").innerHTML =  document.getElementById("what").innerHTML;
   document.getElementById("headr").innerHTML = szh1;

   if (grp == '6') {
       delanchors()
       document.getElementById("headr").innerHTML = "&nbsp;";
       
       p1.appendChild(a1);
       a1.id = "sz1";
       a1.onclick = function() { appsize(sz38) };
       a1.href = "#self";
       a1.innerHTML = sz38;
       
       p2.appendChild(a2);
       a2.id = "sz2";
       a2.onclick = function() { appsize(sz39) };
       a2.href = "#self";
       a2.innerHTML = sz39;
       
       p3.appendChild(a3);
       a3.id = "sz3";
       a3.onclick = function() { appsize(sz40) };
       a3.href = "#self";
       a3.innerHTML = sz40;
       
 //      p1.appendChild(a1);
 //      p2.appendChild(a2);
 //      p3.appendChild(a3);
       p4.appendChild(a4);
       p5.appendChild(a5);
       p6.appendChild(a6);
       p7.appendChild(a7);
       p8.appendChild(a8);
       p9.appendChild(a9);
       p10.appendChild(a10);
       p11.appendChild(a11);
       p12.appendChild(a12);
       p13.appendChild(a13);

   //    a1.id = "sz1";
   //    a2.id = "sz2";
   //    a3.id = "sz3";
        a4.id = "sz4";
       a5.id = "sz5";
       a6.id = "sz6";
       a7.id = "sz7";
       a8.id = "sz8";
       a9.id = "sz9";
       a10.id = "sz10";
       a11.id = "sz11";
       a12.id = "sz12";
       a13.id = "sz13";

  //     a1.innerHTML = "&nbsp;";
  //     a2.innerHTML = "&nbsp;";
  //     a3.innerHTML = "&nbsp;";
       a4.innerHTML = "&nbsp;";
       a5.innerHTML = "&nbsp;";
       a6.innerHTML = "&nbsp;";
       a7.innerHTML = "&nbsp;";
       a8.innerHTML = "&nbsp;";
       a9.innerHTML = "&nbsp;";
       a10.innerHTML = "&nbsp;";
       a11.innerHTML = "&nbsp;";
       a12.innerHTML = "&nbsp;";
       a13.innerHTML = "&nbsp;";


    //   document.getElementById("sz1").innerHTML = sz38;
    //   document.getElementById("sz2").innerHTML = sz39;
    //   document.getElementById("sz3").innerHTML = sz40;
       
       
   }

   else if (grp == '5') {
   delanchors()
   p1.appendChild(a1);
   a1.id = "sz1";
   a1.onclick = function() { appsize(sz35) };
   a1.href = "#self";
   a1.innerHTML = sz35;

   p2.appendChild(a2);
   a2.id = "sz2";
   a2.onclick = function() { appsize(sz36) };
   a2.href = "#self";
   a2.innerHTML = sz36;

   p3.appendChild(a3);
   a3.id = "sz3";
   a3.onclick = function() { appsize(sz37) };
   a3.href = "#self";
   a3.innerHTML = sz37;

  // p1.appendChild(a1);
 //  p2.appendChild(a2);
 //  p3.appendChild(a3);
   p4.appendChild(a4);
   p5.appendChild(a5);
   p6.appendChild(a6);
   p7.appendChild(a7);
   p8.appendChild(a8);
   p9.appendChild(a9);
   p10.appendChild(a10);
   p11.appendChild(a11);
   p12.appendChild(a12);
   p13.appendChild(a13);

 //  a1.id = "sz1";
 //  a2.id = "sz2";
 //  a3.id = "sz3";
   a4.id = "sz4";
   a5.id = "sz5";
   a6.id = "sz6";
   a7.id = "sz7";
   a8.id = "sz8";
   a9.id = "sz9";
   a10.id = "sz10";
   a11.id = "sz11";
   a12.id = "sz12";
   a13.id = "sz13";

   a4.innerHTML = "&nbsp;";
   a5.innerHTML = "&nbsp;";
   a6.innerHTML = "&nbsp;";
   a7.innerHTML = "&nbsp;";
   a8.innerHTML = "&nbsp;";
   a9.innerHTML = "&nbsp;";
   a10.innerHTML = "&nbsp;";
   a11.innerHTML = "&nbsp;";
   a12.innerHTML = "&nbsp;";
   a13.innerHTML = "&nbsp;";

       document.getElementById("headr").innerHTML = "&nbsp;";
   
       
   }


   else if (grp == '0') {
   delanchors()
   p1.appendChild(a1);
   a1.id = "sz1";
   a1.onclick = function() { appsize(sz0) };
   a1.href = "#self";
   a1.innerHTML = sz0;

  // p1.appendChild(a1);
   p2.appendChild(a2);
   p3.appendChild(a3);
   p4.appendChild(a4);
   p5.appendChild(a5);
   p6.appendChild(a6);
   p7.appendChild(a7);
   p8.appendChild(a8);
   p9.appendChild(a9);
   p10.appendChild(a10);
   p11.appendChild(a11);
   p12.appendChild(a12);
   p13.appendChild(a13);


  // a1.id = "sz1";
   a2.id = "sz2";
   a3.id = "sz3";
   a4.id = "sz4";
   a5.id = "sz5";
   a6.id = "sz6";
   a7.id = "sz7";
   a8.id = "sz8";
   a9.id = "sz9";
   a10.id = "sz10";
   a11.id = "sz11";
   a12.id = "sz12";
   a13.id = "sz13";

 //  a1.innerHTML = "&nbsp;";
   a2.innerHTML = "&nbsp;";
   a3.innerHTML = "&nbsp;";
   a4.innerHTML = "&nbsp;";
   a5.innerHTML = "&nbsp;";
   a6.innerHTML = "&nbsp;";
   a7.innerHTML = "&nbsp;";
   a8.innerHTML = "&nbsp;";
   a9.innerHTML = "&nbsp;";
   a10.innerHTML = "&nbsp;";
   a11.innerHTML = "&nbsp;";
   a12.innerHTML = "&nbsp;";
   a13.innerHTML = "&nbsp;";


   document.getElementById("headr").innerHTML = "&nbsp;";
   //    document.getElementById("sz1").innerHTML = sz0;
       document.getElementById("hwsize").innerHTML = sz0;
      
   }

   else if (grp == '7') {
   delanchors()
       document.getElementById("headr").innerHTML = "&nbsp;";


       p1.appendChild(a1);
       a1.id = "sz1";
       a1.onclick = function() { appsize(sz41) };
       a1.href = "#self";
       a1.innerHTML = sz41;

       p2.appendChild(a2);
       a2.id = "sz2";
       a2.onclick = function() { appsize(sz42) };
       a2.href = "#self";
       a2.innerHTML = sz42;

       p3.appendChild(a3);
       a3.id = "sz3";
       a3.onclick = function() { appsize(sz43) };
       a3.href = "#self";
       a3.innerHTML = sz43;

       p4.appendChild(a4);
       a4.id = "sz4";
       a4.onclick = function() { appsize(sz44) };
       a4.href = "#self";
       a4.innerHTML = sz44;


       p5.appendChild(a5);
       p6.appendChild(a6);
       p7.appendChild(a7);
       p8.appendChild(a8);
       p9.appendChild(a9);
       p10.appendChild(a10);
       p11.appendChild(a11);
       p12.appendChild(a12);
       p13.appendChild(a13);

 
       a5.id = "sz5";
       a6.id = "sz6";
       a7.id = "sz7";
       a8.id = "sz8";
       a9.id = "sz9";
       a10.id = "sz10";
       a11.id = "sz11";
       a12.id = "sz12";
       a13.id = "sz13";

    
       a5.innerHTML = "&nbsp;";
       a6.innerHTML = "&nbsp;";
       a7.innerHTML = "&nbsp;";
       a8.innerHTML = "&nbsp;";
       a9.innerHTML = "&nbsp;";
       a10.innerHTML = "&nbsp;";
       a11.innerHTML = "&nbsp;";
       a12.innerHTML = "&nbsp;";
       a13.innerHTML = "&nbsp;";
     
   }

   else if (grp == '3') {
   delanchors()
       document.getElementById("headr").innerHTML = "&nbsp;";


       p1.appendChild(a1);
       a1.id = "sz1";
       a1.onclick = function() { appsize(sz25) };
       a1.href = "#self";
       a1.innerHTML = sz25;

       p2.appendChild(a2);
       a2.id = "sz2";
       a2.onclick = function() { appsize(sz26) };
       a2.href = "#self";
       a2.innerHTML = sz26;

       p3.appendChild(a3);
       a3.id = "sz3";
       a3.onclick = function() { appsize(sz27) };
       a3.href = "#self";
       a3.innerHTML = sz27;

       p4.appendChild(a4);
       a4.id = "sz4";
       a4.onclick = function() { appsize(sz28) };
       a4.href = "#self";
       a4.innerHTML = sz28;

       p5.appendChild(a5);
       a5.id = "sz5";
       a5.onclick = function() { appsize(sz29) };
       a5.href = "#self";
       a5.innerHTML = sz29;

       p6.appendChild(a6);
       a6.id = "sz6";
       a6.onclick = function() { appsize(sz30) };
       a6.href = "#self";
       a6.innerHTML = sz30;


       p7.appendChild(a7);
       a7.id = "sz7";
       a7.onclick = function() { appsize(sz31) };
       a7.href = "#self";
       a7.innerHTML = sz31;


       p8.appendChild(a8);
       p9.appendChild(a9);
       p10.appendChild(a10);
       p11.appendChild(a11);
       p12.appendChild(a12);
       p13.appendChild(a13);
    
   
       a8.id = "sz8";
       a9.id = "sz9";
       a10.id = "sz10";
       a11.id = "sz11";
       a12.id = "sz12";
       a13.id = "sz13";
    
       a8.innerHTML = "&nbsp;";
       a9.innerHTML = "&nbsp;";
       a10.innerHTML = "&nbsp;";
       a11.innerHTML = "&nbsp;";
       a12.innerHTML = "&nbsp;";
       a13.innerHTML = "&nbsp;";
    
   }

   else if (grp == '4') {
 

   delanchors()
   p1.appendChild(a1);
   a1.id = "sz1";
   a1.onclick = function() { appsize(sz45) };
   a1.href = "#self";
   a1.innerHTML = sz45;

   p2.appendChild(a2);
   a2.id = "sz2";
   a2.onclick = function() { appsize(sz46) };
   a2.href = "#self";
   a2.innerHTML = sz46;

   p3.appendChild(a3);
   a3.id = "sz3";
   a3.onclick = function() { appsize(sz47) };
   a3.href = "#self";
   a3.innerHTML = sz47;

   p4.appendChild(a4);
   a4.id = "sz4";
   a4.onclick = function() { appsize(sz48) };
   a4.href = "#self";
   a4.innerHTML = sz48;


   p5.appendChild(a5);
   p6.appendChild(a6);
   p7.appendChild(a7);
   p8.appendChild(a8);
   p9.appendChild(a9);
   p10.appendChild(a10);
   p11.appendChild(a11);
   p12.appendChild(a12);
   p13.appendChild(a13);

   a5.id = "sz5"; 
   a6.id = "sz6";
   a7.id = "sz7";
   a8.id = "sz8";
   a9.id = "sz9";
   a10.id = "sz10";
   a11.id = "sz11";
   a12.id = "sz12";
   a13.id = "sz13";

   a5.innerHTML = "&nbsp;";
   a6.innerHTML = "&nbsp;";
   a7.innerHTML = "&nbsp;";
   a8.innerHTML = "&nbsp;";
   a9.innerHTML = "&nbsp;";
   a10.innerHTML = "&nbsp;";
   a11.innerHTML = "&nbsp;";
   a12.innerHTML = "&nbsp;";
   a13.innerHTML = "&nbsp;";
}

else if (grp == '4a') {


    delanchors()
    p1.appendChild(a1);
    a1.id = "sz1";
    a1.onclick = function() { appsize(sz45) };
    a1.href = "#self";
    a1.innerHTML = sz45;

    p2.appendChild(a2);
    a2.id = "sz2";
    a2.onclick = function() { appsize(sz46) };
    a2.href = "#self";
    a2.innerHTML = sz46;

    p3.appendChild(a3);
    a3.id = "sz3";
    a3.onclick = function() { appsize(sz47) };
    a3.href = "#self";
    a3.innerHTML = sz47;

    p4.appendChild(a4);
    a4.id = "sz4";
    a4.onclick = function() { appsize(sz48) };
    a4.href = "#self";
    a4.innerHTML = sz48;


    p5.appendChild(a5);
    p6.appendChild(a6);
    p7.appendChild(a7);
    p8.appendChild(a8);
    p9.appendChild(a9);
    p10.appendChild(a10);
    p11.appendChild(a11);
    p12.appendChild(a12);
    p13.appendChild(a13);

    a5.id = "sz5";
    a6.id = "sz6";
    a7.id = "sz7";
    a8.id = "sz8";
    a9.id = "sz9";
    a10.id = "sz10";
    a11.id = "sz11";
    a12.id = "sz12";
    a13.id = "sz13";

    a5.innerHTML = "&nbsp;";
    a6.innerHTML = "&nbsp;";
    a7.innerHTML = "&nbsp;";
    a8.innerHTML = "&nbsp;";
    a9.innerHTML = "&nbsp;";
    a10.innerHTML = "&nbsp;";
    a11.innerHTML = "&nbsp;";
    a12.innerHTML = "&nbsp;";
    a13.innerHTML = "&nbsp;";



}
   
   
   
   
   
   
   
   else {
       delanchors()
       document.getElementById("headr").innerHTML = "&nbsp;";

       p1.appendChild(a1);
       p2.appendChild(a2);
       p3.appendChild(a3);
       p4.appendChild(a4);
       p5.appendChild(a5);
       p6.appendChild(a6);
       p7.appendChild(a7);
       p8.appendChild(a8);
       p9.appendChild(a9);
       p10.appendChild(a10);
       p11.appendChild(a11);
       p12.appendChild(a12);
       p13.appendChild(a13);

       a1.id = "sz1";
       a2.id = "sz2";
       a3.id = "sz3";
       a4.id = "sz4";
       a5.id = "sz5";
       a6.id = "sz6";
       a7.id = "sz7";
       a8.id = "sz8";
       a9.id = "sz9";
       a10.id = "sz10";
       a11.id = "sz11";
       a12.id = "sz12";
       a13.id = "sz13";

       a1.innerHTML = "&nbsp;";
       a2.innerHTML = "&nbsp;";
       a3.innerHTML = "&nbsp;";
       a4.innerHTML = "&nbsp;";
       a5.innerHTML = "&nbsp;";
       a6.innerHTML = "&nbsp;";
       a7.innerHTML = "&nbsp;";
       a8.innerHTML = "&nbsp;";
       a9.innerHTML = "&nbsp;";
       a10.innerHTML = "&nbsp;";
       a11.innerHTML = "&nbsp;";
       a12.innerHTML = "&nbsp;";
       a13.innerHTML = "&nbsp;";
   }

   var ch1 = "Prime Col.";
   var ch2 = "2nd Colour";
   var ch3 = "3rd Colour";





   if (numcolrs == '1') {
       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("storedcola1").innerHTML = "<a href='#self' onclick=\"setstore('1')\">Prime Col.</a>";
       document.getElementById("storedcola2").innerHTML = "Colour 2";
       document.getElementById("storedcol").innerHTML = "&nbsp;";
       document.getElementById("storedcol2").innerHTML = "Not Applicable";
       document.getElementById("colnumber").innerHTML = "1";
       document.getElementById("colchoice2").innerHTML = "2nd Colour";
       document.getElementById("colchoice3").innerHTML = "3rd Colour";
       document.getElementById("colchoice2c").innerHTML = "not available";
       document.getElementById("colchoice3c").innerHTML = "not available";
       document.getElementById("orderinfoinstruct").innerHTML = "Select a colour then apply by selecting:";


   }
   else if (numcolrs == '2') {


       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("colchoice2").innerHTML = "<a href='#self' onclick=\"appcol('2')\" >2nd Colour</a>";
       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("storedcola1").innerHTML = "<a href='#self' onclick=\"setstore('1')\">Prime Col.</a>";
       document.getElementById("storedcola2").innerHTML = "<a href='#self' onclick=\"setstore('2')\">Colour 2</a>";
      
       document.getElementById("storedcol").innerHTML = "&nbsp;";
       document.getElementById("storedcol2").innerHTML = "&nbsp;";
       document.getElementById("colnumber").innerHTML = "1";
       document.getElementById("colchoice3").innerHTML = "3rd Colour";
       document.getElementById("colchoice3c").innerHTML = "not available";
       document.getElementById("orderinfoinstruct").innerHTML = "Select a colour then apply by selecting:";


   }
   else if (numcolrs == '3') {


       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("colchoice2").innerHTML = "<a href='#self' onclick=\"appcol('2')\" >2nd Colour</a>";
       document.getElementById("colchoice3").innerHTML = "<a href='#self' onclick=\"appcol('3')\" >3rd Colour</a>";

       document.getElementById("orderinfoinstruct").innerHTML = "Select a colour then apply by selecting:";



   }

   else if (numcolrs == '0') {


       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("colchoice2").innerHTML = "2nd Colour";
       document.getElementById("colchoice3").innerHTML = "3rd Colour";
       document.getElementById("colchoice2c").innerHTML = "not available";
       document.getElementById("colchoice3c").innerHTML = "not available";
       document.getElementById("orderinfoinstruct").innerHTML = "Select a colour then apply by selecting:";



   }

   else if (numcolrs == '10') {


       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("colchoice2").innerHTML = "2nd Colour";
       document.getElementById("colchoice3").innerHTML = "3rd Colour";
       document.getElementById("colchoice2c").innerHTML = "not available";
       document.getElementById("colchoice3c").innerHTML = "not available";
       document.getElementById("orderinfoinstruct").innerHTML = "Select a Colour from the description box above:";



   }

   else if (numcolrs == '11') {


       document.getElementById("colchoice1").innerHTML = "<a href='#self' onclick=\"appcol('1')\" >Prime Col.</a>";
       document.getElementById("colchoice2").innerHTML = "2nd Colour";
       document.getElementById("colchoice3").innerHTML = "3rd Colour";
       document.getElementById("colchoice2c").innerHTML = "not available";
       document.getElementById("colchoice3c").innerHTML = "not available";
       document.getElementById("orderinfoinstruct").innerHTML = "Select Colours from the description box above:";
        cap = " Tone Colours"


   }


   else {
       document.getElementById("colchoice1").innerHTML = "&nbsp;";
       document.getElementById("colchoice2").innerHTML = "&nbsp;";
       document.getElementById("colchoice3").innerHTML = "&nbsp;";

       document.getElementById("orderinfoinstruct").innerHTML = "Example only";

   }
   if (numcolrs == '10') {
       document.getElementById("colnums").innerHTML = '0';
   }
   if (numcolrs == '11') {
       document.getElementById("colnums").innerHTML = '2';
   }
   
   else { document.getElementById("colnums").innerHTML = numcolrs }

   document.getElementById("coldesc").innerHTML = cap;
   
   
}



function selcol(scol1, scol2, nm) {

 //   document.getElementById("colchoice1").innerHTML = "&nbsp;";
 //   document.getElementById("colchoice2").innerHTML = "&nbsp;";
 //   document.getElementById("colchoice1c").innerHTML = "&nbsp;";
//    document.getElementById("colchoice2c").innerHTML = "&nbsp;";


    if (nm == '1') {
   //     document.getElementById("colchoice1").innerHTML = "Prime Col.";
        document.getElementById("colchoice1c").innerHTML = scol1;
    }
if (nm == '2') { 
// document.getElementById("colchoice1").innerHTML = "Prime Col.";
// document.getElementById("colchoice2").innerHTML = "2nd Colour.";
document.getElementById("colchoice1c").innerHTML = scol1;
document.getElementById("colchoice2c").innerHTML = scol2;
}

if (document.getElementById("hwspecial").innerHTML == 'Rainbow') 
   {
       document.getElementById("colchoice1c").innerHTML = 'Rainbow';
   }
   
   
   
 }


 function storecol(tit) {

     var storewhere = document.getElementById("colnumber").innerHTML;

     if (storewhere == '1') {
         document.getElementById("storedcol").innerHTML = tit;
         document.getElementById("colchoice1c").innerHTML = tit;
     }
     else {
         document.getElementById("storedcol2").innerHTML = tit;
         document.getElementById("colchoice2c").innerHTML = tit;
      }
 
 }

 function setstore(store) {

     if (store == '1') { document.getElementById("colnumber").innerHTML='1'; }
     else {document.getElementById("colnumber").innerHTML = '2'; }
 }

 function appcol(nm) {

     if (nm == '1') {
         document.getElementById("colchoice1c").innerHTML = document.getElementById("storedcol").innerHTML
 
 }
 else if (nm == '2') {
     document.getElementById("colchoice2c").innerHTML = document.getElementById("storedcol").innerHTML

 }

 else {
     document.getElementById("colchoice3c").innerHTML = document.getElementById("storedcol").innerHTML

 }

 
 }

 function appsize(sz) {
   //  alert("here");
     document.getElementById("hwsize").innerHTML = sz;
 
 
 }


 function setwhip(txt) {

     document.getElementById("hwspecial").innerHTML = txt;
     if (txt == 'Rainbow') {
         document.getElementById("colchoice1c").innerHTML = 'Rainbow';
     }
 }


 function Left(str, n) {
     if (n <= 0)
         return "";
     else if (n > String(str).length)
         return str;
     else
         return String(str).substring(0, n);
 }






 function setcolours(colset) {

     document.getElementById('p100').className = "pcolour4";
     document.getElementById('p101').className = "pcolour4";
     document.getElementById('p102').className = "pcolour4";
     document.getElementById('p103').className = "pcolour4";
     document.getElementById('p104').className = "pcolour4";
     document.getElementById('p105').className = "pcolour4";
     document.getElementById('p106').className = "pcolour4";
     document.getElementById('p107').className = "pcolour4";
     document.getElementById('p108').className = "pcolour4";
     document.getElementById('p109').className = "pcolour4";
     document.getElementById('p110').className = "pcolour4";
     document.getElementById('p111').className = "pcolour4";
     document.getElementById('p112').className = "pcolour4";
     document.getElementById('p113').className = "pcolour4";
     document.getElementById('p114').className = "pcolour4";
     document.getElementById('p115').className = "pcolour4";
     document.getElementById('p116').className = "pcolour4";
     document.getElementById('p117').className = "pcolour4";
     document.getElementById('p118').className = "pcolour4";
     document.getElementById('p119').className = "pcolour4";
     document.getElementById('p120').className = "pcolour4";
     document.getElementById('p121').className = "pcolour4";
     document.getElementById('p122').className = "pcolour4";
     document.getElementById('p123').className = "pcolour4";
     document.getElementById('p124').className = "pcolour4";

     document.getElementById('p100').style.borderColor = '#ABD0EB';
     document.getElementById('p101').style.borderColor = '#ABD0EB';
     document.getElementById('p102').style.borderColor = '#ABD0EB';
     document.getElementById('p103').style.borderColor = '#ABD0EB';
     document.getElementById('p104').style.borderColor = '#ABD0EB';
     document.getElementById('p105').style.borderColor = '#ABD0EB';
     document.getElementById('p106').style.borderColor = '#ABD0EB';
     document.getElementById('p107').style.borderColor = '#ABD0EB';
     document.getElementById('p108').style.borderColor = '#ABD0EB';
     document.getElementById('p109').style.borderColor = '#ABD0EB';
     document.getElementById('p110').style.borderColor = '#ABD0EB';
     document.getElementById('p111').style.borderColor = '#ABD0EB';
     document.getElementById('p112').style.borderColor = '#ABD0EB';
     document.getElementById('p113').style.borderColor = '#ABD0EB';
     document.getElementById('p114').style.borderColor = '#ABD0EB';
     document.getElementById('p115').style.borderColor = '#ABD0EB';
     document.getElementById('p116').style.borderColor = '#ABD0EB';
     document.getElementById('p117').style.borderColor = '#ABD0EB';
     document.getElementById('p118').style.borderColor = '#ABD0EB';
     document.getElementById('p119').style.borderColor = '#ABD0EB';
     document.getElementById('p120').style.borderColor = '#ABD0EB';
     document.getElementById('p121').style.borderColor = '#ABD0EB';
     document.getElementById('p122').style.borderColor = '#ABD0EB';
     document.getElementById('p123').style.borderColor = '#ABD0EB';
     document.getElementById('p124').style.borderColor = '#ABD0EB';
     
     
 
 if (colset=='1'){
 document.getElementById("p100").style.backgroundColor="#E1A834";
 document.getElementById("p101").style.backgroundColor="#FFFFFF";
 document.getElementById("p102").style.backgroundColor="#FF94B8";
 document.getElementById("p103").style.backgroundColor="#546ACF";
 document.getElementById("p104").style.backgroundColor="#BA0609";
 document.getElementById("p105").style.backgroundColor="#FEFD4F";
 document.getElementById("p106").style.backgroundColor="#491E5F";
 document.getElementById("p107").style.backgroundColor="#A77BD0";
 document.getElementById("p108").style.backgroundColor="#95470F";
 document.getElementById("p109").style.backgroundColor="#90BB54";
 document.getElementById("p110").style.backgroundColor="#FF51D6";
 document.getElementById("p111").style.backgroundColor="#135436";
 document.getElementById("p112").style.backgroundColor="#602C05";
 document.getElementById("p113").style.backgroundColor="#D13908";
 document.getElementById("p114").style.backgroundColor="#F6DCF9";
 document.getElementById("p115").style.backgroundColor="#ABD0EB";
 document.getElementById("p116").style.backgroundColor="#000000";
 document.getElementById("p117").style.backgroundColor="#F22F7D";
 document.getElementById("p118").style.backgroundColor="#BD9D5B";
 document.getElementById("p119").style.backgroundColor="#315065";
 document.getElementById("p120").style.backgroundColor="#FEEDB7";
 document.getElementById("p121").style.backgroundColor="#FF6600";
 document.getElementById("p122").style.backgroundColor="#0033CC";
 document.getElementById("p123").style.backgroundColor = "#993365";
 document.getElementById("p124").style.backgroundColor = "#4CBB17";

 document.getElementById('p100').className = "pcolour4";
 document.getElementById('p101').className = "pcolour4";
 document.getElementById('p102').className = "pcolour4";
 document.getElementById('p103').className = "pcolour4";
 document.getElementById('p104').className = "pcolour4";
 document.getElementById('p105').className = "pcolour4";
 document.getElementById('p106').className = "pcolour4";
 document.getElementById('p107').className = "pcolour4";
 document.getElementById('p108').className = "pcolour4";
 document.getElementById('p109').className = "pcolour4";
 document.getElementById('p110').className = "pcolour4";
 document.getElementById('p111').className = "pcolour4";
 document.getElementById('p112').className = "pcolour4";
 document.getElementById('p113').className = "pcolour4";
 document.getElementById('p114').className = "pcolour4";
 document.getElementById('p115').className = "pcolour4";
 document.getElementById('p116').className = "pcolour4";
 document.getElementById('p117').className = "pcolour4";
 document.getElementById('p118').className = "pcolour4";
 document.getElementById('p119').className = "pcolour4";
 document.getElementById('p120').className = "pcolour4";
 document.getElementById('p121').className = "pcolour4";
 document.getElementById('p122').className = "pcolour4";
 document.getElementById('p123').className = "pcolour4";
 document.getElementById('p124').className = "pcolour4";
 
 document.getElementById("p100").onclick = function() { storecol(this.title)  };
 document.getElementById("p101").onclick = function() { storecol(this.title)  };
 document.getElementById("p102").onclick = function() { storecol(this.title)  };
 document.getElementById("p103").onclick = function() { storecol(this.title)  };
 document.getElementById("p104").onclick = function() { storecol(this.title)  };
 document.getElementById("p105").onclick = function() { storecol(this.title)  };
 document.getElementById("p106").onclick = function() { storecol(this.title)  };
 document.getElementById("p107").onclick = function() { storecol(this.title)  };
 document.getElementById("p108").onclick = function() { storecol(this.title)  };
 document.getElementById("p109").onclick = function() { storecol(this.title)  };
 document.getElementById("p110").onclick = function() { storecol(this.title)  };
 document.getElementById("p111").onclick = function() { storecol(this.title)  };
 document.getElementById("p112").onclick = function() { storecol(this.title)  };
 document.getElementById("p113").onclick = function() { storecol(this.title)  };
 document.getElementById("p114").onclick = function() { storecol(this.title)  };
 document.getElementById("p115").onclick = function() { storecol(this.title)  };
 document.getElementById("p116").onclick = function() { storecol(this.title)  };
 document.getElementById("p117").onclick = function() { storecol(this.title)  };
 document.getElementById("p118").onclick = function() { storecol(this.title)  };
 document.getElementById("p119").onclick = function() { storecol(this.title)  };
 document.getElementById("p120").onclick = function() { storecol(this.title)  };
 document.getElementById("p121").onclick = function() { storecol(this.title)  };
 document.getElementById("p122").onclick = function() { storecol(this.title)  };
 document.getElementById("p123").onclick = function() { storecol(this.title) };
 document.getElementById("p124").onclick = function() { storecol(this.title) };
 
document.getElementById("p100").title= "Mustard";
document.getElementById("p101").title="WHITE";
document.getElementById("p102").title ="PINK";
document.getElementById("p103").title ="MID BLUE";
document.getElementById("p104").title ="RED";
document.getElementById("p105").title ="YELLOW";
document.getElementById("p106").title ="PURPLE";
document.getElementById("p107").title ="LILAC";
document.getElementById("p108").title ="MID BROWN";
document.getElementById("p109").title ="APPLE GREEN;"
document.getElementById("p110").title ="Fuchsia";
document.getElementById("p111").title ="DARK GREEN";
document.getElementById("p112").title ="Dark Brown";
document.getElementById("p113").title ="TERRACOTTA";
document.getElementById("p114").title ="PALE PINK";
document.getElementById("p115").title ="PALE BLUE";
document.getElementById("p116").title ="BLACK";
document.getElementById("p117").title ="HOT PINK";
document.getElementById("p118").title ="CAPPUCINNO";
document.getElementById("p119").title ="NAVY BLUE";
document.getElementById("p120").title="CREAM";
document.getElementById("p121").title ="ORANGE";
document.getElementById("p122").title ="ROYAL BLUE";
document.getElementById("p123").title ="BURGUNDY";
document.getElementById("p124").title = "EMERALD";

 
 
}


if (colset == '12') {
   document.getElementById("p100").style.backgroundColor="#FAF7F7"; 
   document.getElementById("p101").style.backgroundColor="#BA0609";  
   document.getElementById("p102").style.backgroundColor="#471F5E";  
   document.getElementById("p103").style.backgroundColor="#135436";
   document.getElementById("p104").style.backgroundColor="#602C05";
   document.getElementById("p105").style.backgroundColor="#060606";
   document.getElementById("p106").style.backgroundColor="#F22F7D";
   document.getElementById("p107").style.backgroundColor = "#315065";
   document.getElementById("p108").style.backgroundColor = "#4CBB17";
   document.getElementById("p109").style.backgroundColor = "#0033CC";
  
   document.getElementById("p110").style.backgroundColor = "#FFFFFF";
   document.getElementById("p111").style.backgroundColor = "#FFFFFF";
   document.getElementById("p112").style.backgroundColor = "#FFFFFF";
   document.getElementById("p113").style.backgroundColor = "#FFFFFF";
   document.getElementById("p114").style.backgroundColor = "#FFFFFF";
   document.getElementById("p115").style.backgroundColor = "#FFFFFF";
   document.getElementById("p116").style.backgroundColor = "#FFFFFF";
   document.getElementById("p117").style.backgroundColor = "#FFFFFF";
   document.getElementById("p118").style.backgroundColor = "#FFFFFF"; 
   document.getElementById("p119").style.backgroundColor = "#FFFFFF";
   document.getElementById("p120").style.backgroundColor = "#FFFFFF";
   document.getElementById("p121").style.backgroundColor = "#FFFFFF";
   document.getElementById("p122").style.backgroundColor = "#FFFFFF";
   document.getElementById("p123").style.backgroundColor = "#FFFFFF";
   document.getElementById("p124").style.backgroundColor = "#FFFFFF";

   document.getElementById('p110').style.borderColor = '#FFFFFF';
   document.getElementById('p111').style.borderColor = '#FFFFFF';
   document.getElementById('p112').style.borderColor = '#FFFFFF';
   document.getElementById('p113').style.borderColor = '#FFFFFF';
   document.getElementById('p114').style.borderColor = '#FFFFFF';
   document.getElementById('p115').style.borderColor = '#FFFFFF';
   document.getElementById('p116').style.borderColor = '#FFFFFF';
   document.getElementById('p117').style.borderColor = '#FFFFFF';
   document.getElementById('p118').style.borderColor = '#FFFFFF';
   document.getElementById('p119').style.borderColor = '#FFFFFF';
   document.getElementById('p120').style.borderColor = '#FFFFFF';
   document.getElementById('p121').style.borderColor = '#FFFFFF';
   document.getElementById('p122').style.borderColor = '#FFFFFF';
   document.getElementById('p123').style.borderColor = '#FFFFFF';
   document.getElementById('p124').style.borderColor = '#FFFFFF';
   
   
   document.getElementById("p100").title='WHITE';
   document.getElementById("p101").title='RED';
   document.getElementById("p102").title='PURPLE';
   document.getElementById("p103").title='DARK GREEN';
   document.getElementById("p104").title='Dark Brown';
   document.getElementById("p105").title='BLACK';
   document.getElementById("p106").title='HOT PINK';
   document.getElementById("p107").title = 'NAVY BLUE';
   document.getElementById("p108").title = 'EMERALD';
   document.getElementById("p109").title = 'ROYAL BLUE';
   
   document.getElementById("p110").title='';
   document.getElementById("p111").title='';
   document.getElementById("p112").title='';
   document.getElementById("p113").title='';
   document.getElementById("p114").title='';
   document.getElementById("p115").title='';
   document.getElementById("p116").title='';
   document.getElementById("p117").title='';
   document.getElementById("p118").title='';
   document.getElementById("p119").title='';
   document.getElementById("p120").title='';
   document.getElementById("p121").title='';
   document.getElementById("p122").title='';
   document.getElementById("p123").title = '';
   document.getElementById("p124").title = '';
   
 
 
 
 document.getElementById("p100").onclick = function() { storecol(this.title)  };
 document.getElementById("p101").onclick = function() { storecol(this.title)  };
 document.getElementById("p102").onclick = function() { storecol(this.title)  };
 document.getElementById("p103").onclick = function() { storecol(this.title)  };
 document.getElementById("p104").onclick = function() { storecol(this.title)  };
 document.getElementById("p105").onclick = function() { storecol(this.title)  };
 document.getElementById("p106").onclick = function() { storecol(this.title)  };
 document.getElementById("p107").onclick = function() { storecol(this.title) };
 document.getElementById("p108").onclick = function() { storecol(this.title) };
 document.getElementById("p109").onclick = function() { storecol(this.title) };
 
 document.getElementById("p110").onclick = function() { nought()  };  
 document.getElementById("p111").onclick = function() { nought()  };  
 document.getElementById("p112").onclick = function() { nought()  };  
 document.getElementById("p113").onclick = function() { nought()  };  
 document.getElementById("p114").onclick = function() { nought()  };  
 document.getElementById("p115").onclick = function() { nought()  };  
 document.getElementById("p116").onclick = function() { nought()  };  
 document.getElementById("p117").onclick = function() { nought()  };  
 document.getElementById("p118").onclick = function() { nought()  };  
 document.getElementById("p119").onclick = function() { nought()  };  
 document.getElementById("p120").onclick = function() { nought()  };  
 document.getElementById("p121").onclick = function() { nought()  };  
 document.getElementById("p122").onclick = function() { nought()  };
 document.getElementById("p123").onclick = function() { nought() };
 document.getElementById("p124").onclick = function() { nought() };  


   //  document.getElementById("p1").onclick = function() { storecol(this.title)  };
 //  document.getElementById("p1").onclick = function() { nought()  }



//changecol('imgt', this.style.backgroundColor, this.title)
   
//pcolour2tonea
//pcolour2toneb
 }


 if (colset == '13') {
     document.getElementById("p100").style.backgroundColor = "#135436"; 
     document.getElementById("p100").title = 'DARK GREEN';
     document.getElementById("p101").style.backgroundColor = "#602C05"; 
     document.getElementById("p101").title = 'Dark Brown';
     document.getElementById("p102").style.backgroundColor = "#060606"; 
     document.getElementById("p102").title = 'BLACK';
     document.getElementById("p103").style.backgroundColor = "#315065"; 
     document.getElementById("p103").title = 'NAVY BLUE';

     document.getElementById("p104").style.backgroundColor = '#546ACF'; 
     document.getElementById("p104").title = 'Mid Blue/Pale Blue';
     document.getElementById("p105").style.backgroundColor = '#ABD0EB';
      document.getElementById("p105").title = 'Mid Blue/Pale Blue';

      document.getElementById("p106").style.backgroundColor = '#471F5E';
      document.getElementById("p106").title = 'Purple/Fuchsia';
      document.getElementById("p107").style.backgroundColor = '#FF51D6'; 
     document.getElementById("p107").title = 'Purple/Fuchsia';

     document.getElementById("p108").style.backgroundColor = '#315065'; 
     document.getElementById("p108").title = 'Navy/Red';
     document.getElementById("p109").style.backgroundColor = '#BA0609'; 
     document.getElementById("p109").title = 'Navy/Red';

     document.getElementById("p110").style.backgroundColor = '#315065'; 
     document.getElementById("p110").title = 'Navy/Pale Blue'
     document.getElementById("p111").style.backgroundColor = '#ABD0EB'; 
     document.getElementById("p111").title = 'Navy/Pale Blue';

     document.getElementById("p112").style.backgroundColor = '#B60807'; 
     document.getElementById("p112").title = 'Red/Silver Gray';
     document.getElementById("p113").style.backgroundColor = '#DDDDDD'; 
     document.getElementById("p113").title = 'Red/Silver Gray';

     document.getElementById("p114").style.backgroundColor = '#FF51D6';
     document.getElementById("p114").title = 'Fuchsia/Silver Gray';
     document.getElementById("p115").style.backgroundColor = '#DDDDDD'; 
     document.getElementById("p115").title = 'Fuchsia/Silver Gray';

     document.getElementById("p116").style.backgroundColor = '#546ACF'; 
     document.getElementById("p116").title = 'Mid Blue/Silver Gray';
     document.getElementById("p117").style.backgroundColor = '#DDDDDD'; 
     document.getElementById("p117").title = 'Mid Blue/Silver Gray';

     document.getElementById("p118").style.backgroundColor = '#FF51D6'; 
     document.getElementById("p118").title = 'Fuchsia/Pink';
     document.getElementById("p119").style.backgroundColor = '#FF94B8'; 
     document.getElementById("p119").title = 'Fuchsia/Pink';

     document.getElementById('p104').className = "pcolour2tonea";
     document.getElementById('p105').className = "pcolour2toneb";
     document.getElementById('p106').className = "pcolour2tonea";
     document.getElementById('p107').className = "pcolour2toneb";
     document.getElementById('p108').className = "pcolour2tonea";
     document.getElementById('p109').className = "pcolour2toneb";
     document.getElementById('p110').className = "pcolour2tonea";
     document.getElementById('p111').className = "pcolour2toneb";
     document.getElementById('p112').className = "pcolour2tonea";
     document.getElementById('p113').className = "pcolour2toneb";
     document.getElementById('p114').className = "pcolour2tonea";
     document.getElementById('p115').className = "pcolour2toneb";
     document.getElementById('p116').className = "pcolour2tonea";
     document.getElementById('p117').className = "pcolour2toneb";
     document.getElementById('p118').className = "pcolour2tonea";
     document.getElementById('p119').className = "pcolour2toneb";

     document.getElementById("p120").style.backgroundColor = "#FFFFFF";
     document.getElementById("p121").style.backgroundColor = "#FFFFFF";
     document.getElementById("p122").style.backgroundColor = "#FFFFFF";
     document.getElementById("p123").style.backgroundColor = "#FFFFFF";
     document.getElementById("p124").style.backgroundColor = "#FFFFFF";

     document.getElementById("p120").onclick = function() { nought() };
     document.getElementById("p121").onclick = function() { nought() };
     document.getElementById("p122").onclick = function() { nought() };
     document.getElementById("p123").onclick = function() { nought() };
     document.getElementById("p124").onclick = function() { nought() };


     
     document.getElementById('p120').style.borderColor = '#FFFFFF';
     document.getElementById('p121').style.borderColor = '#FFFFFF';
     document.getElementById('p122').style.borderColor = '#FFFFFF';
     document.getElementById('p123').style.borderColor = '#FFFFFF';
     document.getElementById('p124').style.borderColor = '#FFFFFF';
     
 }

 if (colset == '15') {
     document.getElementById('p100').style.backgroundColor='#135436';
     document.getElementById("p100").title ='Dark Green';
     document.getElementById('p101').style.backgroundColor='#BA0609';
     document.getElementById("p101").title ='Red';
     document.getElementById('p102').style.backgroundColor='#060606';
     document.getElementById("p102").title ='Black';
     document.getElementById('p103').style.backgroundColor='#315065';
     document.getElementById("p103").title ='Navy Blue';
   
     document.getElementById('p104').style.backgroundColor='#FF51D6';
     document.getElementById("p104").title ='Fuchsia/Pink';
     document.getElementById('p105').style.backgroundColor='#FF94B8';
     document.getElementById("p105").title ='Fuchsia/Pink';
     
     document.getElementById('p106').style.backgroundColor='#471F5E';
     document.getElementById("p106").title ='Purple/Lilac'; 
     document.getElementById("p107").style.backgroundColor='#A77BD0';
     document.getElementById("p107").title ='Purple/Lilac';
     
     document.getElementById('p104').className = "pcolour2tonea";
     document.getElementById('p105').className = "pcolour2toneb";
     document.getElementById('p106').className = "pcolour2tonea";
     document.getElementById('p107').className = "pcolour2toneb";


     document.getElementById("p108").style.backgroundColor = "#FFFFFF";
     document.getElementById("p109").style.backgroundColor = "#FFFFFF";
     document.getElementById("p110").style.backgroundColor = "#FFFFFF";
     document.getElementById("p111").style.backgroundColor = "#FFFFFF";
     document.getElementById("p112").style.backgroundColor = "#FFFFFF";
     document.getElementById("p113").style.backgroundColor = "#FFFFFF";
     document.getElementById("p114").style.backgroundColor = "#FFFFFF";
     document.getElementById("p115").style.backgroundColor = "#FFFFFF";
     document.getElementById("p116").style.backgroundColor = "#FFFFFF";
     document.getElementById("p117").style.backgroundColor = "#FFFFFF";
     document.getElementById("p118").style.backgroundColor = "#FFFFFF";
     document.getElementById("p119").style.backgroundColor = "#FFFFFF";
     document.getElementById("p120").style.backgroundColor = "#FFFFFF";
     document.getElementById("p121").style.backgroundColor = "#FFFFFF";
     document.getElementById("p122").style.backgroundColor = "#FFFFFF";
     document.getElementById("p123").style.backgroundColor = "#FFFFFF";
     document.getElementById("p124").style.backgroundColor = "#FFFFFF";


     document.getElementById('p108').style.borderColor = '#FFFFFF';
     document.getElementById('p109').style.borderColor = '#FFFFFF';
     document.getElementById('p110').style.borderColor = '#FFFFFF';
     document.getElementById('p111').style.borderColor = '#FFFFFF';
     document.getElementById('p112').style.borderColor = '#FFFFFF';
     document.getElementById('p113').style.borderColor = '#FFFFFF';
     document.getElementById('p114').style.borderColor = '#FFFFFF';
     document.getElementById('p115').style.borderColor = '#FFFFFF';
     document.getElementById('p116').style.borderColor = '#FFFFFF';
     document.getElementById('p117').style.borderColor = '#FFFFFF';
     document.getElementById('p118').style.borderColor = '#FFFFFF';
     document.getElementById('p119').style.borderColor = '#FFFFFF';
     document.getElementById('p120').style.borderColor = '#FFFFFF';
     document.getElementById('p121').style.borderColor = '#FFFFFF';
     document.getElementById('p122').style.borderColor = '#FFFFFF';
     document.getElementById('p123').style.borderColor = '#FFFFFF';
     document.getElementById('p124').style.borderColor = '#FFFFFF';

     document.getElementById("p108").onclick = function() { nought() };
     document.getElementById("p109").onclick = function() { nought() };
     document.getElementById("p110").onclick = function() { nought() };
     document.getElementById("p111").onclick = function() { nought() };
     document.getElementById("p112").onclick = function() { nought() };
     document.getElementById("p113").onclick = function() { nought() };
     document.getElementById("p114").onclick = function() { nought() };
     document.getElementById("p115").onclick = function() { nought() };
     document.getElementById("p116").onclick = function() { nought() };
     document.getElementById("p117").onclick = function() { nought() };
     document.getElementById("p118").onclick = function() { nought() };
     document.getElementById("p119").onclick = function() { nought() };
     document.getElementById("p120").onclick = function() { nought() };
     document.getElementById("p121").onclick = function() { nought() };
     document.getElementById("p122").onclick = function() { nought() };
     document.getElementById("p123").onclick = function() { nought() };
     document.getElementById("p124").onclick = function() { nought() };

     document.getElementById("p108").title = '';
     document.getElementById("p109").title = '';
     document.getElementById("p110").title = '';
     document.getElementById("p111").title = '';
     document.getElementById("p112").title = '';
     document.getElementById("p113").title = '';
     document.getElementById("p114").title = '';
     document.getElementById("p115").title = '';
     document.getElementById("p116").title = '';
     document.getElementById("p117").title = '';
     document.getElementById("p118").title = '';
     document.getElementById("p119").title = '';
     document.getElementById("p120").title = '';
     document.getElementById("p121").title = '';
     document.getElementById("p122").title = '';
     document.getElementById("p123").title = '';
     document.getElementById("p124").title = '';
     
 }

 if (colset == '16') {
     document.getElementById("p100").style.backgroundColor='#FF94B8';
     document.getElementById("p100").title='Pink';
     document.getElementById("p101").style.backgroundColor='#546ACF'; 
     document.getElementById("p101").title='Mid Blue';
     document.getElementById("p102").style.backgroundColor='#BA0609'; 
     document.getElementById("p102").title='Red';
     document.getElementById("p103").style.backgroundColor='#EDD340'; 
     document.getElementById("p103").title='Gold';
     document.getElementById("p104").style.backgroundColor='#471F5E'; 
     document.getElementById("p104").title='Purple';
     document.getElementById("p105").style.backgroundColor='#060606'; 
     document.getElementById("p105").title='Black';
     
     document.getElementById("p106").onclick = function() { nought() };
     document.getElementById("p107").onclick = function() { nought() };
     document.getElementById("p108").onclick = function() { nought() };
     document.getElementById("p109").onclick = function() { nought() };
     document.getElementById("p110").onclick = function() { nought() };
     document.getElementById("p111").onclick = function() { nought() };
     document.getElementById("p112").onclick = function() { nought() };
     document.getElementById("p113").onclick = function() { nought() };
     document.getElementById("p114").onclick = function() { nought() };
     document.getElementById("p115").onclick = function() { nought() };
     document.getElementById("p116").onclick = function() { nought() };
     document.getElementById("p117").onclick = function() { nought() };
     document.getElementById("p118").onclick = function() { nought() };
     document.getElementById("p119").onclick = function() { nought() };
     document.getElementById("p120").onclick = function() { nought() };
     document.getElementById("p121").onclick = function() { nought() };
     document.getElementById("p122").onclick = function() { nought() };
     document.getElementById("p123").onclick = function() { nought() };
     document.getElementById("p124").onclick = function() { nought() };

     document.getElementById("p106").style.backgroundColor = "#FFFFFF";
     document.getElementById("p107").style.backgroundColor = "#FFFFFF";
     document.getElementById("p108").style.backgroundColor = "#FFFFFF";
     document.getElementById("p109").style.backgroundColor = "#FFFFFF";
     document.getElementById("p110").style.backgroundColor = "#FFFFFF";
     document.getElementById("p111").style.backgroundColor = "#FFFFFF";
     document.getElementById("p112").style.backgroundColor = "#FFFFFF";
     document.getElementById("p113").style.backgroundColor = "#FFFFFF";
     document.getElementById("p114").style.backgroundColor = "#FFFFFF";
     document.getElementById("p115").style.backgroundColor = "#FFFFFF";
     document.getElementById("p116").style.backgroundColor = "#FFFFFF";
     document.getElementById("p117").style.backgroundColor = "#FFFFFF";
     document.getElementById("p118").style.backgroundColor = "#FFFFFF";
     document.getElementById("p119").style.backgroundColor = "#FFFFFF";
     document.getElementById("p120").style.backgroundColor = "#FFFFFF";
     document.getElementById("p121").style.backgroundColor = "#FFFFFF";
     document.getElementById("p122").style.backgroundColor = "#FFFFFF";
     document.getElementById("p123").style.backgroundColor = "#FFFFFF";
     document.getElementById("p124").style.backgroundColor = "#FFFFFF";

     document.getElementById('p106').style.borderColor = '#FFFFFF';
     document.getElementById('p107').style.borderColor = '#FFFFFF';
     document.getElementById('p108').style.borderColor = '#FFFFFF';
     document.getElementById('p109').style.borderColor = '#FFFFFF';
     document.getElementById('p110').style.borderColor = '#FFFFFF';
     document.getElementById('p111').style.borderColor = '#FFFFFF';
     document.getElementById('p112').style.borderColor = '#FFFFFF';
     document.getElementById('p113').style.borderColor = '#FFFFFF';
     document.getElementById('p114').style.borderColor = '#FFFFFF';
     document.getElementById('p115').style.borderColor = '#FFFFFF';
     document.getElementById('p116').style.borderColor = '#FFFFFF';
     document.getElementById('p117').style.borderColor = '#FFFFFF';
     document.getElementById('p118').style.borderColor = '#FFFFFF';
     document.getElementById('p119').style.borderColor = '#FFFFFF';
     document.getElementById('p120').style.borderColor = '#FFFFFF';
     document.getElementById('p121').style.borderColor = '#FFFFFF';
     document.getElementById('p122').style.borderColor = '#FFFFFF';
     document.getElementById('p123').style.borderColor = '#FFFFFF';
     document.getElementById('p124').style.borderColor = '#FFFFFF';

     document.getElementById("p106").title = '';
     document.getElementById("p107").title = '';
     document.getElementById("p108").title = '';
     document.getElementById("p109").title = '';
     document.getElementById("p110").title = '';
     document.getElementById("p111").title = '';
     document.getElementById("p112").title = '';
     document.getElementById("p113").title = '';
     document.getElementById("p114").title = '';
     document.getElementById("p115").title = '';
     document.getElementById("p116").title = '';
     document.getElementById("p117").title = '';
     document.getElementById("p118").title = '';
     document.getElementById("p119").title = '';
     document.getElementById("p120").title = '';
     document.getElementById("p121").title = '';
     document.getElementById("p122").title = '';
     document.getElementById("p123").title = '';
     document.getElementById("p124").title = '';
     
 }
 
 
 }



function nought(){}




function wantedhorse() {

 //   alert(document.getElementById("what").innerHTML);

var today = new Date()
    var newl = '\n\n';
    var newp = '\r\n\r\n';
    var emadd1 = "equi";
    var emadd2 = "sign";
    var emadd3 = "sales";
    var emadd4 = "@ao";
    var emadd5 = "l.c";
    var emadd6 = "om";
    var what = document.getElementById("orderinfohead").innerHTML;
    var emadd = emadd1 + emadd2 + emadd3 + emadd4 + emadd5 + emadd6;
    var subject = 'Horsewear - ' + what;
    var col1tit = "Prime Colour";
    var col2tit = "Colour 2";
    var col3tit = "Colour 3";
    var col1des = document.getElementById("colchoice1c").innerHTML;
    var col2des = document.getElementById("colchoice2c").innerHTML;
    var col3des = document.getElementById("colchoice3c").innerHTML;
    var size = document.getElementById("hwsize").innerHTML.replace(/"/g, "''"); 
    var sizedes = document.getElementById("sizedes").innerHTML;
    var finishdes = document.getElementById("finish").innerHTML;
    var finish = document.getElementById("hwspecial").innerHTML;
    if (what=="&nbsp;"){what="Nothing Picked"};
    if (finish=="&nbsp;"){finish = " n/a"};
    if (col1des == "&nbsp;") {col1des ="Not Picked"};
    if (col2des == "&nbsp;") {col2des ="Not Picked"};
  
    if (size == "&nbsp;") { alert("Please Select A Size. Thank You") }


    else {

    //    alert(col1tit + " " + col1des);
    //    alert(col2tit + " " + col1des);
    //    alert(col3tit + " " + col1des);
    //    alert(sizedes + " " + size);
    //    alert(finishdes + " " + finish);
    //    alert(what);
    
    var emailstr = today + newp + newp;
    emailstr = emailstr + what + newp;
    emailstr = emailstr + col1tit + " : " + col1des + newp;
    emailstr = emailstr + col2tit + " : " + col2des + newp;
    emailstr = emailstr + col3tit + " : " + col3des + newp;
    emailstr = emailstr + sizedes + " : " + size + newp; //+ size
    emailstr = emailstr + finishdes + " : " + finish + newp;
    emailstr = emailstr + newp;
    emailstr = emailstr + "Dont forget to add here any special instruction or question you might have" + newp;
    emailstr = emailstr + "Don't worry if you are unsure about any details as we will contact you to discuss and to confirm your order" + newp;
   emailstr = emailstr + newp;
    emailstr = emailstr + "Thank you";

    var message = emailstr;
    document.getElementById('mcomment').value = message;

   
        callitpos();
        jQuery("#backgroundPopup").css({
            "opacity": "0.7"
        });
        jQuery("#backgroundPopup").fadeIn("slow");

        jQuery('#callit2').fadeIn('slow');

        jQuery(function() {
            jQuery('#callit2').con2({});
        });

        
  
  
  
  
  
  
 //   window.open('equisign-contact-us.html?' + document.getElementById("what").innerHTML + " " + emailstr);

//  
 } // end of if

}





