function updateLogin()
{
	document.login.email_address.value = document.login['login-email-'+document.login.userid.value].value;
	document.login.username.value = document.login['login-username-'+document.login.userid.value].value;
	document.login.password.value = document.login['login-password-'+document.login.userid.value].value;
	//alert(document.login.email_address.value);
	//alert(document.login.password.value);
	document.login.submit();	
	return false;	
}

function proofingLogin()
{
	document.proofingmadeeasy.username.value = document.login['login-username-'+document.login.userid.value].value;
	document.proofingmadeeasy.password.value = document.login['login-password2-'+document.login.userid.value].value;
	alert(document.proofingmadeeasy.username.value);
	alert(document.proofingmadeeasy.password.value);
	document.proofingmadeeasy.submit();
	return false;
}

function submitenter(myfield,e)
{
	var keycode;
	if (window.event){
		keycode = window.event.keyCode;
	} else if (e) {
		keycode = e.which;
	} else {
		return true;
	}
	
	if (keycode == 13){
	   sendFilter();
	   return false;
	} else {
	   return true;
	}
}

function alertPromo($box)
{
	if($box.checked){
		alert('Note: All self promos will be audited for compliance. Adjusted price will appear on your Final Invoice.');
	}
}

function submitenter2(myfield,e)
{
	var keycode;
	if (window.event){
		keycode = window.event.keyCode;
	} else if (e) {
		keycode = e.which;
	} else {
		return true;
	}
	
	if (keycode == 13){
	   sendArtworkFilter()
	   return false;
	} else {
	   return true;
	}
}

function validatePO($id)
{
	$pofield = 'newpo' + $id;
	if(document.getElementById($pofield).value=='' || document.getElementById($pofield).value=='(enter PO#)') {
		$error = "Must enter a New PO#\n";
	} else {
		$error = '';	
	}
	if($error!='') {
		alert($error);
	} else {
		window.location = 'reorder.php?order='+$id+'&po='+document.getElementById($pofield).value;	
	}
}

function validatePO2($id)
{
	var $pofield = 'ponumber' + $id;
	var $emailfield = 'email' + $id;
	var $qty = document.reordering['quantity' + $id].value;
	var $isRep = document.getElementById('isRep').value;
	var $productionfield = document.reordering['production' + $id];
	var $error = '';
	
	for (var i=0; i < $productionfield.length; i++) {
		if ($productionfield[i].checked) {
		   var $production = $productionfield[i].value;
		}
    }
	
	if(document.getElementById($pofield).value=='') {
		$error += "Must enter a New PO#\n";
	}
	if(document.getElementById($emailfield).value=='') {
		$error += "Must enter an email address\n";
	}
	if($qty=='') {
		$error += "Must enter a Quantity\n";
	}

	if($error!='') {
		alert($error);
	} else {
		window.location = 'reorder.php?order='+$id+'&po='+document.getElementById($pofield).value+'&qty='+$qty+'&email='+document.getElementById($emailfield).value+'&production='+$production+'&isRep='+$isRep;	
	}
}

