function showMainsubmenu(objectID) {
	if(objectID == 'm2') {
	document.getElementById("mainsubmenu").innerHTML="<div class='mainsubmenutopic'><a href='#'" + 
	"onClick='window.open('catalogs/wearables.htm','newwindow','width=800,height=580,left=0,top=100,screenX=100,screenY=100')'>PDA Favorites</a> | <a href='#'>Other Wearables</a> | <a href='#'>" + 			
	"Company Casuals</a> | <a href='#'>Promotional Products</a></div>";
	}
 	if(objectID == 'm3') {
 	document.getElementById("mainsubmenu").innerHTML="33333333333333333333333";
 	}
}
function rollover(type, objectID) {
	if(type == 'mainmenu') {
	document.getElementById(objectID).style.backgroundColor="#EFEFEF";
	document.getElementById(objectID).style.Color="#000000";
	document.getElementById(objectID).style.borderColor="#000000";
	}
	if(type == 'submenu') {
	document.getElementById(objectID).style.backgroundColor="#FFFFFF";
	document.getElementById(objectID).style.Color="#FF6600";
	document.getElementById(objectID).style.borderColor="#999999";
	}
}
function rollout(type, objectID) {
	if(type == 'mainmenu') {
	document.getElementById(objectID).style.backgroundColor="";
	document.getElementById(objectID).style.Color="";
	document.getElementById(objectID).style.borderColor="#999999";
	}
	if(type == 'submenu') {
	document.getElementById(objectID).style.backgroundColor="";
	document.getElementById(objectID).style.Color="";
	document.getElementById(objectID).style.borderColor="#CCCCCC";
	}
}


<!--

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

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_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
<!-- Begin

//Script by Tr?n: http://come.to/tronds
//Submitted to JavaScript Kit (http://javascriptkit.com)
//Visit http://javascriptkit.com for this script

var initialsubj="Hey \n, take a look at this!"
var initialmsg="Hi:\n You may want to check out this site: "+window.location
var good;
function checkEmailAddress(field) {

var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\.info)|(\.sex)|(\.biz)|(\.aero)|(\.coop)|(\.museum)|(\.name)|(\.pro)|(\..{2,2}))$)\b/gi);
if (goodEmail) {
good = true;
}
else {
alert('Please click tell someone about our site again and enter a valid address.');
field.focus();
field.select();
good = false;
   }
}
u = window.location;
function mailThisUrl() {
good = false
checkEmailAddress(document.eMailer.email);
if (good) {


//window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+document.title+" "+u;
window.location = "mailto:"+document.eMailer.email.value+"?subject="+initialsubj+"&body="+initialmsg
   }
}
//  End -->


//Toggles the visibility of a layer
function toggleBox(szDivID, iState) // 1 visible, 0 hidden
{
    if(document.layers)    //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)      //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)       // IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

//Drop Down Menu Hide/Show
function showmenu(elmnt)
{
document.getElementById(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.getElementById(elmnt).style.visibility="hidden"
}

//Testimonials
//Generates a random number plus one (to avoid zero) and 
//writes that number's respective case to the document.

function changeTestimonial() 
{
var no=Math.random()*17+1;
var test=Math.round(no);
	switch(test)
	{
	case 1:
        	document.getElementById("testimonial").innerHTML="''I have really enjoyed working with PDA over the past six years. As an event planner for the Indianapolis Zoo, my design needs are many and are varied. PDA was always up for the challenge. Everything from t-shirts and hats to formal invitations, stone coasters, and light up necklaces. They are truly a one stop shop and I enjoy the creativity and enthusiasm they bring with each new project.''<br><br><i>- Jennifer McKinney-Seet<br>&nbsp;&nbsp;Special Events Manager<br>&nbsp;&nbsp;Indianapolis Zoo & White River Gardens</i>";
	break
	case 2:
        	document.getElementById("testimonial").innerHTML="''Just wanted to say thanks for getting those shirts out to us so quickly! Once again everyone is very pleased. We will probably be ordering more in the weeks to come, as well as some promotional materials for clients.''<br><br><i>- Joel Wilson<br>&nbsp;&nbsp;MacExperience</i>";
	break
	case 3:
        	document.getElementById("testimonial").innerHTML="''By the way...the shirts were a HIT!!! Even one of our judges (from Butler) bought one!  Looking forward to working with you next year! Thanks again!''<br><br><i>- Pamela Gilbert<br>&nbsp;&nbsp;Deer Run Elementary</i>";
	break
	case 4:
        	document.getElementById("testimonial").innerHTML="''We can not thank you all enough for your help and hard work on this and all of the other jobs you have done for us.  We appreciate the partnership and look forward to future projects.''<br><br><i>- Shelley Griffin<br>&nbsp;&nbsp;MotionWear</i>";
	break
	case 5:
        	document.getElementById("testimonial").innerHTML="''Thanks so much for taking part in the 21st Annual Bop To The Top with your generous floor sponsorship.  Your posters and shirts looked great ... we hope you'll recognize how beneficial your sponsorship has been and will ultimately be for Riley Hospital.''<br><br><i>- Robin Stehr<br>&nbsp;&nbsp;Tuxedo Brothers</i>";
	break
	case 6:
        	document.getElementById("testimonial").innerHTML="''Thank you for your terrific responsiveness for the INHP Home Fair buttons and polo shirts.  Both items looked great!''<br><br><i>- Ellen Rabinowitch<br>&nbsp;&nbsp;President, Maribeth Smith & Associates</i>";
	break
	case 7:
        	document.getElementById("testimonial").innerHTML="''Thanks for bringing the shorts by this morning!  They looked great!''<br><br><i>- LeAnn<br>&nbsp;&nbsp;Infinity Performance</i>";
	break
	case 8:
        	document.getElementById("testimonial").innerHTML="''Thanks so much.  The blankets/pillows look great.  Thanks for all your help this season.  You have made all of this ordering stuff a lot easier for me.''<br><br><i>- Lisa McQueen<br>&nbsp;&nbsp;Pike Schools</i>";
	break
	case 9:
        	document.getElementById("testimonial").innerHTML="''Thanks so much for getting the Symphony State Finals t-shirts all ready for Pike in just a short week.  They look fantastic and the students are very excited about them.  Thank you!''<br><br><i>- Julie Armey<br>&nbsp;&nbsp;Orchestra Director - Pike High School</i>";
	break
	case 10:
        	document.getElementById("testimonial").innerHTML="''It is always a pleasure to work with you and your company.  I always know that the shirts will be perfect and always on time.  Thanks for the great job that you do!''<br><br><i>- Irene Johnston<br>&nbsp;&nbsp;USA Diving</i>";
	break
	case 11:
        	document.getElementById("testimonial").innerHTML="''Thank you very much for pulling together the shirts for our family reunion.  Everyone remarked how prefessional and beautiful they were; they loved the design!''<br><br><i>- Lula Huskey</i>";
	break
	case 12:
        	document.getElementById("testimonial").innerHTML="''The t-shirts looked great.  Thank you for making sure we had them by Thursday!  Your help in getting this 1st order off the ground was very much appreciated.''<br><br><i>- Shawna L. Graves<br>&nbsp;&nbsp;Frank Weiss Racing Components</i>";
	break
	case 13:
        	document.getElementById("testimonial").innerHTML="''The shirts and jackets look GREAT!  Thanks for all of your help.  We're already talking about needing more shirts of different sytle...so I'll be in touch!''<br><br><i>- Holly Smith<br>&nbsp;&nbsp;Lilly</i>";
	break
	case 14:
        	document.getElementById("testimonial").innerHTML="''I wanted to thank you again for the excellent work that PDA did on creating my company logo.  It was great working with PDA as your professionalism, quick response, and artistic design were all first class!''<br><br><i>- Phil Carr<br>&nbsp;&nbsp;Rock Solid Results</i>";
	break
	case 15:
        	document.getElementById("testimonial").innerHTML="''The final design ended up containing all the professional and personal elements we discussed during the initial project discussions.   Not only does it have a clean simple professional appearance, it definitely reflects the personality of my company's endeavors!  Great work!!''<br><br><i>- Phil Carr<br>&nbsp;&nbsp;Rock Solid Results</i>";
	break
	case 16:
        	document.getElementById("testimonial").innerHTML="''The shirts are awesome!  Thank you so much for delivering them.  It was fun doing business with you.  We'll be sure to deal with PDA each season from now on! :)''<br><br><i>- Lisa Dunnaway<br>&nbsp;&nbsp;Weihe Engineers</i>";
	break
	case 17:
        	document.getElementById("testimonial").innerHTML="''As always, you and your team did a great job on a fast turn around! Thanks again!''<br><br><i>- Nancy Carroll<br>&nbsp;&nbsp;Miller Brooks</i>";
	break
	case 18:
        	document.getElementById("testimonial").innerHTML="''The shirts and hats were amazing!  Thank you so much!  Everybody absolutely loved them and they were a big hit!!''<br><br><i>- Wendy Hoffacker<br>&nbsp;&nbsp;Hoffacker Fitness</i>";
	break
	}
}

// Services Page

/*function gotoServices()
{
	document.getElementById("Main").innerHTML="<table class='grayborder' width='636' cellpadding='10'>" +
        "<tr>" +
          "<td><table cellpadding='0' cellspacing='0' width='636'>" +
              "<tr>" +
                "<td height='200' align='center' valign='middle' bgcolor='#BACDE9' class='whitelink style1'>Services Header </td>" +
              "</tr>" +
            "</table>" +
			"<br>" +
            "<table cellpadding='0' cellspacing='0' width='636'>" +
              "<tr>" +
                "<td height='32' width='49%' id='ServiceSubHeader'><a href='#' onClick='changeServiceInHouseProd();'><img src='img/header_services.gif' width='292' height='32' hspace='0' vspace='3' border='0'></a></td>" +
                "<td rowspan='5' width='2%' align='center'></td>" +
                "<td height='32' width='49%' id='ServiceHeader'><img src='img/header_services_inhouseprod.gif' width='292' height='32' vspace='3'></td>" +
              "</tr>" +
              "<tr>" +
                "<td valign='top' rowspan='4' id='ServiceSubContent'><span class='style5'>" +
					"<a href='#' onClick='changeServiceScreenPrinting();'>- Screen Printing</a><br>" +
                    "<a href='#' onClick='changeServiceEmbroidery();'>- Embroidery</a><br>" +
                    "<a href='#' onClick='changeServicePromoProducts();'>- Promotional Products</a><br>" +
                    "<a href='#' onClick='changeServiceGraphicDesign();'>- Graphic Design</a><br>" +
                    "<a href='#' onClick='changeServiceWebDesign();'>- Web Design</a><br>" +
                    "<a href='#' onClick='changeServicePhotography();'>- Photography</a><br>" +
                    "<a href='#' onClick='changeServiceClientConsult();'>- Client Consultation</a><br>" +
                    "<a href='#' onClick='changeServiceMarketingPrograms();'>- Mareting Program Development</a><br>" +
                    "<a href='#' onClick='changeServiceClientPromoPlanning();'>- Client Promotion Planning</a><br>" +
                    "<a href='#' onClick='changeServiceeCommerce();'>- eCommerce</a></span></td>" +
               "<td valign='top' id='ServiceContent' width='49%'>Here at PDA, we take pride in our in house production. We are your one stop for t-shirts, embroidery, logo design, personalized key-chains, and even your own web presence. Here you can read about how this makes PDA Indiana's most successful screen printer and much more.<br>" +
                  "<br>" +
                "</td>" +
              "</tr>" +
              "<tr>" +
                "<td width='49%' ><img src='img/header_services_testimonials.gif' vspace='3'></td>" +
              "</tr>" +
              "<tr>" +
                "<td width='49%'  id='testimonial' class='greytext' valign='top'></td>" +
              "</tr>" +
              "<tr>" +
                "<td width='49%'  class='greytext' valign='top' align='right'><a href='#' onClick='changeTestimonial();'>Next Testimonial</a></td>" +
              "</tr>" +
            "</table>" +
            "<hr size='1' noshade color='CCCCCC' width='636' align='left'>" +
            "<table cellpadding='5' cellspacing='0' width='636'>" +
              "<tr>" +
                "<td bgcolor='#EFEFEF' width='49%' valign='top'><img src='img/header_helpcenter.gif' hspace='5' vspace='5'>" +
                  "<hr size='2' noshade color='#FFFFFF'>" +
                  "<a href='#'>- Frequently Asked Questions</a><br>" +
                  "<a href='#'>- Contact a Customer Service Representative</a><br>" +
                  "<a href='#'>- Trouble Navigating Our New Site? - Site Map</a><br>" +
                  "<br></td>" +
                "<td width='2%'></td>" +
                "<td bgcolor='#E0EAF9' width='49%' valign='top'>" +
                  "Hot Spot</td>" +
              "</tr>" +
            "</table></td>" +
        "</tr>" +
      "</table>";
}
*/

// Go Back from Portfolio

function viewServices()
{
	parent.document.getElementById("SubHeader").innerHTML="<span class='SubHeader'><a class='linknocolor' onClick='changeServiceInHouseProd();'>Our Services ||||</a></span>";
	parent.document.getElementById("SubContent").innerHTML="<br>" +
					  "<a href='#' onClick='changeServiceScreenPrinting();'>Screen Printing</a>" +
				      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServiceEmbroidery();'>Embroidery</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServicePromoProducts();'>Promotional (ASI) Products</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServiceGraphicDesign();'>Graphic Design</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServiceWebDesign();'>Web Design</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServicePhotography();'>Photography</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServiceClientConsult();'>Client Consultation</a>" +
                      "<hr size='1' noshade>" +
                      /*"<a href='#' onClick='changeServiceMarketingPrograms();'>Marketing Program Development</a>" +
                      "<hr size='1' noshade>" +
                      "<a href='#' onClick='changeServiceClientPromoPlanning();'>Client Promotion Planning</a>" +
                      "<hr size='1' noshade>" +*/
                      "<a href='#' onClick='changeServiceeCommerce();'>eCommerce</a>" +
                      "<hr size='1' noshade>" +
                      "<span class='style5'></span>";
}

// Services Content

function changeServiceInHouseProd()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| In House Production</span>";
	document.getElementById("ServiceContent").innerHTML="<br>Here at PDA, we take pride in our in house production. We are your one stop for t-shirts, embroidery, logo design, personalized key-chains, and even your own web presence. Here you can read about how this makes PDA Indiana's most successful screen printer and much more.</td></tr></table><br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services.jpg'>";
}

function changeServiceScreenPrinting()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Screen Printing</span>";
	document.getElementById("ServiceContent").innerHTML="<br>Our in house textile screen printing department focuses on detail to ensure your products are second to none.<br><br>With the ability to print up to 16 colors, a virtually unlimited capacity, and a perfect mix of automated and manual printing presses we can handle any job out there.<br><br>"//<a href='http://www.pdacoolstuff.com/order/screenquote.htm' target='new' class='linkcolor'> +<li>Get a Quote for Screen Printing</li></a><br><a href='http://www.pdacoolstuff.com/products_apparel.htm' class='linkcolor'>"
	"<li>Check Out Our Products</li></a><br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_screen.jpg'>";
}

