 		 $('[id^= "attribute_type_placeholder_"]').each(function(){
             i=this.id.replace("attribute_type_placeholder_", "");
         });
-        i=parseInt(i)+1;
+        var lastNum=i;
+        var nextNum=parseInt(i)+parseInt(1);
+
+        var nelem='<tr><td class="lbl">';
+        nelem+='<select name="attribute_type_placeholder_'+nextNum+'" id="attribute_type_placeholder_'+nextNum+'" size="1"></select>';
+        nelem+='</td><td class="srch"><span id="attribute_value_placeholder_'+nextNum+'"></span></td></tr>';
+
+        $('#attrCtlTR').before(nelem);
+
+        $('#attribute_type_placeholder_1').find('option').clone().appendTo('#attribute_type_placeholder_' + nextNum);
+
+
+
+
 		alert('next: ' + i);
 
 

		</td>
		<td class="srch">
			<span id="attribute_value_placeholder_1"></span>
			<span class="likeLink" onclick="moreAttr()">add attribute</span>

		</td>
	</tr>
	<tr>
		<td class="lbl">
			<select name="attribute_type_placeholder_2" id="attribute_type_placeholder_2" size="1">


		</td>
	</tr>

	---->