function valbutton(qty,qmin,qmax) 
{
	alertMessage = "";
	
	// Check for Unique Required Fields
	LeashNeopreneColor = false;
	LeashImprintColor = false;
	KitColor = false;
	PadPrintColor = false;
	for(i=0; i<document.cart_quantity.elements.length; i++)
	{
		if(document.cart_quantity.elements[i].name == "id[12][67]")
		{
			LeashNeopreneColor = true;
		}
		if(document.cart_quantity.elements[i].name == "id[13][74]")
		{
			LeashImprintColor = true;
		}	
		if(document.cart_quantity.elements[i].name == "id[11][51]")
		{
			KitColor = true;
		}
		if(document.cart_quantity.elements[i].name == "id[10][34]")
		{
			PadPrintColor = true;
		}
	}
	if(LeashNeopreneColor){ 
		validatedLNC = false;
		if (document.cart_quantity["id[12][57]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][59]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][60]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][61]"].checked == true){validatedLNC = true;}
		/*if (document.cart_quantity["id[12][62]"].checked == true){validatedLNC = true;}*/
		if (document.cart_quantity["id[12][63]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][64]"].checked == true){validatedLNC = true;}
		/*if (document.cart_quantity["id[12][65]"].checked == true){validatedLNC = true;}*/
		if (document.cart_quantity["id[12][66]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][67]"].checked == true){validatedLNC = true;}
		/*if (document.cart_quantity["id[12][68]"].checked == true){validatedLNC = true;}*/
		if (document.cart_quantity["id[12][69]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][70]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][71]"].checked == true){validatedLNC = true;}
		if (document.cart_quantity["id[12][72]"].checked == true){validatedLNC = true;}
		if(!validatedLNC)
		{
			alertMessage += 'Missing field: "Leash Neoprene Color:"\n';
		}
	}
	if(LeashImprintColor){ 
		validatedLIC = false;
		if (document.cart_quantity["id[13][73]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][74]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][75]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][76]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][77]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][78]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][79]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][93]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][94]"].checked == true){validatedLIC = true;}
		if (document.cart_quantity["id[13][95]"].checked == true){validatedLIC = true;}
		if(!validatedLIC)
		{
			alertMessage += 'Missing field: "Leash Imprint Color:"\n';
		}
	}
	if(KitColor){ 
		validatedKC = false;
		if (document.cart_quantity["id[11][40]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][41]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][42]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][43]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][44]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][45]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][46]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][47]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][48]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][49]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][50]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][51]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][52]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][53]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][54]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][55]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][96]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][100]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][101]"].checked == true){validatedKC = true;}
		if (document.cart_quantity["id[11][102]"].checked == true){validatedKC = true;}
		if(!validatedKC)
		{
			alertMessage += 'Missing field: "Bottle Imprint Color:"\n';
		}
	}
	if(PadPrintColor){ 
		validatedPPC = false;
		if (document.cart_quantity["id[10][23]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][24]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][25]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][26]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][27]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][28]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][29]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][31]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][32]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][33]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][34]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][35]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][36]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][37]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][38]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][39]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][82]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][97]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][98]"].checked == true){validatedPPC = true;}
		if (document.cart_quantity["id[10][99]"].checked == true){validatedPPC = true;}
		if (!validatedPPC)
		{
			alertMessage += 'Missing field: "Pad Print Color:"\n';
		}
	}
	
	// Check Min/Max Quantity
	if(qmin > qty || qty > qmax) {
		alertMessage += 'Invalid Quantity (min: '+qmin+', max: '+qmax+')\n';
	}
	
	// Check for Uploaded Artwork
	if (document.cart_quantity["id[txt_4]"].value=="" && document.cart_quantity.txt_upload_1.value=="")
	{
		alertMessage += 'Missing field: "Upload artwork:"\n';
	} else {
		if(document.cart_quantity.txt_upload_1.value=="") {
			$imageFile = document.cart_quantity["id[txt_4]"].value;
			$fileExt = $imageFile.substring($imageFile.length-3,$imageFile.length);
			//if($fileExt=='.ai' || $fileExt=='eps' || $fileExt=='pdf' || $fileExt=='jpg' || $fileExt=='tif' || $fileExt=='.AI' || $fileExt=='EPS' || $fileExt=='PDF' || $fileExt=='JPG' || $fileExt=='TIF') {
				// do nothing
			//} else {
				//alertMessage += 'Invalid Artwork File. (Must be EPS, AI, PDF, or JPG)\n' + $fileExt;
			//}
		}
	}
	// Check for P.O. #
	if (document.cart_quantity["id[txt_18]"].value == "")
	{
		alertMessage += 'Missing field: "Purchase Order #:"\n';
	}
	// Check for Logo
	if (document.cart_quantity["id[txt_20]"].value == "")
	{
		alertMessage += 'Missing field: "Logo Name:"\n';
	}
	// Check for Email Address
	if (document.cart_quantity["id[txt_16]"].value == "")
	{
		alertMessage += 'Missing field: "Where to send proof:"\n';
	} else {
		//if(document.cart_quantity["id[txt_16]"].value.indexOf(".") <= 2 || document.cart_quantity["id[txt_16]"].value.indexOf("@") <=0)
		if(document.cart_quantity["id[txt_16]"].value.indexOf("@") <=0)
		{
			alertMessage += 'Invalid Email Address\n';
		}
	}
	// Check for List Spot Colors
	productionTime = false;
	if(document.cart_quantity["id[14]"]!=null){
		for (i=document.cart_quantity["id[14]"].length-1; i > -1; i--) {
			if (document.cart_quantity["id[14]"][i].checked) {
				//alert(document.cart_quantity["id[14]"][i].value);
				if(document.cart_quantity["id[14]"][i].value == 86) {
					if(document.cart_quantity["id[txt_6]"].value == "" || document.cart_quantity["id[txt_7]"].value == "") {
						alertMessage += 'Please specify your Label Colors\n';
					}
				}
			}
		}
	}
	
	// Check for Production Time
	productionTime = false;
	for (i=document.cart_quantity["id[3]"].length-1; i > -1; i--) {
		if (document.cart_quantity["id[3]"][i].checked) {
			productionTime = true;
		}
	}
	if(document.cart_quantity["id[30]"]!=null) {	
		for (i=document.cart_quantity["id[30]"].length-1; i > -1; i--) {
			if (document.cart_quantity["id[30]"][i].checked) {
				productionTime = true;
			}
		}
	}
	if (productionTime == false)
	{
		alertMessage += 'Missing field: "Production Time:" or "3-2-1 Digital Express:"\n';
	}
		
	if (alertMessage != "")
	{
		alert(alertMessage);
		return false;
	} else {
		// enable the first color free options
		if(document.getElementById('attrib-10-118')!=null) document.getElementById('attrib-10-118').disabled = false;
		if(document.getElementById('attrib-13-119')!=null) document.getElementById('attrib-13-119').disabled = false;
		if(document.getElementById('attrib-11-120')!=null) document.getElementById('attrib-11-120').disabled = false;
		// enable the PO number
		if(document.getElementById('attrib-18-0')!=null) document.getElementById('attrib-18-0').disabled = false;
		// enable quantity
		if(document.cart_quantity.cart_quantity!=null) document.cart_quantity.cart_quantity.disabled = false;
		return true;	
	}
}

