// support library for web assistent
// written by christian kuss
// Leonhardt Multimedia GmbH
var noquestionalertmessage = "Kérem adjon meg valami keresnivalót, ha már erre jár;)";

function sendForm() {
	if (!document.forms["questionform"]["question"].value) {
		alert (noquestionalertmessage);
		if (document.forms["questionform"] && document.forms["questionform"]["question"]) document.forms["questionform"]["question"].focus();
	}
	else {
		document.forms["questionform"].submit();
		if (document.all && document.all.continuebutton) document.all.continuebutton.style.visibility = "hidden";
		if (document.all && document.all.continuebuttontd) document.all.continuebuttontd.className = "dark";
	}
}


function contentLoaded() {
	resetDocumentTitle();
	enableContinueButton();
}


function resetDocumentTitle(title) {
	if (document.all) top.document.title = title;
}


function enableContinueButton() {
 	if (document.all) {
		if (top.frames["footer"].document.all.continuebutton) top.frames["footer"].document.all.continuebutton.style.visibility = "visible";
		if (top.frames["footer"].document.all.continuebuttontd) top.frames["footer"].document.all.continuebuttontd.className = "continuebackground";
	}
}


function disableContinueButton() {
	if (document.all) {
		if (top.frames["content"].document.readyState != "complete") {
			if (top.frames["footer"].document.all.continuebutton) top.frames["footer"].document.all.continuebutton.style.visibility = "hidden";
			if (top.frames["footer"].document.all.continuebuttontd) top.frames["footer"].document.all.continuebuttontd.className = "dakr";
		}
	}
}