function changeServiceEmbroidery()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Embroidery</span>";
	document.getElementById("ServiceContent").innerHTML="<br>With state of the art Tajima equipment combined with talented in house digitizing and operators who take pride in what comes off their machine, our embroidery department takes quality standards to the next level.<br><br>Capable of sewing a 12-color logo, doing applique, or stitching 270 1/4 on a hat, we can sew anything from a tiny hat logo to a full back, in the custom colors of your choice.<br><br>" +//<a href='http://www.pdacoolstuff.com/order/embquote.htm' target='new' class='linkcolor'><li>Get a Quote for Embroidery</li></a><br>
	"<a href='http://www.pdacoolstuff.com/products_apparel.htm' class='linkcolor'><li>Check Out Our Products</li></a><br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_embroidery.jpg'>";
}

function changeServicePromoProducts()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Promotional Products</span>";
	document.getElementById("ServiceContent").innerHTML="<br>From antenna balls to fortune cookies, we can personalize any item. What better way for your clients to remember your organization, or to promote a special event?<br><br> No matter how large or small the order, we at PDA take care of all your promotional needs. You dream it, we make it a reality. Contact our sales department to discuss your potential at <a='mailto:sales@pdacoolstuff.com'>sales@pdacoolstuff.com</a><br><br><a href='http://www.pdacoolstuff.com/products_promoprod.htm' class='linkcolor'><li>Check Out Our Products</li></a><br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_promoprod.jpg'>";
}

function changeServiceGraphicDesign()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Graphic Design</span>";
	document.getElementById("ServiceContent").innerHTML="<br>Our in house graphic design team can take a cocktail napkin drawing, and turn it into an impressive corporate logo.<br><br>We take your ideas and work with you to create designs that meet your needs. From corporate identity to special events, print media, and web art, our design team has your solution. Feel free to contact our art department at <a='mailto:artdept@pdacoolstuff.com'>artdept@pdacoolstuff.com</a>.<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_graphicdesign.jpg'>";
}

/*function changeServiceWebDesign()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Web Design</span>";
	document.getElementById("ServiceContent").innerHTML="<br>Our in house graphic design team can take a cocktail napkin drawing, and turn it into an impressive corporate logo.<br><br>We take your ideas and work with you to create designs that meet your needs. From corporate identity to special events, print media, and web art, our design team has your solution. Feel free to contact our art department at <a='mailto:artdept@pdacoolstuff.com'>artdept@pdacoolstuff.com</a>.<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_webdesign.jpg'>";
}

function changeServicePhotography()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Photography</span>";
	document.getElementById("ServiceContent").innerHTML="<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_photography.jpg'>";
}

function changeServiceClientConsult()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Client Consultation</span>";
	document.getElementById("ServiceContent").innerHTML="<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_clientconsult.jpg'>";
}
function changeServiceMarketingPrograms()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Marketing Program Development</span>";
	document.getElementById("ServiceContent").innerHTML="<br>How great would it be to have one person handle all your advertising? Contact our sales department and find out! We can take the headaches out of the search for different agencies to help promote your business by pairing you with a single sales person.<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_marketingprograms.jpg'>";
}

function changeServiceClientPromoPlanning()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| Client Promotion Planning</span>";
	document.getElementById("ServiceContent").innerHTML="<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_clientpromoplanning.jpg'>";
}
*/

