$(document).ready(function(){

  
    
   // var sel=$('#shape :selected').val();
	//alert(sel);
   
	//$("#selectListButton1").click(function(){
	//	alert( 'Value is: ' + $('#selectList').val() );
	//});
	//$("#selectListButton2").click(function(){
	//	alert( 'Text is: ' + $('#selectList :selected').text() );
	//});
  
  $("#shape").change(function(){
		setTextLength();
		
  });
  $("#design").change(function(){
		setTextLength();
  });
  function setTextLength(){
  	var shape = $('#shape :selected').val();
  	var design = $('#design :selected').val();
  	$('#4_text1').val('');
  	$('#5_text2').val('');
  	$('#6_text3').val('');
  	$('#7_text4').val('');
  	
  	//2_inch_square
			if ((shape == "2_inch_square") && (design == "NW_silhouette_btrfly")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_silhouette_bird")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_silhouette_feather")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_silhouette_fern")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_cherry_blossom")) {
				setMaxLength('#4_text1', 26);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "SH_luv_birds")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_burst_monogram")) {
				setMaxLength('#4_text1', 1);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "CE_strips")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_square") && (design == "CE_swash")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 18);
				setMaxLength('#7_text4', 18);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			
			if ((shape == "2_inch_square") && (design == "CE_artnouveau")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 22);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_island_starfish")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_island_shell")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_island_sun")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_orchids")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_seasonal_stripes")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "SH_blossom")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_square") && (design == "EC_juice_it")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "EC_fantasy_flower")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "EC_monogram")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_tropic")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_square") && (design == "CM_ornaments")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "CM_party_dress")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 14);
				setMaxLength('#6_text3', 14);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "CM_starburst")) {
				setMaxLength('#4_text1', 15);
				setMaxLength('#5_text2', 15);
				setMaxLength('#6_text3', 20);
				setMaxLength('#7_text4', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_square") && (design == "KP_snow")) {
				setMaxLength('#4_text1', 25);
				setMaxLength('#5_text2', 25);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "CW_cheers")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_gingham")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_bird")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_square") && (design == "NW_tree")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			//2_inch_circle
			if ((shape == "2_inch_circle") && (design == "NW_silhouette_btrfly")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_silhouette_bird")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_silhouette_feather")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_silhouette_fern")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_cherry_blossom")) {
				setMaxLength('#4_text1', 26);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "SH_luv_birds")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_burst_monogram")) {
				setMaxLength('#4_text1', 1);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "CE_strips")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_circle") && (design == "CE_swash")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 18);
				setMaxLength('#7_text4', 18);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_circle") && (design == "CE_artnouveau")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			
			if ((shape == "2_inch_circle") && (design == "NW_island_starfish")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_island_shell")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_island_sun")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_orchids")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_seasonal_stripes")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "SH_blossom")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_circle") && (design == "EC_juice_it")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "EC_fantasy_flower")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "EC_monogram")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_tropic")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_circle") && (design == "CM_ornaments")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 20);
				
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "CM_party_dress")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 14);
				setMaxLength('#6_text3', 14);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "CM_starburst")) {
				setMaxLength('#4_text1', 15);
				setMaxLength('#5_text2', 15);
				setMaxLength('#6_text3', 20);
				setMaxLength('#7_text4', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "2_inch_circle") && (design == "KP_snow")) {
				setMaxLength('#4_text1', 25);
				setMaxLength('#5_text2', 25);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "CW_cheers")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_gingham")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 12);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_bird")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "2_inch_circle") && (design == "NW_tree")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			//oval
			if ((shape == "oval") && (design == "NW_silhouette_btrfly")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_silhouette_bird")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_silhouette_feather")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_silhouette_fern")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_cherry_blossom")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "SH_luv_birds")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 8);
				setMaxLength('#6_text3', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_burst_monogram")) {
				setMaxLength('#4_text1', 1);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "CE_strips")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 30);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "CE_swash")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 30);
				
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			
			if ((shape == "oval") && (design == "CE_artnouveau")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 30);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_island_starfish")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_island_shell")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_island_sun")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_orchids")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 8);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_seasonal_stripes")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "SH_blossom")) {
				setMaxLength('#4_text1', 7);
				setMaxLength('#5_text2', 7);
				setMaxLength('#6_text3', 7);
				setMaxLength('#7_text4', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "oval") && (design == "EC_juice_it")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "EC_fantasy_flower")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "EC_monogram")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_tropic")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "oval") && (design == "CM_ornaments")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "CM_party_dress")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "CM_starburst")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "KP_snow")) {
				setMaxLength('#4_text1', 25);
				setMaxLength('#5_text2', 25);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "CW_cheers")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_gingham")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "oval") && (design == "NW_bird")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "oval") && (design == "NW_tree")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			//1_375_circle
			if ((shape == "1_375_circle") && (design == "NW_silhouette_btrfly")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_silhouette_bird")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_silhouette_feather")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_silhouette_fern")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_cherry_blossom")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "SH_luv_birds")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 8);
				setMaxLength('#6_text3', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_burst_monogram")) {
				setMaxLength('#4_text1', 1);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "CE_strips")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 30);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "CE_swash")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 30);
				
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			
			if ((shape == "1_375_circle") && (design == "CE_artnouveau")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 30);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_island_starfish")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_island_shell")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_island_sun")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 6);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_orchids")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_seasonal_stripes")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "SH_blossom")) {
				setMaxLength('#4_text1', 7);
				setMaxLength('#5_text2', 7);
				setMaxLength('#6_text3', 7);
				setMaxLength('#7_text4', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "1_375_circle") && (design == "EC_juice_it")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "EC_fantasy_flower")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "EC_monogram")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_tropic")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "1_375_circle") && (design == "CM_ornaments")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "CM_party_dress")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "CM_starburst")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 20);
				
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "KP_snow")) {
				setMaxLength('#4_text1', 25);
				setMaxLength('#5_text2', 25);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "CW_cheers")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_gingham")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_bird")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "1_375_circle") && (design == "NW_tree")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			//diamond
			if ((shape == "diamond") && (design == "NW_silhouette_btrfly")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_silhouette_bird")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_silhouette_feather")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_silhouette_fern")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_cherry_blossom")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "SH_luv_birds")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 8);
				setMaxLength('#6_text3', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_burst_monogram")) {
				setMaxLength('#4_text1', 1);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "CE_strips")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "CE_swash")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 18);
				setMaxLength('#7_text4', 18);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			
			if ((shape == "diamond") && (design == "CE_artnouveau")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 30);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_island_starfish")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_island_shell")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_island_sun")) {
				setMaxLength('#4_text1', 8);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_orchids")) {
				setMaxLength('#4_text1', 6);
				$('#5_text2div').hide();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_seasonal_stripes")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "SH_blossom")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "diamond") && (design == "EC_juice_it")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "EC_fantasy_flower")) {
				setMaxLength('#4_text1', 20);
				setMaxLength('#5_text2', 26);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "EC_monogram")) {
				setMaxLength('#4_text1', 3);
				setMaxLength('#5_text2', 20);
				setMaxLength('#6_text3', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_tropic")) {
				setMaxLength('#4_text1', 13);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				setMaxLength('#7_text4', 26);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "diamond") && (design == "CM_ornaments")) {
				setMaxLength('#4_text1', 14);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "CM_party_dress")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 10);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "CM_starburst")) {
				setMaxLength('#4_text1', 15);
				setMaxLength('#5_text2', 15);
				setMaxLength('#6_text3', 20);
				setMaxLength('#7_text4', 20);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
			if ((shape == "diamond") && (design == "KP_snow")) {
				setMaxLength('#4_text1', 25);
				setMaxLength('#5_text2', 25);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "CW_cheers")) {
				setMaxLength('#4_text1', 12);
				setMaxLength('#5_text2', 12);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_gingham")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_bird")) {
				setMaxLength('#4_text1', 16);
				setMaxLength('#5_text2', 20);
				$('#5_text2div').show();
				$('#6_text3div').hide();
				$('#7_text4div').hide();
			}
			if ((shape == "diamond") && (design == "NW_tree")) {
				setMaxLength('#4_text1', 10);
				setMaxLength('#5_text2', 10);
				setMaxLength('#6_text3', 15);
				setMaxLength('#7_text4', 15);
				$('#5_text2div').show();
				$('#6_text3div').show();
				$('#7_text4div').show();
			}
		};
/*
    $("#shape").change(function(){
        //var opt = this.options[this.selectedIndex].value;
		//var color = $("color").options[$("color").selectedIndex].value;
		var shape = $('#shape :selected').val();
		var design = $('#design :selected').val();
		
        if (shape == "2_inch_square") {
            setMaxLength('#4_text1', 20);
            
        }
       
            })
    */
    
    /* ----------- Code For Input Length Changes -----------------*/
  
    function setMaxLength(element_id, length){
        $(element_id).attr("maxlength", length);
        note = element_id + '_note';
        $(note).html('(up to ' + length + ' characters)');
    }
    
   
});