function validateZip($field, $loc)
{
	message = "";
	var ValidChars = "0123456789- ";
	var IsNumber=true;
	var Char;
	//if ($field.length!=5 && $field.length!=7 && $field.length!=10) {
	if ($field.length < 5) {
		message += "Location #"+$loc+" - Invalid Length of Zip Code\n";
	}
	/*
	if(message=="")
	{
		for (i = 0; i < $field.length && IsNumber == true; i++) 
		{ 
			Char = $field.charAt(i); 
			if (ValidChars.indexOf(Char) == -1) 
			{
				message += "Location #"+$loc+" - Invalid Characters in Zip Code\n";
				break;
			}
		}
	}
	*/
	return message;
}

function validateAddress($loc)
{
	message = "";
	/*
	if(document.checkout_address["dropship_company_name_"+$loc].value=="")
	{
		message += "Location #"+$loc+" - Missing Company Name\n";
	}
	*/
	if(document.checkout_address["dropname_address_"+$loc].value=="")
	{
		message += "Location #"+$loc+" - Missing Address\n";
	}
	if(document.checkout_address["dropship_city_"+$loc].value=="")
	{
		message += "Location #"+$loc+" - Missing City\n";
	}
	if(document.checkout_address["dropship_state_"+$loc].value=="")
	{
		if (document.checkout_address["dropship_country_"+$loc].value == "US")
		{
			message += "Location #"+$loc+" - Missing State\n";
		}
	}
	return message;
}

function checkCountry($i) {
	if (document.checkout_address["dropship_country_"+$i].value == "US")
	{
		document.getElementById("state1_"+$i).style.display = "block";
		document.getElementById("state1_"+$i).name = "dropship_state_"+$i;
		document.getElementById("state2_"+$i).style.display = "none";
		document.getElementById("state2_"+$i).name = "hideme";
	} else {
		document.getElementById("state2_"+$i).style.display = "block";
		document.getElementById("state2_"+$i).name = "dropship_state_"+$i;
		document.getElementById("state1_"+$i).style.display = "none";
		document.getElementById("state1_"+$i).name = "hideme";
	}
}

function valDropShips()
{
	alertMessage = "";
	count = document.dropships.formamounts.value;
	for(x=1; x<=count; x++)
	{
		alertMessage += validateAddress(x);
		alertMessage += validateZip(document.checkout_address["dropship_zip_"+x].value, x);
	}
	if (alertMessage != "" && document.checkout_address["hasUpload"].value!='1')
	{
		alert(alertMessage);
		return false;
	} else {
		return true;	
	}
}

