ตอนนี้หลังจากเปลี่ยนโค็ดตามข้างล่างนี้
// document.getElementById('chkdup').innerHTML = xmlhttp.responseText ; //เปลี่ยน ตรงนี้ึครับ
alert(xmlhttp.responseText);
ปัญหาใหม่คือ นะตอนนี้จองซ้ำ้ เวลาเดิม จะขึ้น
ห้องว่างสามารถจองได้ ตลอดเวลาเลย แต่จิงๆๆต้องแสดงคํานี้
echo "<script language='javascript'>alert('ห้องประชุมไม่ว่างมีการจัดประชุมเรื่อง : $f_subj[0] เวลา $f_subj[1]-$f_subj[2]')";
ช่วยดูให้ผมหน่อยครับว่าติดตรงไหน 
อันนี้โค็ดสั่งแสดง PopUp ขึ้นมา
<?php
header("Content-type: text/html; charset=utf8");
header("Cache-Control: no-cache, must-revalidate");
require_once('connection.php');
require_once('function.php');
$room_id=$_GET['room_id'];
$s_time=$_GET['s_time'];
$datemeet=$_GET['datemeet'];
$datemeet=d2sql($datemeet);
$c_chkdup=mysql_db_query($dbname,"select subject,s_time,e_time from bookroom where datemeet='$datemeet' and s_time>='$s_time' and e_time>='$s_time' and room_id='$room_id' ");
if(mysql_num_rows($c_chkdup)>0) {
$f_subj=mysql_fetch_array($c_chkdup);
echo "ห้องประชุมไม่ว่างมีการจัดประชุมเรื่อง : $f_subj[0] เวลา $f_subj[1]-$f_subj[2]";
} else echo "ห้องว่างสามารถจองได้ !";
?>
<style>
checkdup {
color:#F00;
font-size:16px;
}
</style>
ด้านล่างนี้คือโค๊ดสั่งตรวจสอบห้องครับ<script language="javascript">
function checkdup(s_time,room_id,datemeet){
var url = "a_chkdup.php?s_time=" s_time "&room_id=" room_id "&datemeet=" datemeet ;
xmlhttp = newXmlHttp();
xmlhttp.open("GET", url, false);
xmlhttp.send(null);
document.getElementById('chkdup').innerHTML = xmlhttp.responseText ;
alert(xmlhttp.responseText);
}
</script>
<input type="button" name="back2" value="ตรวจสอบห้อง" onClick="checkdup(this.value ':00',document.getElementById('room_id').value,document.getElementById('datemeet').value)" />
ยังไม่ได้เลยครับ ตอนนี้ ติดอยู่ที่เวลาจองซ้ำเวลาเดิม ยังแสดง Popup ว่า ห้องว่าง อยุ่
ช่วยผมดูหน่อยครับว่ายังติดตรงใหน