var titleCP = [];
titleCP[1] = "<p><span class='learnAboutHeader'>Color:</span><br><span class='learnAboutText'><br>We print our cards using one or two of the following methods:<br><br>Method 1. CMYK (aka 4 Color Process) is an acronym referring to the four printing colors of <b><font color='#00aeef'>Cyan</font></b>, <b><font color='#ec008c'>Magenta</font></b>, <b><font color='#FFF200'>Yellow</font></b> and <b><font color='#000000'>Black</font></b>. This method blends four colors to create almost any color combination. All pictures are printed using this method. Artwork designed in applications such as Adobe PhotoShop has the ability to produce a CMYK image for printing.<br><br>Method 2. SPOT COLOR (such as Pantone Colors) uses specific inks that are premixed to print an exact color. When exact solid colors, colors that can not be reproduced with a CMYK mix or metallic colors are required, or when there are only one to three exact colors in the artwork, the spot color system is used. To print spot colors the artwork must be created in a vector-based application such as Adobe Illustrator. Black and white images can be colored (single or gradient) with spot colors when imported into a vector-based application. When selecting spot colors use only the Pantone Solid Coated color palette.<br><br>A mix of CMYK and spot colors is possible at an additional cost.";
titleCP[2] = "<p><span class='learnAboutHeader'>Embossing</span><br><span class='learnAboutText'><br>Raised lettering and numbers on the front of the card tipped in Silver or Gold colors. Information can be variable (different on each card) or static.<br>The fonts used to create the embossing are OCR and Ariel. Font Sizes: OCR, 18 pt, Up to 19 characters per line (credit card numbers) <br>Ariel, 12 pt,Up to 28 characters per line (text) <br>Variable data (if used) must be submitted in an Excel or Text file.<br>Indicate text placement on artwork.<br>If design is done in Illustrator do not outline fonts.<br>In PhotoShop keep the embossing on a separate layer.<br>In Quark set the text like any other text (colored in Magenta).<br>Control (consecutive) numbering is required on all embossing prints.</span>";
titleCP[3] = "<p><span class='learnAboutHeader'>Mag Sripes</span><br><span class='learnAboutText'><br>Mag Stripes (aka Magnetic Stripes) are strips that store data on the back of a card. The data on the strip is readable when the card is passed through a reader like a POS terminal. The data can be encoded onto the card during the printing process or left blank to be encoded by the customer.<br><br>Two types of Mag Stripes are available: HiCo and LoCo. HiCo stands for High Coercivity and is used on credit cards or other high-use cards. LoCo stands for Low Coercivity and is used for cards that are not used often, such as Gift Cards.<br><br>Mag stripes of may be 1/2\" in height allowing for up to three tracks of data or 5/16\" in height allowing for up to two tracks of data.<br><br>When encoding is required a consecutive number is printed on each card that corresponds to the encoded data. All data files (encoding data and corresponding control numbers) are handled in a secure environment and on secure servers and computers.<br><br>The equipment you will be using determines the correct type and size of Mag Stripe needed to read the cards.</span>";
titleCP[4] = "<p><span class='learnAboutHeader'>Bar Codes</span><br><span class='learnAboutText'><br>A Bar Code is a graphic representation of a number and/or letters that is readable by a scanner; the actual numbering/letters are usually printed above or below the bar code. There are three common types of bar codes: Type 128, Type 39 and UPC.<br><br>For variable data (every card having a unique bar code) Type 128 and Type 39 are most popular. When all the cards have the same bar code (a “static” bar code), a UPC is usually used. When a static bar code is used, it is considered to be a part of the artwork that makes up the card and does not require additional cost.<br><br>The type of scanner and the application that processes the data determines the actual bar code needed. A consecutive number is printed on each card that corresponds to the barcode numbers. This ensures 100% production, and the ability to reprint cards if any are damaged.</span>";
titleCP[5] = "<p><span class='learnAboutHeader'>Scratch-Offs</span><br><span class='learnAboutText'><br>Scratch-offs are areas on the back of the card that conceal readable information (PIN) until scratched off with a coin or fingernail. The information is usually variable (different on each card) and can be made up of numbers and/or letters that are ink jetted onto the card during the printing process. The scratch-off itself can be of one of two types, Label or Hot Stamp.  The difference is in the level of security each type offers, Labels are lower in security and are recommended for fund raisers, raffles, contests, marketing mailings etc., Hot Stamp is higher in security and is recommended for phone cards, pre-paid cards, lotteries etc. <br>To ensure 100% production and to be able to reprint cards if some are damaged a consecutive number is printed on each card that corresponds to the concealed numbers under the scratch-off. All data files (concealed numbers and corresponding control numbers) are handled in a secure environment and on secure servers and computers.</span>";
titleCP[6] = "<p><span class='learnAboutHeader'>Signature Panels</span><br><span class='learnAboutText'><br>A Signature Panel is an area or areas on the card that are writable with a ballpoint pen.   </span>";
titleCP[7] = "<p><span class='learnAboutHeader'>Materials</span><br><span class='learnAboutText'><br><b>PVC</b> is a durable plastic with a long life span (credit cards are PVC).<br><br><b>Styrene</b> is a low cost plastic alternative with a shorter life span than PVC. Both PVC and Styrene will have the same look in respect to the printing of graphics.<br><br><b>Clear PVC</b> is a transparent version of PVC that is used to create cards with see-through areas.</span>";

