﻿<!--
				
function getSel(quoteInfo)
	{
		var txt = '';
		var this_id_split = quoteInfo.split(",");
	        var this_usr = this_id_split[0];
	        var this_id = this_id_split[1];
		if (window.getSelection)
		{
			txt = window.getSelection();	
		}
		else if (document.getSelection)
		{
			txt = document.getSelection();	
		}
		else if (document.selection)
		{
			txt = document.selection.createRange().text;
		}
		else return;
	//	document.forumform.body.value += '\n<blockquote id="c' + this_id + '" name="' + this_user + '">' + txt + '</blockquote>\n';
		document.bComment_form_id.p.value += '<blockquote class="comment" id="q' + this_id + '"' + ' name="' + this_usr + '" >' + '<b>Quoted From: ' + this_usr + '</b><br /><i>' + txt + '</i></blockquote>\n\n';
	        // var oldHTML = document.getElementById("rep"+this_id).innerHTML.replace("'", "\\'");
	        document.getElementById("rep"+this_id).innerHTML = document.getElementById("rep"+this_id).innerHTML.replace("QUOTE&nbsp;SELECTED&nbsp;TEXT", "SELECTED&nbsp;TEXT&nbsp;QUOTED");
	        // setTimeout("document.getElementById('rep" + this_id + "').innerHTML = '" + oldHTML + "'", 5000);
	}

// -->