function checkShipper(node,tag)
{
	var classElements = new Array();
	if ( node == null )
		node = document;
	if ( tag == null )
		tag = '*';
	var els = node.getElementsByTagName(tag);
	var elsLen = els.length;
	var searchClass = 'checkboxLabel';
	var pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)");
	
	var shipperPattern = new RegExp("^[a-zA-Z0-9]{6,11}$");
	if(!shipperPattern.test(document.getElementById('shipper').value))
	{
		document.getElementById('shipping_company').disabled=true;
		document.getElementById('shiping_type').disabled=true;
		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) ) {
				els[i].style.textDecoration='none';
				els[i].style.color='#000';
			}
		}
	} else {
		document.getElementById('shipping_company').disabled=false;
		document.getElementById('shiping_type').disabled=false;	
		for (i = 0, j = 0; i < elsLen; i++) {
			if ( pattern.test(els[i].className) ) {
				els[i].style.textDecoration='line-through';
				els[i].style.color='#999';
			}
		}
	}
}

function updateSetup(vl,qty)
{
	if(vl=='on') {
		if(qty>=500) {
			//document.getElementById('attrib-15-84').disabled='true';
			document.getElementById('label-15-84').style.textDecoration='line-through';
			document.getElementById('label-15-84').style.color='#666';
		} else {
			//document.getElementById('attrib-15-84').disabled='';
			document.getElementById('label-15-84').style.textDecoration='none';
			document.getElementById('label-15-84').style.color='#000';
		}
	}
}

function checkCreateForm(f)
{
	// Check fields
	var $msg = "";
	$msg += checkTextField(f,'company-name','Company Name');
	$msg += checkTextField(f,'customer-contact','Contact Name');
	$msg += checkTextField(f,'customer-address','Address');
	$msg += checkTextField(f,'customer-city','City');
	$msg += checkTextField(f,'customer-state','State');
	$msg += checkTextField(f,'customer-zip','Zip');
	$msg += checkTextField(f,'customer-country','Country');
	$msg += checkEmailField(f,'customer-email','Email Address');

	// Send alert
	$decision = sendAlert($msg);
	return $decision;
}

function checkTextField($f,$t,$n,minL,maxL)
{
	var $m = ''
	if($f[$t].value==""){
		$m = $n+" is required.\n";
	} else {
		if(minL!=null) {
			if($f[$t].value.length<minL) {
				$m = $n+" must be atleast "+minL+" characters.\n";
			}
		}
		if(maxL!=null) {
			if($f[$t].value.length>maxL) {
				$m = $n+" must be atmost "+maxL+" characters.\n";
			}
		}
	}
	return $m;
}

function checkInteger($f,$t,$n,minV,maxV)
{
	var $m = ''
	var $value = $f[$t].value.replace(',','');
	var reg = new RegExp("^[0-9,.]+$");
	if($value==""){
		$m = $n+" is required.\n";
	} else {
		if(reg.test($value)) {
			if(minV!=null) {
				if($value<minV) {
					$m = $n+" must be atleast "+minV+".\n";
				}
			}
			if(maxV!=null) {
				if($value>maxV) {
					$m = $n+" must be less than "+(maxV+1)+".\n";
				}
			}
		} else {
			$m = $n+" must be a number.\n";
		}
	}
	return $m;
}

function checkEmailField($f,$e,$n) {
	var $m = '';
   var reg = new RegExp("^[0-9a-zA-Z._-]+@[0-9a-zA-Z._-]+[\.]{1}[0-9a-zA-Z._-]+[\.]?[0-9a-zA-Z._-]+$");
	var address = $f[$e].value;
	if(reg.test(address) == false) {
    	$m = $n+" is invalid.\n";
   	}
	return $m;
}

function updateStatus(t,minL,maxL)
{
	var valid = false;
	if(t.value!='') {
		valid = true;
		if(minL!=null) {
			if(t.value.length<minL) {
				valid = false;
			}
		}
		if(maxL!=null) {
			if(t.value.length>maxL) {
				valid = false;
			}
		}
	}
	if(valid) {
		document.getElementById(t.name+'-tag').src='/images/element_valid.png';	
	} else {
		document.getElementById(t.name+'-tag').src='/images/element_required.png';	
	}
}

function updateStatusEmail(t)
{
   var reg = new RegExp("^[0-9a-zA-Z._-]+@[0-9a-zA-Z._-]+[\.]{1}[0-9a-zA-Z._-]+[\.]?[0-9a-zA-Z._-]+$");
   var address = t.value;
   if(reg.test(address) == false) {
		document.getElementById(t.name+'-tag').src='/images/element_required.png';	
   } else {
		document.getElementById(t.name+'-tag').src='/images/element_valid.png';	
   }
}

