function getLoginCornerPage() {
xmlhttp = createXMLHttp();
if ( xmlhttp ) {
DD = new Date();
ky = "" + DD.getSeconds() + DD.getMinutes() + DD.getHours() + DD.getDate();
xmlhttp.onreadystatechange = setLoginCornerData;
xmlhttp.open('GET', 'loginchecker.php?tm=' + ky);
xmlhttp.send(null);
}
}
function setLoginCornerData() {
if ( xmlhttp.readyState == 4 && xmlhttp.status == 200 ) {
document.getElementById('loginCorner').innerHTML = xmlhttp.responseText;
}
}
function createXMLHttp() {
try {
return new ActiveXObject('Microsoft.XMLHTTP');
} catch(e) {
try {
return new XMLHttpRequest();
} catch(e) {
return null;
}
}
}
function doLogin() {
idCtl = document.getElementById('login_corner_id');
pwCtl = document.getElementById('login_corner_pw');
if ( idCtl && pwCtl ) {
url = 'loginchecker.php?c=k&i=' + idCtl.value + '&p=' + pwCtl.value;
xmlhttp = createXMLHttp();
if ( xmlhttp ) {
xmlhttp.onreadystatechange = setLoginCornerData;
xmlhttp.open('GET', url);
xmlhttp.send(null);
}
} else {
alert('can not get control object');
}
}