function appendChatLine(text, ctarget) {
	window.htirc.frames.get(ctarget).append(text);
}

function userTypedSomething() {
	var inputbox = document.forms.chatform.chatinput;
	var text = inputbox.value;
	//appendChatLine(text);
	inputbox.value = "";
	ircCommand(text);
	return false;
}

function hello() {
	window.myframes = window.htirc.frames;
	window.chat = new Object();
	var frame = document.createElement('iframe');
	frame.src = "input";
	frame.style.display = "none";
	frame.id = "chatinputframe";
	document.getElementsByTagName('body')[0].appendChild(frame);
	window.chat.outln = 0;
}