function updateStatusInteger(t,minV,maxV)
{
	var valid = false;
	var value = t.value.replace(',','');
	var reg = new RegExp("^[0-9,.]+$");
	if(value!='' && reg.test(value)) {
		valid = true;
		if(minV!=null) {
			if(value<minV) {
				valid = false;
			}
		}
		if(maxV!=null) {
			if(value>maxV) {
				valid = false;
			}
		}
	}
	if(valid) {
		document.getElementById(t.name+'-tag').src='/images/element_valid.png';	
	} else {
		document.getElementById(t.name+'-tag').src='/images/element_required.png';	
	}
	// add commas
	t.value = addCommas(t.value);
}

function addCommas(nStr)
{
	nStr += '';
	x = nStr.split('.');
	x1 = x[0];
	x2 = x.length > 1 ? '.' + x[1] : '';
	var rgx = /(\d+)(\d{3})/;
	while (rgx.test(x1)) {
		x1 = x1.replace(rgx, '$1' + ',' + '$2');
	}
	return x1 + x2;
}

function updateProductDescription(t,descriptions)
{
	if(descriptions[t.value]!=null) {
		document.getElementById(t.name+'-description').value = ' - ' + descriptions[t.value];
		if(t.name=='quote-product') {
			document.getElementById('quote-quantity-tag').style.display = 'inline';		
		}
	} else {
		document.getElementById(t.name+'-description').value = '';
		if(t.name=='quote-product') {
			document.getElementById('quote-quantity-tag').style.display = 'none';		
		}
	}
	applyShipper();
}

Array.prototype.inArray = function (value) {
	var i;
	for (i=0; i < this.length; i++) {
		if (this[i] === value) {
			return true;
		}
	}
	return false;
};

function checkRequestForm(f)
{
	// Check fields
	var $msg = "";
	// $msg += checkTextField(f,'asippaisage','ASI / PPAI / SAGE #',4,10);
	$msg += checkTextField(f,'name','Full Name');
	$msg += checkTextField(f,'company','Company');
	//$msg += checkTextField(f,'address','Address');
	//$msg += checkTextField(f,'city','City');
	//$msg += checkTextField(f,'state','State');
	//$msg += checkTextField(f,'zip','Zip');
	//$msg += checkTextField(f,'country','Country');
	$msg += checkTextField(f,'phone','Phone #');
	$msg += checkEmailField(f,'email','Email Address');
	// Check shipper number
	var samples = document.getElementById('sample1').value + document.getElementById('sample2').value + document.getElementById('sample3').value + document.getElementById('sample4').value + document.getElementById('sample5').value;
	if(samples!='') {
		$msg += checkTextField(f,'shipper-number','UPS Shipper #');
	}
	if(f['quote-product'].value!='') {
		$valid = collection.inArray(f['quote-product'].value);
		if(!$valid) {
			$msg += "Invalid Product Number for High Volume Quote.\n";
		}
		$msg += checkInteger(f,'quote-quantity','Quote Quantity',10000,249999);
		$quantity = checkInteger(f,'quote-quantity','Quote Quantity',10000,249999);
		if($quantity!='') {
			$msg += " - For higher quantities please call cusomter service at 1-800-290-0577\n";
		}
	}
	// Send alert
	$decision = sendAlert($msg);

	return $decision;
}

function checkSalesheetForm(f)
{
	// Check fields
	var $msg = "";
	$msg += checkTextField(f,'company','Company name');
	$msg += checkTextField(f,'name','Contact name');
	$msg += checkTextField(f,'phone','Phone #');
	$msg += checkEmailField(f,'email','Email');
	// Send alert
	$decision = sendAlert($msg);

	return $decision;}

function sendAlert($m)
{
	if($m) {
		alert($m);
		return false;
	} else {
		return true;
	}
}

function applyShipper()
{
	var samples = document.getElementById('sample1').value + document.getElementById('sample2').value + document.getElementById('sample3').value + document.getElementById('sample4').value + document.getElementById('sample5').value;
	if(samples!='') {
		document.getElementById('shipper-number-tag').style.display = 'inline';
	} else {
		document.getElementById('shipper-number-tag').style.display = 'none';
	}
}