i'm trying to mac a program that will check if a user exists as the user types in a name
here is my script that dose not work
<script type="text/javascript">
function isFolder(sFolderPath) {
var objFSO = new ActiveXObject("Scripting.FileSystemObject");
return objFSO.FolderExists(sFolderPath);
}
function checkuser(x)
{
if isFolder(document.getElementById(x).value) {
document.usernameimg.src='ue.png'
} else {
document.usernameimg.src='ua.png'
}
}
</script>
<input name="username" type="text" size="30" id="username" onchange="checkuser(this.id)"><img name="usernameimg" src="u.png">
please help