rem: displayMsg('pp'+ idx, 1, MSG_BUG_ATTACHED); 
add: if (data.match("Invalid")){ displayMsg('pp'+ idx, 2, "Invalid Bug"); } else{ displayMsg('pp'+ idx, 1, MSG_BUG_ATTACHED); } 
context: function attch(idx, cid, bugs){    displayMsg('pp'+idx, 3, MSG_WAIT.blink());	disableAllButtons(true);	dojo.io.bind({		url:     "tr_show_caserun.cgi",		content: {  caserun_id: cid, index: idx, bugs: bugs, action: 'attach_bug'},		load:    function(type, data, evt){					document.getElementById('bgl'+idx).innerHTML = data;		            displayMsg('pp'+ idx, 1, MSG_BUG_ATTACHED);		            setTimeout("clearMsg('pp"+ idx +"')",OK_TIMEOUT);		            disableAllButtons(false);		         },		error:   function(type, error){ alert(error.message);},		mimetype: "text/plain"	});}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/10234/e7f8fae7e90c143e0b40020aa9fc3ea582dae6fb/caserun.js/clean/webtools/testopia/testopia/js/caserun.js