var title = [];
title[1] = "<span class='learnAboutHeader'>Size:</span><br><span class='learnAboutText'><br>All card are made of two parts, a credit card size bottom that is always 3 3/8&quot; wide by 2 1/8 high and the hanging part above. The hanging part varies in size from 5&quot; high down to 7/8&quot; high.</span>";
title[2] = "<p><span class='learnAboutHeader'>Artwork Versions:</span><br><span class='learnAboutText'><br>If needed, we can print different artwork (front and/or back) for every 10,000 cards. Changing the artwork during the print process requires additional printing plates at an additional cost. Cost is calculated and added to the total when selecting the &quot; Artwork Versions&quot; field.</span>";
title[3] = "<p><span class='learnAboutHeader'>Color:</span><br><span class='learnAboutText'><br>Card fronts are always printed with four colors (CMYK) even if the artwork is one color. The card back is printed one color (Black). </span>";
title[4] = "<p><span class='learnAboutHeader'>PIN Numbering, Scratch-Off and Mag Stripe</span><br><span class='learnAboutText'><br>PIN Scratch-Off: A covered variable alpha numeric print that is uncovered (scratched off) by the end user with a coin or fingernail. <br>Mag Stripe: magnetic strip that stores digital data that is readable in a card reader. The data is encoded onto the strip during the print process.<br>You can select to have both a PIN Scratch-off and Mag Stripe, one or the other or none. </span>";
title[5] = "<p><span class='learnAboutHeader'>Batching:</span><br><span class='learnAboutText'><br>For ease of handling and tracking the cards will be batched in plastic wrapping. The standard is 100 cards per wrap (batch), but other batch quantities are available too at an additional cost (50, 25,20, 12 and 10).</span>";
function learnText(selection){
	document.getElementById("learn").innerHTML= title[selection];
}
var POSAcardtemplate = [];
POSAcardtemplate[1] = "HangingTemplate7_125inch.pdf";
POSAcardtemplate[2] = "HangingTemplate5inch.pdf";
POSAcardtemplate[3] = "HangingTemplate4inch.pdf";
POSAcardtemplate[4] = "HangingTemplate3inch.pdf";
function POSAtemplate(){
	if(document.form1.cardTypeNumber.selectedIndex == 0){
		window.alert("First Select the Card Size");
		document.form1.cardTypeNumber.focus();
	}else{
		window.open("cardTemplates/" + POSAcardtemplate[document.form1.cardTypeNumber.selectedIndex], "blank","toolbar=yes, resizable=yes");
	}	
}

function checkForm(formObj) {
     var formOK = true;
      if (formObj.cardTypeNumber.value == "0") {
       window.alert("Please select a Card Size.");
       formObj.cardTypeNumber.focus();
       formOK = false;
	   return;
     }
      if (formObj.thick.value == "0") {
       window.alert("Please select a Card Thickness.");
       formObj.thick.focus();
       formOK = false;
	   return;
     }
      if (formObj.quant.value == "0") {
       window.alert("Please select a quantity.");
       formObj.quant.focus();
       formOK = false;
	   return;
     }
	  if (formObj.pin_mag.selectedIndex == 0) {
       window.alert("Please select an option for Magnetic Stripe and/or Scratch-Off");
       formObj.pin_mag.focus();
       formOK = false;
	   return;
     }
	  if (formOK){formObj.submit();}
}   
var imageList = new Array;
imageList[0] = new Image;
imageList[0].src = "images/POSA-select.jpg";
imageList[1] = new Image;
imageList[1].src = "images/POSA_7inch.jpg";
imageList[2] = new Image;
imageList[2].src = "images/POSA_5inch.jpg";
imageList[3] = new Image;
imageList[3].src = "images/POSA_4inch.jpg";
imageList[4] = new Image;
imageList[4].src = "images/POSA_3inch.jpg";
imageList[5] = new Image;
imageList[5].src = "images/POSA_doubleCr80.jpg";

function changeImage(thisform){
	if(thisform.cardTypeNumber.selectedIndex == 0){
		document.POSACardImage.src = imageList[0].src;
		}
	if(thisform.cardTypeNumber.selectedIndex == 1){
		document.POSACardImage.src = imageList[1].src;
		}
	if(thisform.cardTypeNumber.selectedIndex == 2){
		document.POSACardImage.src = imageList[2].src;
		}
	if(thisform.cardTypeNumber.selectedIndex == 3){
		document.POSACardImage.src = imageList[3].src;
		}
	if(thisform.cardTypeNumber.selectedIndex == 4){
		document.POSACardImage.src = imageList[4].src;
		}
	if(thisform.cardTypeNumber.selectedIndex == 5){
		document.POSACardImage.src = imageList[5].src;
		}
}
function doNothing(){
 return false;
 }	
