function CreateGondolat(q,m)
{
	var oBody=document.getElementsByTagName("body")[0];
	
	//tarto
	var tarto=document.getElementById("tarto");
	
	//gondolatfodiv
	var gkb = document.createElement("div");
	gkb.setAttribute("id","gondolat_kuld");
	gkb.setAttribute("class","gondolatbox_create");
	gkb.innerHTML='<div class="gondolatbox_fej"><span onclick="CoverOff();GondolatOff();" style="cursor:pointer;">Bezár</span></div>';
	
	//gondolatcontent
	var gc = document.createElement("div");
	gc.setAttribute("class","gondolat_content");
	
	//gondolat
	var gondolat = document.createElement("div");
	gondolat.innerHTML = q +"<br><div style='text-align:right; font-style:italic; margin-top:4px; margin-bottom:20px;'>"+m+"</div>";
	
	//form
	form = document.createElement("form");
	form.setAttribute("name","gkurlap");
	form.setAttribute("method","POST");
	form.setAttribute("action", "pages/gondolatok_kuld.php");
	form.setAttribute("style","font-size:11px; font-family:Arial");
	
	//hiddeninput
	hi = document.createElement("input");
	hi.setAttribute("type","hidden");
	hi.setAttribute("name","mit");
	hi.setAttribute("value","kuldes");
	
	//kinek név
	var nevtext = document.createTextNode("Kinek (e-mail cím)");
	
	//kinek input
	var ki = document.createElement("input");
	ki.setAttribute("name", "kinek_email");
	ki.setAttribute("style","width:270px; margin-bottom:16px;");
	
	//kitől név
	var knevtext = document.createTextNode("Kitől (név)");

	//kitől név input
	var kni = document.createElement("input");
	kni.setAttribute("name", "kitol_nev");
	kni.setAttribute("style","width:270px; margin-bottom:16px;");
	
	//kitől név
	var kemail = document.createTextNode("Kitől (e-mail)");

	//kitől email input
	var kei = document.createElement("input");
	kei.setAttribute("name", "kitol_email");
	kei.setAttribute("style","width:270px; margin-bottom:16px;");
	
	//elkuldogomb
	var sendbtn = document.createElement("div");
	sendbtn.innerHTML="<a href='#' onclick='GKEll();' style='text-decoration:none;'><img src='pictures/siteimg/btnL.png' style='float:left;' border='0'><div class='btn'>Küldés</div><img src='pictures/siteimg/btnR.png' border='0'></a>";

	//append
	form.appendChild(hi);
	form.appendChild(nevtext);
	form.appendChild(ki);
	form.appendChild(knevtext);
	form.appendChild(kni);
	form.appendChild(kemail);
	form.appendChild(kei);
	form.appendChild(sendbtn);
	gc.appendChild(gondolat);
	gc.appendChild(form);
	gkb.appendChild(gc);
	tarto.appendChild(gkb);
	
	//alert(tarto.innerHTML);

}

function GondolatOff() {
	var tarto = document.getElementById("tarto");
	var olddiv = document.getElementById('gondolat_kuld');
	tarto.removeChild(olddiv);
}
