function doClipboard(txt, objId) {
	setTimeout("$('"+objId+"').style.color = '"+$(objId).style.color+"';", 500);
	$(objId).style.color = '#aaaaaa';
	if (window.clipboardData) { // IE
		window.clipboardData.setData("Text", txt);
	} else {
		var fc = document.getElementById("flashCopier");
		if (!fc) { 
			fc = document.createElement("div"); 
			fc.id = "flashCopier"; 
			document.body.appendChild(fc); 
		}
		fc.innerHTML = '<embed src="/swf/clipboard.swf" FlashVars="clipboard=' + 
			encodeURIComponent(txt) +
			'" width="0" height="0" type="application/x-shockwave-flash"></embed>';
	}
}

function addslashes(str) {
	return (str+'').replace(/([\\"'])/g, "\\$1").replace(/\0/g, "\\0");
	str=str.replace(/\\'/g,'\\\\\\\'');
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\\"');
	return str;
}
