displayMsg('pp'+ idx, 1, MSG_BUG_ATTACHED); 
if (data.match("Invalid")){ displayMsg('pp'+ idx, 2, "Invalid Bug"); } else{ displayMsg('pp'+ idx, 1, MSG_BUG_ATTACHED); } 
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"	});}
5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/5459/e7f8fae7e90c143e0b40020aa9fc3ea582dae6fb/caserun.js/clean/webtools/testopia/testopia/js/caserun.js