﻿var already_cleared_text = false;
function clear_text()
{
	if (already_cleared_text == false)
		document.getElementById("question").value="";
	already_cleared_text = true;
}

function send_question()
{
	document.getElementById("question_div").style.display="none";
	document.getElementById("question_response").style.display="inline";
	var question_value = document.getElementById("question").value;
	$.get("../includes/left/send_question.php", { question: question_value },
  function(data){
  tb_show('','/jumping_leadbox.php?question='+ question_value +'&KeepThis=true&TB_iframe=true&height=303&width=632')
    document.getElementById("question_response").innerHTML=data;
  });
}