
<!--


function replaceLIs() {
	//alert(document.getElementById("comments").innerHTML);
	var sInString = document.getElementById("comments").innerHTML.replace(/<li>/g, "<ul><li>");
	sInString = sInString.replace(/<\/li>/g, "</li></ul>");
	//alert(sInString);
	document.getElementById("comments").innerHTML = sInString;
	
}

function Trim(sInString) {
  sInString = sInString.replace( /^\s+/g, "" );// strip leading
  return sInString.replace( /\s+$/g, "" );// strip trailing
}


function openCenterWindow(file, name, width, height, options) {
	leftVal = (screen.width - width) / 2;
	topVal = (screen.height - height) / 2;
	
	if(typeof(popupWin) != "Object") {
		popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
	}
	else {
		if(!popupWin.closed) {
			popupWin.location.href = file;
		}
		else {
			popupWin = window.open(file, name, 'width='+width+',height='+height+',left='+leftVal+',top='+topVal+','+options);
		}
	}
	popupWin.focus();

}

function rplyClick() {
	var rplyBox = document.getElementById("btnReply");
	if(rplyBox.className == "replyBtn") {
		//document.getElementById("rblReply").setAttribute("style", "display:none;");
		//document.getElementById("pReplied").removeAttribute("style");	
		
		document.getElementById("rblReply").style.display = "none";
		document.getElementById("pReplied").style.display = "block";
		rplyBox.className = "changeBtn";
		rplyBox.blur();
	    var query = window.location.search.substring(1);
        var vars = query.split("&");
     
		var replyElem = document.getElementById("rblReply").getElementsByTagName("input");
		var reply;
		for(var i=0; i<replyElem.length; i++) {
			if(replyElem[i].checked) {
				reply = replyElem[i].value;
				break;
			}

		}		
        window.cbkReply.Callback(vars[0].substring(4),vars[1].substring(3),reply);

	}
	else if(rplyBox.className == "changeBtn") {
		//document.getElementById("rblReply").removeAttribute("style");
		//document.getElementById("pReplied").setAttribute("style", "display:none;");
		
		document.getElementById("rblReply").style.display = "inline";
		document.getElementById("pReplied").style.display = "none";
		
		rplyBox.className = "replyBtn";
		rplyBox.blur();
	}
}

function rndGuestList(inv, li) {
	//window.setTimeout(
		//function() {
			window.cbkGuestList.Callback(inv,li);
		//}, 500);
}

// -->
