<script language="javascript">
function uzXmlHttp(){
var xmlhttp;
if (window.ActiveXObject)
{
//For IE
xmlhttp = new ActiveXObject ("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest)
{
//For Netscape, FireFox
xmlhttp = new XMLHttpRequest ();
}
else
{
xmlhttp = false;
}
return xmlhttp;
}
function checkcode(){
var req= uzXmlHttp();
req.onreadystatechange = function ()
{
if(req.readyState == 4)
{
var area = document.getElementById('coursediv');
area.innerHTML = req.responseText;
} else {
var area = document.getElementById('coursediv');
area.innerHTML = "<strong>Please wait....</strong>";
}
}
var CodeID=document.Form.CourseCode.value;
var query;
query="?";
query+="CodeID="+CodeID;