   			function addRowTabs(strTabsId) {
  				var randomnumber=Math.floor(Math.random()*9999999);
   				var count = 1;

	 				var tBody = document.getElementById('theBody');
	 				var newRow = document.createElement('tr');
	 				var col1 = document.createElement('td');
	 				var col2 = document.createElement('td');
	 				var rA = document.createElement('a');
	 				var tab_name = document.createElement('input');
	 				var tab_content = document.createElement('input');
	 				var tab_content_config = document.createElement('input');
	 				var tab_frame = document.createElement('iframe');
	 				var tab_div = document.createElement('div');
	 				var tab_id = document.createElement('input');
	
	 				newRow.setAttribute('id', 'n' + randomnumber + '-' + count);
					rA.setAttribute('href', 'javascript:removeRow(\'n' + randomnumber + '-' + count + '\');');
					rA.appendChild(document.createTextNode('Remove'));
	   					
					tab_name.setAttribute('name', 'tab_name[]');
					tab_name.setAttribute('value', "New Tab!");
					
					tab_content.setAttribute('type', 'hidden');
					tab_content.setAttribute('id', "tab_content[" + randomnumber + "]");
					tab_content.setAttribute('name', "tab_content[" + randomnumber + "]");
					tab_content.setAttribute('value', "tab " + randomnumber + " content");
					tab_content.setAttribute('style', "display:none");
					
					tab_content_config.setAttribute('type', 'hidden');
					tab_content_config.setAttribute('id', "tab_content[" + randomnumber + "]___Config");
					tab_content_config.setAttribute('value', "");
					tab_content_config.setAttribute('style', "display:none");
					
					tab_frame.setAttribute('id', "tab_content[" + randomnumber + "]___Frame");
					tab_frame.setAttribute('src', "../includes/rte/editor/fckeditor.html?InstanceName=tab_content[" + randomnumber + "]&amp;Toolbar=Default");
					tab_frame.setAttribute('width', "100%");
					tab_frame.setAttribute('height', '250');
					tab_frame.setAttribute('frameborder', '0');
					tab_frame.setAttribute('scrolling', 'no');
					
					tab_id.setAttribute('name', 'tab_id[]');
					tab_id.setAttribute('value', randomnumber);
					tab_id.setAttribute('type', 'hidden');
					
					tab_div.appendChild(tab_content);
					tab_div.appendChild(tab_content_config);
					tab_div.appendChild(tab_frame);
					
					col1.appendChild(tab_name);
					col1.appendChild(tab_div);
					col2.appendChild(tab_id);
					
					newRow.appendChild(col1);
					newRow.appendChild(col2);
					
					tBody.appendChild(newRow);
					
					count++;
					nRows++;
   	
   			}
    			function addProductTabs(strTabsName,strCode,strName) {
					document.getElementById('productId').value = strTabsName;
					var pname = document.getElementById('pname');
					document.getElementById("pname").firstChild.nodeValue = "(" + strCode + ") " + strName;
					window.close;   	
   			}
    			function pickerTabs(strTabsName,strCode,strName) {
					self.opener.addProduct(strTabsName,strCode,strName);
					self.opener.close;   	
   			}
  
   			function removeRowTabs(rowId) {
 				var tBody = document.getElementById('theBody');
   				
 				tBody.removeChild(document.getElementById(rowId));
   				nRows--;
   			}

function small_window(myurl) {
	var newWindow;
	vleft = (screen.width - 100) / 2;
	vtop = (screen.height-200) / 2;
	var props = 'scrollBars=yes,resizable=yes,toolbar=no,menubar=no,location=no,directories=no,width=500,height=400,left='+vleft+',top='+vtop+',height=400';
	newWindow = window.open(myurl, "Add_from_Src_to_Dest", props);
}