function changeServiceeCommerce()
{
	document.getElementById("ServiceHeader").innerHTML="<span class='ServicesHeader'>|||| eCommerce</span>";
	document.getElementById("ServiceContent").innerHTML="<br>PDA Web Stores is a program that helps companies make their product available online without having any of the hassles of retail web sales.  With the integration of our in house production and distribution of your product, we can build, support and maintain web stores for any organization regardless of size or volume.<br><br>We make your success our commitment and help you increase your sales my making your product available 24/7.<br><br>";
	document.getElementById("ServiceBanner").innerHTML="<img src='img/banner_services_ecommerce.jpg'>";
}

// Portfolios

function viewPortfolioScreenPrinting()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/screenprinting/index.htm'></iframe>";
}

function viewPortfolioEmbroidery()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/embroidery/index.htm'></iframe>";
}

function viewPortfolioPromoProducts()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/promoproducts/index.htm'></iframe>";
}

function viewPortfolioGraphicDesign()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/graphicdesign/index.htm'></iframe>";
}

function viewPortfolioWebDesign()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/webdesign/index.htm'></iframe>";
}

function viewPortfolioPhotography()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/photography/index.htm'></iframe>";
}

function viewPortfolioeCommerce()
{
	document.getElementById("SubHeader").innerHTML="<span class='SubHeader'>Portfolio ||||</span>";
	document.getElementById("SubContent").innerHTML="<iframe height='100%' width='100%' frameborder='0' src='portfolio/ecommerce/index.htm'></iframe>";
}

// The Team

function viewSales()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5'>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/ashley.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/stefani2.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/jen2.jpg'></td>" +
					"</tr>" +
					"<tr>" +
							"<td align='center' valign='top' nowrap height='50'><strong>Ashley</strong><br>Sales Associate<br>Candy Supplier</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Stefani</strong><br>Sales Associate</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Sarah</strong><br>Sales & Purchasing</td>" +
					"</tr>" +
					"<tr>" +
					   "<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/catwoman_super.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/Supergirl.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/leslie.jpg'></td>" +
					"</tr>" +	
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Ali</strong><br>Sugar and Bruno<br>Sales Associate</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Tori</strong><br>Sugar and Bruno<br>Sales Associate</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Leslie</strong><br>Sugar and Bruno<br>Custom Sales Associate</td>" +
					"</tr>" +
						"<tr>" +
						 "<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/jan.jpg'></td>" +
					   "<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/kennie.jpg'></td>" +
						
					"</tr>" +	
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Jan</strong><br>Sales Associate</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Kennie</strong><br>Sales Associate<br>Motorsports Division</td>" +
						
					"</tr>" +
				  "</div></table>";}

function viewDesign()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5'>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/amy.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/ashley.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/allison.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap valign='top' height='50'><strong>Amy</strong><br>Graphic Designer<br></td>" +
						"<td align='center' valign='top' nowrap valign='top' height='50'><strong>Ashley</strong><br>Lead Designer</td>" +
						"<td align='center' valign='top' nowrap valign='top' height='50'><strong>Allison</strong><br>Graphic Designer</td>" +
					"</tr>" +
				  "</div></table>";}

function viewScreen()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5'>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/dave.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/Jonathan.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/rob.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Dave</strong><br>Lead Printer<br>(Automatic)</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Johnathan</strong><br>Printer<br>(Automatic)</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Rob</strong><br>Printer<br>(Manual)</td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/gene.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/cory.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/david.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Eugene</strong><br>Print Assistant</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Corey</strong><br>Screen Technician</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>David</strong><br>Print Assistant</td>" +
					"</tr>" +
				  "</div></table>";}              

function viewEmb()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5''>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/sylvia.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/barb.jpg'></td>" +
						
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Sylvia</strong><br>Lead Embroiderer</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Barb</strong><br>Embroiderer</td>" +
						
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/tori.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/erin.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Tori</strong><br>Sugar and Bruno<br>Assistant/Model</td>" + 
						"<td align='center' valign='top' nowrap height='50'><strong>Erin</strong><br>Embroidery Assistant</td>" +
					
					"</tr>" +
				  "</div></table>";}
				  
function viewSpecial()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5''>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/mimi.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/sylvia.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/caey.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Mimi</strong><br>Office Manager</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Sylvia</strong><br>Order Entry</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Casey</strong><br>Receiving Coordinator</td>" +
					"</tr>" +
				  "</div></table>";}

function viewPres()
{ 
	document.getElementById("MainHeader").innerHTML="";
	document.getElementById("MainContent").innerHTML="<div align='center'><br><table cellpadding='5' cellspacing='5'>"  +
				  	"<tr>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/challen2.jpg'></td>" +
						"<td align='center' valign='top' height='120' class='grayborder'><img src='img/employees/thumbnail/steve.jpg'></td>" +
					"</tr>" +
					"<tr>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Challen</strong><br>President</td>" +
						"<td align='center' valign='top' nowrap height='50'><strong>Steve</strong><br>Vice President</td>" +
					"</tr>" +
				  "</table>";
}

/////////////////////////
// Begin Contract Form //
/////////////////////////

function openWindow(whatNumber)
{
	window.open("/stockcolors.htm", "StockColors", "width=350,height=450", "left=300,top=300")
	document.hiddenForm.number.value = whatNumber;
}

function pickColor(elementIDToSet, itemID)
{
	window.open("colors.php?dbItemID=" + itemID + "&elementIDToSet=" + elementIDToSet, "Colors", "width=350,height=450", "left=300,top=300,scrollbars=true")
}

function setColor(wilflexColor)
{
	var number = window.opener.document.hiddenForm.number.value
	if (number == "1")
		{ window.opener.document.contractForm.stock1.value = wilflexColor;
		window.close();
	}
	if (number == "2")
		{ window.opener.document.contractForm.stock2.value = wilflexColor;
		window.close();
	}
	if (number == "3")
		{ window.opener.document.contractForm.stock3.value = wilflexColor;
		window.close();
	}
	if (number == "4")
		{ window.opener.document.contractForm.stock4.value = wilflexColor;
		window.close();
	}
	if (number == "5")
		{ window.opener.document.contractForm.stock5.value = wilflexColor;
		window.close();
	}
	if (number == "6")
		{ window.opener.document.contractForm.stock6.value = wilflexColor;
		window.close();
	}
	if (number == "7")
		{ window.opener.document.contractForm.stock7.value = wilflexColor;
		window.close();
	}
	if (number == "8")
		{ window.opener.document.contractForm.stock8.value = wilflexColor;
		window.close();
	}
	if (number == "9")
		{ window.opener.document.contractForm.stock9.value = wilflexColor;
		window.close();
	}
	if (number == "10")
		{ window.opener.document.contractForm.stock10.value = wilflexColor;
		window.close();
	}
	if (number == "11")
		{ window.opener.document.contractForm.stock11.value = wilflexColor;
		window.close();
	}
	if (number == "12")
		{ window.opener.document.contractForm.stock12.value = wilflexColor;
		window.close();
	}
	if (number == "1b")
		{ window.opener.document.contractForm.stock1b.value = wilflexColor;
		window.close();
	}
	if (number == "2b")
		{ window.opener.document.contractForm.stock2b.value = wilflexColor;
		window.close();
	}
	if (number == "3b")
		{ window.opener.document.contractForm.stock3b.value = wilflexColor;
		window.close();
	}
	if (number == "4b")
		{ window.opener.document.contractForm.stock4b.value = wilflexColor;
		window.close();
	}
	if (number == "5b")
		{ window.opener.document.contractForm.stock5b.value = wilflexColor;
		window.close();
	}
	if (number == "6b")
		{ window.opener.document.contractForm.stock6b.value = wilflexColor;
		window.close();
	}
	if (number == "7b")
		{ window.opener.document.contractForm.stock7b.value = wilflexColor;
		window.close();
	}
	if (number == "8b")
		{ window.opener.document.contractForm.stock8b.value = wilflexColor;
		window.close();
	}
	if (number == "9b")
		{ window.opener.document.contractForm.stock9b.value = wilflexColor;
		window.close();
	}
	if (number == "10b")
		{ window.opener.document.contractForm.stock10b.value = wilflexColor;
		window.close();
	}
	if (number == "11b")
		{ window.opener.document.contractForm.stock11b.value = wilflexColor;
		window.close();
	}
	if (number == "12b")
		{ window.opener.document.contractForm.stock12b.value = wilflexColor;
		window.close();
	}
	if (number == "1c")
		{ window.opener.document.contractForm.stock1c.value = wilflexColor;
		window.close();
	}
	if (number == "2c")
		{ window.opener.document.contractForm.stock2c.value = wilflexColor;
		window.close();
	}
	if (number == "3c")
		{ window.opener.document.contractForm.stock3c.value = wilflexColor;
		window.close();
	}
	if (number == "4c")
		{ window.opener.document.contractForm.stock4c.value = wilflexColor;
		window.close();
	}
	if (number == "5c")
		{ window.opener.document.contractForm.stock5c.value = wilflexColor;
		window.close();
	}
	if (number == "6c")
		{ window.opener.document.contractForm.stock6c.value = wilflexColor;
		window.close();
	}
	if (number == "7c")
		{ window.opener.document.contractForm.stock7c.value = wilflexColor;
		window.close();
	}
	if (number == "8c")
		{ window.opener.document.contractForm.stock8c.value = wilflexColor;
		window.close();
	}
	if (number == "9c")
		{ window.opener.document.contractForm.stock9c.value = wilflexColor;
		window.close();
	}
	if (number == "10c")
		{ window.opener.document.contractForm.stock10c.value = wilflexColor;
		window.close();
	}
	if (number == "11c")
		{ window.opener.document.contractForm.stock11c.value = wilflexColor;
		window.close();
	}
	if (number == "12c")
		{ window.opener.document.contractForm.stock12c.value = wilflexColor;
		window.close();
	}
}