function getText(selection) {
    if (titleCP[selection].indexOf('<br>') >= 0)
        return titleCP[selection].substring(titleCP[selection].indexOf('</span><br>')+11);
    else
        return titleCP[selection];
}

function learnText(selection){
	document.getElementById("learn").innerHTML= titleCP[selection];
}
function checkForm(formObj) {
	var formOK = true;
    if (formObj.material.value == "0") {
       	window.alert("Please select a material.");
       	formObj.material.focus();
       	formOK = false;
	   	return;
     	}
	if (formObj.magType.value != "0") {
		formObj.cardTypeNumber.value = "2";
		formObj.cardtype.value = "Standard Credit Card Size with Mag Stripe";
		}
	if(formObj.encode[0].checked && formObj.consec[1].checked){
   		formObj.consec[0].checked = true;
   		alert ("Encoding requires consecutive numbering. Next item is changed to Inkjet Concecutive Numbering.");
		document.numbering.src = imageList[11].src;
		return;
   		}		
	if(formObj.embos.selectedIndex > 0 && formObj.consec[1].checked){
   		formObj.consec[0].checked = true;
   		alert ("Embossing requires consecutive numbering. Inkjet Concecutive Numbering is activated.");
		document.numbering.src = imageList[11].src;
   		return;
   		}
	if (formObj.embos.selectedIndex > 0 && formObj.material.selectedIndex != 2){
	  	document.form1.material.selectedIndex = 2;
		formObj.consec[0].checked = true;
		window.alert("Embossing is available on White PVC material ONLY. Material has been changes to White PVC");
		formOK = false;
	  	return;
	  	}
      if (formObj.quant.value == "0") {
       window.alert("Please select a quantity.");
       formObj.quant.focus();
       formOK = false;
	   return;
     }
	  if (formOK){formObj.submit();}
}
function scratchList1(list) {
         list.length = 3;
         list.options[0].text = "None";
         list.options[0].value = "0";
         list.options[1].text = "Ink Jet: PIN & Control w/Scratch Off label";
         list.options[1].value = "scrch1";
         list.options[2].text = "Ink Jet: PIN & Control w/Hot Stamp Scratch Off";
         list.options[2].value = "scrch2";
      }
function scratchList2(list) {
         list.length = 2;
		 list.options[0].text = "None";
         list.options[0].value = "0";
         list.options[1].text = "Ink Jet: PIN & Control w/Scratch Off label";
         list.options[1].value = "scrch1";
      }
function thickList1(list) {
         list.length = 2;
         list.options[0].text = ".024\"";
		 list.options[0].value = "1";
         list.options[1].text = ".030\"";
		 list.options[1].value = "2";
}
function thickList2(list) {
         list.length = 1;
         list.options[0].text = ".030\"";
		 list.options[0].value = "2";
}
		 
		 
function updateScratch(thisForm) {
		if (thisForm.material.selectedIndex == 1 || thisForm.material.selectedIndex == 2){
			window.location="CR80-plastic-card-printing.html";
			}
		if (thisForm.material.selectedIndex == 4){
			window.location="CR80-paper-scratch-cards.html";
			}
		
}
function doNothing(){
 return false;
 }
function backToRegularPlasic(thisForm) {
 var var1 = thisForm.material.selectedIndex.value;
 location.href = location.href+'?var1='+var1;
}

