String.prototype.str_replace = function(search, replace){
	string = this;
	while(true){
		pos = string.indexOf(search);
		if(pos == -1) break;
		string = string.substr(0, pos) + replace + string.substr(pos+search.length);
	}
	return string;
}
function copy_content(el){
	el = document.getElementById(el);
	if(el){
		var content = el.innerHTML;
		content = content.str_replace('&lt;', '<');
		content = content.str_replace('&gt;', '>');

		if(window.clipboardData) {window.clipboardData.setData("Text",content);} // For IE
		else alert('Ova funkcija radi sam u MS IE! Hvala na razumjevanju!');
	}
}
/*
holdtext.innerText = copytext.innerText;
Copied = holdtext.createTextRange();
Copied.execCommand("Copy");
*/