function showColors()
 {
	var indexValue = document.contractForm.numberofColors.selectedIndex
    var colors = document.contractForm.numberofColors.options[indexValue].value
	if (colors == "1")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "hidden";
	document.getElementById("spanstock2").style.visibility = "hidden";
	document.contractForm.pms2.value = ""
	document.contractForm.stock2.value = ""
	document.getElementById("spanpms3").style.visibility = "hidden";
	document.getElementById("spanstock3").style.visibility = "hidden";
	document.contractForm.pms3.value = ""
	document.contractForm.stock3.value = ""
	document.getElementById("spanpms4").style.visibility = "hidden";
	document.getElementById("spanstock4").style.visibility = "hidden";
	document.contractForm.pms4.value = ""
	document.contractForm.stock4.value = ""
	document.getElementById("spanpms5").style.visibility = "hidden";
	document.getElementById("spanstock5").style.visibility = "hidden";
	document.contractForm.pms5.value = ""
	document.contractForm.stock5.value = ""
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	document.contractForm.pms6.value = ""
	document.contractForm.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "2")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "hidden";
	document.getElementById("spanstock3").style.visibility = "hidden";
	document.contractForm.pms3.value = ""
	document.contractForm.stock3.value = ""
	document.getElementById("spanpms4").style.visibility = "hidden";
	document.getElementById("spanstock4").style.visibility = "hidden";
	document.contractForm.pms4.value = ""
	document.contractForm.stock4.value = ""
	document.getElementById("spanpms5").style.visibility = "hidden";
	document.getElementById("spanstock5").style.visibility = "hidden";
	document.contractForm.pms5.value = ""
	document.contractForm.stock5.value = ""
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	document.contractForm.pms6.value = ""
	document.contractForm.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "3")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "hidden";
	document.getElementById("spanstock4").style.visibility = "hidden";
	document.contractForm.pms4.value = ""
	document.contractForm.stock4.value = ""
	document.getElementById("spanpms5").style.visibility = "hidden";
	document.getElementById("spanstock5").style.visibility = "hidden";
	document.contractForm.pms5.value = ""
	document.contractForm.stock5.value = ""
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	document.contractForm.pms6.value = ""
	document.contractForm.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "4")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "hidden";
	document.getElementById("spanstock5").style.visibility = "hidden";
	document.contractForm.pms5.value = ""
	document.contractForm.stock5.value = ""
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	document.contractForm.pms6.value = ""
	document.contractForm.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "5")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	document.contractForm.pms6.value = ""
	document.contractForm.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "6")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	document.contractForm.pms7.value = ""
	document.contractForm.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "7")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	document.contractForm.pms8.value = ""
	document.contractForm.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "8")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "visible";
	document.getElementById("spanstock8").style.visibility = "visible";
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	document.contractForm.pms9.value = ""
	document.contractForm.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "9")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "visible";
	document.getElementById("spanstock8").style.visibility = "visible";
	document.getElementById("spanpms9").style.visibility = "visible";
	document.getElementById("spanstock9").style.visibility = "visible";
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	document.contractForm.pms10.value = ""
	document.contractForm.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "10")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "visible";
	document.getElementById("spanstock8").style.visibility = "visible";
	document.getElementById("spanpms9").style.visibility = "visible";
	document.getElementById("spanstock9").style.visibility = "visible";
	document.getElementById("spanpms10").style.visibility = "visible";
	document.getElementById("spanstock10").style.visibility = "visible";
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	document.contractForm.pms11.value = ""
	document.contractForm.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}
	if (colors == "11")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "visible";
	document.getElementById("spanstock8").style.visibility = "visible";
	document.getElementById("spanpms9").style.visibility = "visible";
	document.getElementById("spanstock9").style.visibility = "visible";
	document.getElementById("spanpms10").style.visibility = "visible";
	document.getElementById("spanstock10").style.visibility = "visible";
	document.getElementById("spanpms11").style.visibility = "visible";
	document.getElementById("spanstock11").style.visibility = "visible";
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	document.contractForm.pms12.value = ""
	document.contractForm.stock12.value = ""
	}	
	if (colors == "12")
	{
	document.getElementById("spanpms1").style.visibility = "visible";
	document.getElementById("spanstock1").style.visibility = "visible";
	document.getElementById("spanpms2").style.visibility = "visible";
	document.getElementById("spanstock2").style.visibility = "visible";
	document.getElementById("spanpms3").style.visibility = "visible";
	document.getElementById("spanstock3").style.visibility = "visible";
	document.getElementById("spanpms4").style.visibility = "visible";
	document.getElementById("spanstock4").style.visibility = "visible";
	document.getElementById("spanpms5").style.visibility = "visible";
	document.getElementById("spanstock5").style.visibility = "visible";
	document.getElementById("spanpms6").style.visibility = "visible";
	document.getElementById("spanstock6").style.visibility = "visible";
	document.getElementById("spanpms7").style.visibility = "visible";
	document.getElementById("spanstock7").style.visibility = "visible";
	document.getElementById("spanpms8").style.visibility = "visible";
	document.getElementById("spanstock8").style.visibility = "visible";
	document.getElementById("spanpms9").style.visibility = "visible";
	document.getElementById("spanstock9").style.visibility = "visible";
	document.getElementById("spanpms10").style.visibility = "visible";
	document.getElementById("spanstock10").style.visibility = "visible";
	document.getElementById("spanpms11").style.visibility = "visible";
	document.getElementById("spanstock11").style.visibility = "visible";
	document.getElementById("spanpms12").style.visibility = "visible";
	document.getElementById("spanstock12").style.visibility = "visible";
	}	
 }
 function clearStock()
 {
	 	document.contractForm.stock1.value = ""
		document.contractForm.stock2.value = ""
		document.contractForm.stock3.value = ""
		document.contractForm.stock4.value = ""
		document.contractForm.stock5.value = ""
		document.contractForm.stock6.value = ""
		document.contractForm.stock7.value = ""
		document.contractForm.stock8.value = ""
		document.contractForm.stock9.value = ""
		document.contractForm.stock10.value = ""
		document.contractForm.stock11.value = ""
		document.contractForm.stock12.value = ""
 }
  function clearPMS()
{
	 	document.contractForm.pms1.value = ""
		document.contractForm.pms2.value = ""
		document.contractForm.pms3.value = ""
		document.contractForm.pms4.value = ""
		document.contractForm.pms5.value = ""
		document.contractForm.pms6.value = ""
		document.contractForm.pms7.value = ""
		document.contractForm.pms8.value = ""
		document.contractForm.pms9.value = ""
		document.contractForm.pms10.value = ""
		document.contractForm.pms11.value = ""
		document.contractForm.pms12.value = ""
}
function clearStockb()
 {
	 	document.contractForm.stock1b.value = ""
		document.contractForm.stock2b.value = ""
		document.contractForm.stock3b.value = ""
		document.contractForm.stock4b.value = ""
		document.contractForm.stock5b.value = ""
		document.contractForm.stock6b.value = ""
		document.contractForm.stock7b.value = ""
		document.contractForm.stock8b.value = ""
		document.contractForm.stock9b.value = ""
		document.contractForm.stock10b.value = ""
		document.contractForm.stock11b.value = ""
		document.contractForm.stock12b.value = ""
 }
  function clearPMSb()
{
	 	document.contractForm.pms1b.value = ""
		document.contractForm.pms2b.value = ""
		document.contractForm.pms3b.value = ""
		document.contractForm.pms4b.value = ""
		document.contractForm.pms5b.value = ""
		document.contractForm.pms6b.value = ""
		document.contractForm.pms7b.value = ""
		document.contractForm.pms8b.value = ""
		document.contractForm.pms9b.value = ""
		document.contractForm.pms10b.value = ""
		document.contractForm.pms11b.value = ""
		document.contractForm.pms12b.value = ""
}
function clearStockc()
 {
	 	document.contractForm.stock1c.value = ""
		document.contractForm.stock2c.value = ""
		document.contractForm.stock3c.value = ""
		document.contractForm.stock4c.value = ""
		document.contractForm.stock5c.value = ""
		document.contractForm.stock6c.value = ""
		document.contractForm.stock7c.value = ""
		document.contractForm.stock8c.value = ""
		document.contractForm.stock9c.value = ""
		document.contractForm.stock10c.value = ""
		document.contractForm.stock11c.value = ""
		document.contractForm.stock12c.value = ""
 }
  function clearPMSc()
{
	 	document.contractForm.pms1c.value = ""
		document.contractForm.pms2c.value = ""
		document.contractForm.pms3c.value = ""
		document.contractForm.pms4c.value = ""
		document.contractForm.pms5c.value = ""
		document.contractForm.pms6c.value = ""
		document.contractForm.pms7c.value = ""
		document.contractForm.pms8c.value = ""
		document.contractForm.pms9c.value = ""
		document.contractForm.pms10c.value = ""
		document.contractForm.pms11c.value = ""
		document.contractForm.pms12c.value = ""
}
function showColorsb()
 {
	var indexValue = document.contractForm.numberofColorsb.selectedIndex
    var colors = document.contractForm.numberofColorsb.options[indexValue].value
	if (colors == "1")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "hidden";
	document.getElementById("spanstock2b").style.visibility = "hidden";
	document.contractForm.pms2b.value = ""
	document.contractForm.stock2b.value = ""
	document.getElementById("spanpms3b").style.visibility = "hidden";
	document.getElementById("spanstock3b").style.visibility = "hidden";
	document.contractForm.pms3b.value = ""
	document.contractForm.stock3b.value = ""
	document.getElementById("spanpms4b").style.visibility = "hidden";
	document.getElementById("spanstock4b").style.visibility = "hidden";
	document.contractForm.pms4b.value = ""
	document.contractForm.stock4b.value = ""
	document.getElementById("spanpms5b").style.visibility = "hidden";
	document.getElementById("spanstock5b").style.visibility = "hidden";
	document.contractForm.pms5b.value = ""
	document.contractForm.stock5b.value = ""
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	document.contractForm.pms6b.value = ""
	document.contractForm.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "2")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "hidden";
	document.getElementById("spanstock3b").style.visibility = "hidden";
	document.contractForm.pms3b.value = ""
	document.contractForm.stock3b.value = ""
	document.getElementById("spanpms4b").style.visibility = "hidden";
	document.getElementById("spanstock4b").style.visibility = "hidden";
	document.contractForm.pms4b.value = ""
	document.contractForm.stock4b.value = ""
	document.getElementById("spanpms5b").style.visibility = "hidden";
	document.getElementById("spanstock5b").style.visibility = "hidden";
	document.contractForm.pms5b.value = ""
	document.contractForm.stock5b.value = ""
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	document.contractForm.pms6b.value = ""
	document.contractForm.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "3")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "hidden";
	document.getElementById("spanstock4b").style.visibility = "hidden";
	document.contractForm.pms4b.value = ""
	document.contractForm.stock4b.value = ""
	document.getElementById("spanpms5b").style.visibility = "hidden";
	document.getElementById("spanstock5b").style.visibility = "hidden";
	document.contractForm.pms5b.value = ""
	document.contractForm.stock5b.value = ""
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	document.contractForm.pms6b.value = ""
	document.contractForm.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "4")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "hidden";
	document.getElementById("spanstock5b").style.visibility = "hidden";
	document.contractForm.pms5b.value = ""
	document.contractForm.stock5b.value = ""
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	document.contractForm.pms6b.value = ""
	document.contractForm.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "5")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	document.contractForm.pms6b.value = ""
	document.contractForm.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "6")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	document.contractForm.pms7b.value = ""
	document.contractForm.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "7")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	document.contractForm.pms8b.value = ""
	document.contractForm.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "8")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "visible";
	document.getElementById("spanstock8b").style.visibility = "visible";
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	document.contractForm.pms9b.value = ""
	document.contractForm.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "9")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "visible";
	document.getElementById("spanstock8b").style.visibility = "visible";
	document.getElementById("spanpms9b").style.visibility = "visible";
	document.getElementById("spanstock9b").style.visibility = "visible";
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	document.contractForm.pms10b.value = ""
	document.contractForm.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "10")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "visible";
	document.getElementById("spanstock8b").style.visibility = "visible";
	document.getElementById("spanpms9b").style.visibility = "visible";
	document.getElementById("spanstock9b").style.visibility = "visible";
	document.getElementById("spanpms10b").style.visibility = "visible";
	document.getElementById("spanstock10b").style.visibility = "visible";
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	document.contractForm.pms11b.value = ""
	document.contractForm.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}
	if (colors == "11")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "visible";
	document.getElementById("spanstock8b").style.visibility = "visible";
	document.getElementById("spanpms9b").style.visibility = "visible";
	document.getElementById("spanstock9b").style.visibility = "visible";
	document.getElementById("spanpms10b").style.visibility = "visible";
	document.getElementById("spanstock10b").style.visibility = "visible";
	document.getElementById("spanpms11b").style.visibility = "visible";
	document.getElementById("spanstock11b").style.visibility = "visible";
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	document.contractForm.pms12b.value = ""
	document.contractForm.stock12b.value = ""
	}	
	if (colors == "12")
	{
	document.getElementById("spanpms1b").style.visibility = "visible";
	document.getElementById("spanstock1b").style.visibility = "visible";
	document.getElementById("spanpms2b").style.visibility = "visible";
	document.getElementById("spanstock2b").style.visibility = "visible";
	document.getElementById("spanpms3b").style.visibility = "visible";
	document.getElementById("spanstock3b").style.visibility = "visible";
	document.getElementById("spanpms4b").style.visibility = "visible";
	document.getElementById("spanstock4b").style.visibility = "visible";
	document.getElementById("spanpms5b").style.visibility = "visible";
	document.getElementById("spanstock5b").style.visibility = "visible";
	document.getElementById("spanpms6b").style.visibility = "visible";
	document.getElementById("spanstock6b").style.visibility = "visible";
	document.getElementById("spanpms7b").style.visibility = "visible";
	document.getElementById("spanstock7b").style.visibility = "visible";
	document.getElementById("spanpms8b").style.visibility = "visible";
	document.getElementById("spanstock8b").style.visibility = "visible";
	document.getElementById("spanpms9b").style.visibility = "visible";
	document.getElementById("spanstock9b").style.visibility = "visible";
	document.getElementById("spanpms10b").style.visibility = "visible";
	document.getElementById("spanstock10b").style.visibility = "visible";
	document.getElementById("spanpms11b").style.visibility = "visible";
	document.getElementById("spanstock11b").style.visibility = "visible";
	document.getElementById("spanpms12b").style.visibility = "visible";
	document.getElementById("spanstock12b").style.visibility = "visible";
	}	
 }
 function clearStockb()
 {
	 	document.contractForm.stock1b.value = ""
		document.contractForm.stock2b.value = ""
		document.contractForm.stock3b.value = ""
		document.contractForm.stock4b.value = ""
		document.contractForm.stock5b.value = ""
		document.contractForm.stock6b.value = ""
		document.contractForm.stock7b.value = ""
		document.contractForm.stock8b.value = ""
		document.contractForm.stock9b.value = ""
		document.contractForm.stock10b.value = ""
		document.contractForm.stock11b.value = ""
		document.contractForm.stock12b.value = ""
 }
  function clearPMSb()
{
	 	document.contractForm.pms1b.value = ""
		document.contractForm.pms2b.value = ""
		document.contractForm.pms3b.value = ""
		document.contractForm.pms4b.value = ""
		document.contractForm.pms5b.value = ""
		document.contractForm.pms6b.value = ""
		document.contractForm.pms7b.value = ""
		document.contractForm.pms8b.value = ""
		document.contractForm.pms9b.value = ""
		document.contractForm.pms10b.value = ""
		document.contractForm.pms11b.value = ""
		document.contractForm.pms12b.value = ""
}
function showColorsc()
 {
	var indexValue = document.contractForm.numberofColorsc.selectedIndex
    var colors = document.contractForm.numberofColorsc.options[indexValue].value
	if (colors == "1")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "hidden";
	document.getElementById("spanstock2c").style.visibility = "hidden";
	document.contractForm.pms2c.value = ""
	document.contractForm.stock2c.value = ""
	document.getElementById("spanpms3c").style.visibility = "hidden";
	document.getElementById("spanstock3c").style.visibility = "hidden";
	document.contractForm.pms3c.value = ""
	document.contractForm.stock3c.value = ""
	document.getElementById("spanpms4c").style.visibility = "hidden";
	document.getElementById("spanstock4c").style.visibility = "hidden";
	document.contractForm.pms4c.value = ""
	document.contractForm.stock4c.value = ""
	document.getElementById("spanpms5c").style.visibility = "hidden";
	document.getElementById("spanstock5c").style.visibility = "hidden";
	document.contractForm.pms5c.value = ""
	document.contractForm.stock5c.value = ""
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	document.contractForm.pms6c.value = ""
	document.contractForm.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "2")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "hidden";
	document.getElementById("spanstock3c").style.visibility = "hidden";
	document.contractForm.pms3c.value = ""
	document.contractForm.stock3c.value = ""
	document.getElementById("spanpms4c").style.visibility = "hidden";
	document.getElementById("spanstock4c").style.visibility = "hidden";
	document.contractForm.pms4c.value = ""
	document.contractForm.stock4c.value = ""
	document.getElementById("spanpms5c").style.visibility = "hidden";
	document.getElementById("spanstock5c").style.visibility = "hidden";
	document.contractForm.pms5c.value = ""
	document.contractForm.stock5c.value = ""
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	document.contractForm.pms6c.value = ""
	document.contractForm.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "3")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "hidden";
	document.getElementById("spanstock4c").style.visibility = "hidden";
	document.contractForm.pms4c.value = ""
	document.contractForm.stock4c.value = ""
	document.getElementById("spanpms5c").style.visibility = "hidden";
	document.getElementById("spanstock5c").style.visibility = "hidden";
	document.contractForm.pms5c.value = ""
	document.contractForm.stock5c.value = ""
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	document.contractForm.pms6c.value = ""
	document.contractForm.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "4")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "hidden";
	document.getElementById("spanstock5c").style.visibility = "hidden";
	document.contractForm.pms5c.value = ""
	document.contractForm.stock5c.value = ""
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	document.contractForm.pms6c.value = ""
	document.contractForm.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "5")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	document.contractForm.pms6c.value = ""
	document.contractForm.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "6")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	document.contractForm.pms7c.value = ""
	document.contractForm.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "7")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	document.contractForm.pms8c.value = ""
	document.contractForm.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "8")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "visible";
	document.getElementById("spanstock8c").style.visibility = "visible";
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	document.contractForm.pms9c.value = ""
	document.contractForm.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "9")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "visible";
	document.getElementById("spanstock8c").style.visibility = "visible";
	document.getElementById("spanpms9c").style.visibility = "visible";
	document.getElementById("spanstock9c").style.visibility = "visible";
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	document.contractForm.pms10c.value = ""
	document.contractForm.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "10")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "visible";
	document.getElementById("spanstock8c").style.visibility = "visible";
	document.getElementById("spanpms9c").style.visibility = "visible";
	document.getElementById("spanstock9c").style.visibility = "visible";
	document.getElementById("spanpms10c").style.visibility = "visible";
	document.getElementById("spanstock10c").style.visibility = "visible";
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	document.contractForm.pms11c.value = ""
	document.contractForm.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "11")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "visible";
	document.getElementById("spanstock8c").style.visibility = "visible";
	document.getElementById("spanpms9c").style.visibility = "visible";
	document.getElementById("spanstock9c").style.visibility = "visible";
	document.getElementById("spanpms10c").style.visibility = "visible";
	document.getElementById("spanstock10c").style.visibility = "visible";
	document.getElementById("spanpms11c").style.visibility = "visible";
	document.getElementById("spanstock11c").style.visibility = "visible";
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	document.contractForm.pms12c.value = ""
	document.contractForm.stock12c.value = ""
	}
	if (colors == "12")
	{
	document.getElementById("spanpms1c").style.visibility = "visible";
	document.getElementById("spanstock1c").style.visibility = "visible";
	document.getElementById("spanpms2c").style.visibility = "visible";
	document.getElementById("spanstock2c").style.visibility = "visible";
	document.getElementById("spanpms3c").style.visibility = "visible";
	document.getElementById("spanstock3c").style.visibility = "visible";
	document.getElementById("spanpms4c").style.visibility = "visible";
	document.getElementById("spanstock4c").style.visibility = "visible";
	document.getElementById("spanpms5c").style.visibility = "visible";
	document.getElementById("spanstock5c").style.visibility = "visible";
	document.getElementById("spanpms6c").style.visibility = "visible";
	document.getElementById("spanstock6c").style.visibility = "visible";
	document.getElementById("spanpms7c").style.visibility = "visible";
	document.getElementById("spanstock7c").style.visibility = "visible";
	document.getElementById("spanpms8c").style.visibility = "visible";
	document.getElementById("spanstock8c").style.visibility = "visible";
	document.getElementById("spanpms9c").style.visibility = "visible";
	document.getElementById("spanstock9c").style.visibility = "visible";
	document.getElementById("spanpms10c").style.visibility = "visible";
	document.getElementById("spanstock10c").style.visibility = "visible";
	document.getElementById("spanpms11c").style.visibility = "visible";
	document.getElementById("spanstock11c").style.visibility = "visible";
	document.getElementById("spanpms12c").style.visibility = "visible";
	document.getElementById("spanstock12c").style.visibility = "visible";
	}
 }
 function clearStockc()
 {
	 	document.contractForm.stock1c.value = ""
		document.contractForm.stock2c.value = ""
		document.contractForm.stock3c.value = ""
		document.contractForm.stock4c.value = ""
		document.contractForm.stock5c.value = ""
		document.contractForm.stock6c.value = ""
		document.contractForm.stock7c.value = ""
		document.contractForm.stock8c.value = ""
		document.contractForm.stock9c.value = ""
		document.contractForm.stock10c.value = ""
		document.contractForm.stock11c.value = ""
		document.contractForm.stock12c.value = ""
 }
  function clearPMSc()
{
	 	document.contractForm.pms1c.value = ""
		document.contractForm.pms2c.value = ""
		document.contractForm.pms3c.value = ""
		document.contractForm.pms4c.value = ""
		document.contractForm.pms5c.value = ""
		document.contractForm.pms6c.value = ""
		document.contractForm.pms7c.value = ""
		document.contractForm.pms8c.value = ""
		document.contractForm.pms9c.value = ""
		document.contractForm.pms10c.value = ""
		document.contractForm.pms11c.value = ""
		document.contractForm.pms12c.value = ""
}
function addFields(f){ 
 total = 0;
 if (f.youthxs.value && !isNaN(f.youthxs.value))
 total += parseInt(f.youthxs.value);
 if (f.youths.value && !isNaN(f.youths.value))
 total += parseInt(f.youths.value);
 if (f.youthm.value && !isNaN(f.youthm.value))
 total += parseInt(f.youthm.value);
 if (f.youthl.value && !isNaN(f.youthl.value))
 total += parseInt(f.youthl.value);
if (f.adults.value && !isNaN(f.adults.value))
 total += parseInt(f.adults.value);
 if (f.adultm.value && !isNaN(f.adultm.value))
 total += parseInt(f.adultm.value);
 if (f.adultl.value && !isNaN(f.adultl.value))
 total += parseInt(f.adultl.value);
   if (f.adultxl.value && !isNaN(f.adultxl.value))
 total += parseInt(f.adultxl.value);
  if (f.adultxxl.value && !isNaN(f.adultxxl.value))
 total += parseInt(f.adultxxl.value);
if (f.adultxxxl.value && !isNaN(f.adultxxxl.value))
 total += parseInt(f.adultxxxl.value);
 if (f.other.value && !isNaN(f.other.value))
 total += parseInt(f.other.value);
  if( total < 0) f.sum.value = 0; 
 else f.sum.value = total;
 f.sum.value = total; 
 f.totalsum.value = (f.sum.value*1) + (f.sum2.value*1) + (f.sum3.value*1);
 }
 function addFields2(f){ 
 total = 0;
 if (f.youthxs2.value && !isNaN(f.youthxs2.value))
 total += parseInt(f.youthxs2.value);
 if (f.youths2.value && !isNaN(f.youths2.value))
 total += parseInt(f.youths2.value);
 if (f.youthm2.value && !isNaN(f.youthm2.value))
 total += parseInt(f.youthm2.value);
 if (f.youthl2.value && !isNaN(f.youthl2.value))
 total += parseInt(f.youthl2.value);
if (f.adults2.value && !isNaN(f.adults2.value))
 total += parseInt(f.adults2.value);
 if (f.adultm2.value && !isNaN(f.adultm2.value))
 total += parseInt(f.adultm2.value);
 if (f.adultl2.value && !isNaN(f.adultl2.value))
 total += parseInt(f.adultl2.value);
   if (f.adultxl2.value && !isNaN(f.adultxl2.value))
 total += parseInt(f.adultxl2.value);
  if (f.adultxxl2.value && !isNaN(f.adultxxl2.value))
 total += parseInt(f.adultxxl2.value);
if (f.adultxxxl2.value && !isNaN(f.adultxxxl2.value))
 total += parseInt(f.adultxxxl2.value);
 if (f.other2.value && !isNaN(f.other2.value))
 total += parseInt(f.other2.value);

 if(total<0) f.sum2.value = 0; 
 else f.sum2.value = total;
 f.sum2.value = total; 
 f.totalsum.value = (f.sum.value*1) + (f.sum2.value*1) + (f.sum3.value*1);
 }
