function VerifyAmazonTextarea(el_id_t, base_path_ft) {
		var last_item_num_me_li = window.document.getElementById('last_item_num_me_li_'+el_id_t).innerHTML;
		var last_item_num_me_li_ret=parseInt(last_item_num_me_li, 10);
		var pattern=/[^ a-zA-Z0-9\n\r]/i;
		var textvalue=document.getElementById('amazon_txta_'+el_id_t).value;
		if(!textvalue){window.alert('The form is empty'); return false;}
		if(pattern.test(textvalue)){window.alert('Please check your spelling'); return false;}
		document.getElementById('amazon_txta_'+el_id_t).value='';
		textvalue += ' ';
		var ptrnm=/([a-zA-Z0-9]+)[ \n\r]/g;
		var item_id="";
		var item_id_arr;
		while ((item_id_arr = ptrnm.exec(textvalue)) != null)
		{
		  item_id += item_id_arr[1]+'_';
		  last_item_num_me_li_ret++;
		}
		if( !item_id )
		{
			window.alert('Please enter a valid ASIN');
			return false;
		}
		doModuleAjaxInsert('me_add_edit_'+el_id_t, base_path_ft, 'amazon', 'addAmazonProductsTxt', item_id, el_id_t, last_item_num_me_li);
		render.render( 'last_item_num_me_li_'+el_id_t, last_item_num_me_li_ret );
		return true;
}

function HelpAddItem(pod_plug_id, pod_id, base_path, plug_name, func_name)
{
  var width = 550;
  var height = 420;
  var _left = ( (screen.width-width) >>1 );
  var _top = ( (screen.height-height) >>1 );

 // myWin = eval('helperWindow' + lmi);
 
	var url = base_path + 'dashboard/call/'+ plug_name + '/' + func_name + '/' + pod_plug_id + '/' + pod_id;
  myWin = window.open(url,'find_items_help_' + pod_plug_id,'status=yes,scrollbars=yes,resizable=yes,width='+width+',height='+height+',left='+_left+',top='+_top);
  if (myWin.opener == null) myWin.opener = window;
  myWin.opener.name = 'opener';
  myWin.focus();	
}