function addFields3(f){ 
 total = 0;
 if (f.youthxs3.value && !isNaN(f.youthxs3.value))
 total += parseInt(f.youthxs3.value);
 if (f.youths3.value && !isNaN(f.youths3.value))
 total += parseInt(f.youths3.value);
 if (f.youthm3.value && !isNaN(f.youthm3.value))
 total += parseInt(f.youthm3.value);
 if (f.youthl3.value && !isNaN(f.youthl3.value))
 total += parseInt(f.youthl3.value);
if (f.adults3.value && !isNaN(f.adults3.value))
 total += parseInt(f.adults3.value);
 if (f.adultm3.value && !isNaN(f.adultm3.value))
 total += parseInt(f.adultm3.value);
 if (f.adultl3.value && !isNaN(f.adultl3.value))
 total += parseInt(f.adultl3.value);
   if (f.adultxl3.value && !isNaN(f.adultxl3.value))
 total += parseInt(f.adultxl3.value);
  if (f.adultxxl3.value && !isNaN(f.adultxxl3.value))
 total += parseInt(f.adultxxl3.value);
if (f.adultxxxl3.value && !isNaN(f.adultxxxl3.value))
 total += parseInt(f.adultxxxl3.value);
 if (f.other3.value && !isNaN(f.other3.value))
 total += parseInt(f.other3.value);
  if(total < 0) f.sum3.value = 0; 
 else f.sum3.value = total;
 f.sum3.value = total; 
 f.totalsum.value = (f.sum.value*1) + (f.sum2.value*1) + (f.sum3.value*1);
 }
function addGarment(number)
{
	if (number == 1 && (garment2)) {
	document.getElementById("garment1").style.display = ""
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(2);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	document.getElementById("grandTotal").style.visibility = "visible"
	}
	if (number == 2) {
	document.getElementById("garment2").style.display = ""
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(3);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	}
	if (number == 3) {
	document.getElementById("garment3").style.display = ""
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(1);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	}
}
function deleteGarment(number)
{
	var f = document.contractForm
	if (number == 1) {
	document.getElementById("garment1").style.display = "none"
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(1);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	f.totalsum.value = (f.sum2.value*1) + (f.sum3.value*1); 
    f.StyleNo.value = ""
	f.GarmentColor.selectedIndex = "0"
	f.Garment.selectedIndex = "0"
	f.OtherColor.value = ""
	f.OtherSize.value = ""
	f.PricingTypeLight.checked = false;
	f.PricingTypeDark.checked = false;
	f.youth_xs.value = ""
	f.youth_s.value = ""
	f.youth_m.value = ""
	f.youth_l.value = ""
	f.adult_s.value = ""
	f.adult_m.value = ""
	f.adult_l.value = ""
	f.adult_xl.value = ""
	f.adult_xxl.value = ""
	f.adult_xxxl.value = ""
	f.other.value = ""
	f.sum.value = ""
	}
	if (number == 2) {
	document.getElementById("garment2").style.display = "none"
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(2);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	f.totalsum.value = (f.sum.value*1) + (f.sum3.value*1); 
	f.StyleNo2.value = ""
	f.GarmentColor2.selectedIndex = "0"
	f.Garment2.selectedIndex = "0"
	f.OtherColor2.value = ""
	f.OtherSize2.value = ""
	f.PricingTypeLight2.checked = false;
	f.PricingTypeDark2.checked = false;
	f.youth_xs2.value = ""
	f.youth_s2.value = ""
	f.youth_m2.value = ""
	f.youth_l2.value = ""
	f.adult_s2.value = ""
	f.adult_m2.value = ""
	f.adult_l2.value = ""
	f.adult_xl2.value = ""
	f.adult_xxl2.value = ""
	f.adult_xxxl2.value = ""
	f.other2.value = ""
	f.sum2.value = ""
	}
	if (number == 3) {
	document.getElementById("garment3").style.display = "none"
	document.getElementById("addGarment").innerHTML = "<a onClick='addGarment(3);'><img src='../img/addgarment.gif' width='126' height='23'></a>"
	f.totalsum.value = (f.sum.value*1) + (f.sum2.value*1); 
	f.StyleNo3.value = ""
	f.Garment3.selectedIndex = "0"
	f.GarmentColor3.selectedIndex = "0"
	f.OtherColor2.value = ""
	f.OtherSize3.value = ""
	f.PricingTypeLight3.checked = false;
	f.PricingTypeDark3.checked = false;
	f.youth_xs3.value = ""
	f.youth_s3.value = ""
	f.youth_m3.value = ""
	f.youth_l3.value = ""
	f.adult_s3.value = ""
	f.adult_m3.value = ""
	f.adult_l3.value = ""
	f.adult_xl3.value = ""
	f.adult_xxl3.value = ""
	f.adult_xxxl3.value = ""
	f.other3.value = ""
	f.sum3.value = ""
	}
}

function addImprint(number)
{
	if (number == 1 && (imprint2)) {
	document.getElementById("imprint1").style.display = ""
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(2);'><img src='../img/addimprint.gif'></a>"
	document.getElementById("grandTotal").style.visibility = "visible"
	}
	if (number == 2) {
	document.getElementById("imprint2").style.display = ""
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(3);'><img src='../img/addimprint.gif'></a>"
	}
	if (number == 3) {
	document.getElementById("imprint3").style.display = ""
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(1);'><img src='../img/addimprint.gif'></a>"
	}
}
function deleteImprint(number)
{
	var f = document.contractForm
	if (number == 1) {
	document.getElementById("imprint1").style.display = "none"
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(1);'><img src='../img/addimprint.gif'></a>"
	f.imprint.selectedIndex = "0"
	f.numberofColors.selectedIndex = "0"
	f.createmyart.checked = false;
	f.specialimprint.value = ""
	f.pms1.value = ""
	f.stock1.value = ""
	document.getElementById("spanpms2").style.visibility = "hidden";
	document.getElementById("spanstock2").style.visibility = "hidden";
	f.pms2.value = ""
	f.stock2.value = ""
	document.getElementById("spanpms3").style.visibility = "hidden";
	document.getElementById("spanstock3").style.visibility = "hidden";
	f.pms3.value = ""
	f.stock3.value = ""
	document.getElementById("spanpms4").style.visibility = "hidden";
	document.getElementById("spanstock4").style.visibility = "hidden";
	f.pms4.value = ""
	f.stock4.value = ""
	document.getElementById("spanpms5").style.visibility = "hidden";
	document.getElementById("spanstock5").style.visibility = "hidden";
	f.pms5.value = ""
	f.stock5.value = ""
	document.getElementById("spanpms6").style.visibility = "hidden";
	document.getElementById("spanstock6").style.visibility = "hidden";
	f.pms6.value = ""
	f.stock6.value = ""
	document.getElementById("spanpms7").style.visibility = "hidden";
	document.getElementById("spanstock7").style.visibility = "hidden";
	f.pms7.value = ""
	f.stock7.value = ""
	document.getElementById("spanpms8").style.visibility = "hidden";
	document.getElementById("spanstock8").style.visibility = "hidden";
	f.pms8.value = ""
	f.stock8.value = ""
	document.getElementById("spanpms9").style.visibility = "hidden";
	document.getElementById("spanstock9").style.visibility = "hidden";
	f.pms9.value = ""
	f.stock9.value = ""
	document.getElementById("spanpms10").style.visibility = "hidden";
	document.getElementById("spanstock10").style.visibility = "hidden";
	f.pms10.value = ""
	f.stock10.value = ""
	document.getElementById("spanpms11").style.visibility = "hidden";
	document.getElementById("spanstock11").style.visibility = "hidden";
	f.pms11.value = ""
	f.stock11.value = ""
	document.getElementById("spanpms12").style.visibility = "hidden";
	document.getElementById("spanstock12").style.visibility = "hidden";
	f.pms12.value = ""
	f.stock12.value = ""
	}
	if (number == 2) {
	document.getElementById("imprint2").style.display = "none"
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(2);'><img src='../img/addimprint.gif'></a>"
	f.imprintb.selectedIndex = "0"
	f.numberofColorsb.selectedIndex = "0"
	f.createmyartb.checked = false;
	f.specialimprintb.value = ""
	f.pms1b.value = ""
	f.stock1b.value = ""
	document.getElementById("spanpms2b").style.visibility = "hidden";
	document.getElementById("spanstock2b").style.visibility = "hidden";
	f.pms2b.value = ""
	f.stock2b.value = ""
	document.getElementById("spanpms3b").style.visibility = "hidden";
	document.getElementById("spanstock3b").style.visibility = "hidden";
	f.pms3b.value = ""
	f.stock3b.value = ""
	document.getElementById("spanpms4b").style.visibility = "hidden";
	document.getElementById("spanstock4b").style.visibility = "hidden";
	f.pms4b.value = ""
	f.stock4b.value = ""
	document.getElementById("spanpms5b").style.visibility = "hidden";
	document.getElementById("spanstock5b").style.visibility = "hidden";
	f.pms5b.value = ""
	f.stock5b.value = ""
	document.getElementById("spanpms6b").style.visibility = "hidden";
	document.getElementById("spanstock6b").style.visibility = "hidden";
	f.pms6b.value = ""
	f.stock6b.value = ""
	document.getElementById("spanpms7b").style.visibility = "hidden";
	document.getElementById("spanstock7b").style.visibility = "hidden";
	f.pms7b.value = ""
	f.stock7b.value = ""
	document.getElementById("spanpms8b").style.visibility = "hidden";
	document.getElementById("spanstock8b").style.visibility = "hidden";
	f.pms8b.value = ""
	f.stock8b.value = ""
	document.getElementById("spanpms9b").style.visibility = "hidden";
	document.getElementById("spanstock9b").style.visibility = "hidden";
	f.pms9b.value = ""
	f.stock9b.value = ""
	document.getElementById("spanpms10b").style.visibility = "hidden";
	document.getElementById("spanstock10b").style.visibility = "hidden";
	f.pms10b.value = ""
	f.stock10b.value = ""
	document.getElementById("spanpms11b").style.visibility = "hidden";
	document.getElementById("spanstock11b").style.visibility = "hidden";
	f.pms11b.value = ""
	f.stock11b.value = ""
	document.getElementById("spanpms12b").style.visibility = "hidden";
	document.getElementById("spanstock12b").style.visibility = "hidden";
	f.pms12b.value = ""
	f.stock12b.value = ""
	}
	if (number == 3) {
	document.getElementById("imprint3").style.display = "none"
	document.getElementById("addImprint").innerHTML = "<a onClick='addImprint(3);'><img src='../img/addimprint.gif'></a>"
	f.imprintc.selectedIndex = "0"
	f.numberofColorsc.selectedIndex = "0"
	f.createmyartc.checked = false;
	f.specialimprintc.value = ""
	f.pms1c.value = ""
	f.stock1c.value = ""
	document.getElementById("spanpms2c").style.visibility = "hidden";
	document.getElementById("spanstock2c").style.visibility = "hidden";
	f.pms2c.value = ""
	f.stock2c.value = ""
	document.getElementById("spanpms3c").style.visibility = "hidden";
	document.getElementById("spanstock3c").style.visibility = "hidden";
	f.pms3c.value = ""
	f.stock3c.value = ""
	document.getElementById("spanpms4c").style.visibility = "hidden";
	document.getElementById("spanstock4c").style.visibility = "hidden";
	f.pms4c.value = ""
	f.stock4c.value = ""
	document.getElementById("spanpms5c").style.visibility = "hidden";
	document.getElementById("spanstock5c").style.visibility = "hidden";
	f.pms5c.value = ""
	f.stock5c.value = ""
	document.getElementById("spanpms6c").style.visibility = "hidden";
	document.getElementById("spanstock6c").style.visibility = "hidden";
	f.pms6c.value = ""
	f.stock6c.value = ""
	document.getElementById("spanpms7c").style.visibility = "hidden";
	document.getElementById("spanstock7c").style.visibility = "hidden";
	f.pms7c.value = ""
	f.stock7c.value = ""
	document.getElementById("spanpms8c").style.visibility = "hidden";
	document.getElementById("spanstock8c").style.visibility = "hidden";
	f.pms8c.value = ""
	f.stock8c.value = ""
	document.getElementById("spanpms9c").style.visibility = "hidden";
	document.getElementById("spanstock9c").style.visibility = "hidden";
	f.pms9c.value = ""
	f.stock9c.value = ""
	document.getElementById("spanpms10c").style.visibility = "hidden";
	document.getElementById("spanstock10c").style.visibility = "hidden";
	f.pms10c.value = ""
	f.stock10c.value = ""
	document.getElementById("spanpms11c").style.visibility = "hidden";
	document.getElementById("spanstock11c").style.visibility = "hidden";
	f.pms11c.value = ""
	f.stock11c.value = ""
	document.getElementById("spanpms12c").style.visibility = "hidden";
	document.getElementById("spanstock12c").style.visibility = "hidden";
	f.pms12c.value = ""
	f.stock12c.value = ""
	}
}

function selectDark()
{
  var button = window.document.contractForm.PricingTypeLight;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeLight.checked = false;
  }
}
function selectLight()
{
  var button = window.document.contractForm.PricingTypeDark;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeDark.checked = false;
  }
}
function selectDark2()
{
  var button = window.document.contractForm.PricingTypeLight2;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeLight2.checked = false;
  }
}
function selectLight2()
{
  var button = window.document.contractForm.PricingTypeDark2;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeDark2.checked = false;
  }
}
function selectDark3()
{
  var button = window.document.contractForm.PricingTypeLight3;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeLight3.checked = false;
  }
}
function selectLight3()
{
  var button = window.document.contractForm.PricingTypeDark3;
  if (button.checked == true) 
  {
    window.document.contractForm.PricingTypeDark3.checked = false;
  }
}
function focusLine(field)
{
	if (document.contractForm[field].value) {
		document.contractForm[field].value = ""
	}
}
function clearGarment(field)
{
	document.contractForm[field].selectedIndex = "0"
}
function showPricing()
{	
	document.getElementById("OtherColorChoice").style.visibility = "visible"
}
function hidePricing()
{
	var f = document.contractForm
	document.getElementById("OtherColorChoice").style.visibility = "hidden"
	f.pricing.value = ""
	f.OtherColor.value = ""
	f.PricingTypeLight.checked = false;
	f.PricingTypeDark.checked = false;
}
function showPricing2()
{	
	document.getElementById("OtherColorChoice2").style.visibility = "visible"
}
function hidePricing2()
{
	var f = document.contractForm
	document.getElementById("OtherColorChoice2").style.visibility = "hidden"
	f.pricing2.value = ""
	f.OtherColor2.value = ""
	f.PricingTypeLight2.checked = false;
	f.PricingTypeDark2.checked = false;
}
function showPricing3()
{	
	document.getElementById("OtherColorChoice3").style.visibility = "visible"
}
function hidePricing3()
{
	var f = document.contractForm
	document.getElementById("OtherColorChoice3").style.visibility = "hidden"
	f.pricing3.value = ""
	f.OtherColor3.value = ""
	f.PricingTypeLight3.checked = false;
	f.PricingTypeDark3.checked = false;
}
function clearSpecialPlace(field)
{
	if (document.contractForm[field].value) {
		document.contractForm[field].value = ""
	}
}
function clearPlacement(field)
{
	document.contractForm[field].selectedIndex = "0"
}
function setField(field, someValue)
{
	if (document.contractForm[field].value) {
		document.contractForm[field].value = ""
	}
	else document.contractForm[field].value = [someValue]
}
function setPricing(field, someValue)
{
	document.contractForm[field].value = [someValue]
}
function setFilename(namefield, filefield)
{
	document.contractForm[namefield].value = document.contractForm[filefield].value 
}
function verify() 
{
	var themessage = "You are required to complete the following fields: ";
	if (document.contractForm.dbCompany.value=="") {
		themessage = themessage + " -  Company";
	}
	if (document.contractForm.dbContactName.value=="") {
		themessage = themessage + " - Contact Name";
	}
	if (document.contractForm.dbEmailAddress.value=="") {
		themessage = themessage + " -  Email";
	}
	//alert if fields are empty and cancel form submit
	if (themessage == "You are required to complete the following fields: ") {
		document.contractForm.submit();
	}
	else {
		alert(themessage);
		return false;
   }
}
function validate(string) {
    if (!string) return false;
    var Chars = "0123456789";
    for (var i = 0; i < string.length; i++) {
    if (Chars.indexOf(string.charAt(i)) == -1)
          return false;
    }
    return true;
} 
function validatePhone(string) {
    if (!string) return false;
    var Chars = "().-0123456789 ";
    for (var i = 0; i < string.length; i++) {
    if (Chars.indexOf(string.charAt(i)) == -1)
          return false;
    }
    return true;
}
function validateState(string) {
    if (!string) return false;
    var Chars = "QWERTYUIOPASDFGHJKLZXCVBNMqwertyuiopasdfghjkllzxcvbnm";
    for (var i = 0; i < string.length; i++) {
    if (Chars.indexOf(string.charAt(i)) == -1)
          return false;
    }
    return true;
} 
	var time = null
	function move() {
 	window.location = 'http://www.pdacoolstuff.com/order/contractorder.htm'
 }
 
function divide_string(field, hiddenfield) {
	var filename = document.contractForm[field].value
	array = filename.split("/");
	array.reverse( )
	document.contractForm[hiddenfield].value = array[0]
}

var lastID = null;

function menu_hoverOn(id) {
	if(id!=lastID) {
		var menuElement = this.document.getElementById(id);
		var submenuElement = this.document.getElementById(id + 'Submenu');
	
		if(lastID) {
			var lastMenuElement = this.document.getElementById(lastID);
			var lastSubmenuElement = this.document.getElementById(lastID + 'Submenu');
			lastSubmenuElement.style.display = "none";
			lastSubmenuElement.style.visibility = "hidden";
			lastMenuElement.style.color = "";
		}
		
		lastID = id;

		submenuElement.style.display = "block";
		submenuElement.style.visibility = "visible";
		
		switch(id) {
			case 'home':
				menuElement.style.color = "#FFAE59";
				submenuElement.style.left = "0px";
				break;
			case 'services':
				menuElement.style.color = "#4689BD";
				submenuElement.style.left = "0px";
				break;
			case 'products':
				menuElement.style.color = "#7EBC69";
				submenuElement.style.color = "#7EBC69";
				submenuElement.style.left = "0px";
				//submenuElement.style.backgroundColor = "#3399FF";
				break;
			case 'about':
				menuElement.style.color = "#0099FF";
				submenuElement.style.color = "#0099FF";
				//submenuElement.style.backgroundColor = "#3399FF";
				submenuElement.style.left = "125px";
				break;
			case 'contact':
				menuElement.style.color = "#996699";
				submenuElement.style.color = "#996699";
				//submenuElement.style.backgroundColor = "#3399FF";
				submenuElement.style.left = "175px";
				break;
			default:
				break;
		}
	}
}

function menu_hoverOff(id) {
	/*
	alert("comparing " + id + " and " + lastID);
	if(id!=lastID) {
		if(lastID) {
			var lastMenuElement = this.document.getElementById(lastID);
			var lastSubmenuElement = this.document.getElementById(lastID + 'Submenu');
			lastSubmenuElement.style.display = "none";
			lastSubmenuElement.style.visibility = "hidden";
			lastMenuElement.style.color = "";
		}
		alert("setting lastID to " + id);
		lastID = id;
	}
	else{
		alert("they were equal!");
	}
	*/
}