var xmldoc = new ActiveXObject("Microsoft.XMLDOM")
function start(){
	username.focus()
	return
}
function correct_inf(){
   if(username.value==""){
		alert("Kullanıcı Adı Boş geçilemez")
		username.focus()
		return
   }
   if(password.value==""){
		alert("Şifre Boş geçilemez")		
		password.focus()
		return
   }
   var xmlstr
   xmldata="wariable="+username.value
   xmldata+="&wariable1="+password.value
   if(rememberpass.checked) bool=true
   else bool=false
   xmldata+="&wariable2="+bool
   xmldoc.onreadystatechange = RefreshSeats;
   xmldoc.load("./conn/jandarma.asp?"+xmldata);
}
function RefreshSeats(){
  
  var lCounter,lSeatNo,iSeatStatus;
  var state = xmldoc.readyState;
  var arrStatus = new Array();
   if (state == 4 && xmldoc.xml!=""){
    if(xmldoc.childNodes.item(0).text=='ok'){
		window.top.location="raporForm2.asp"
    }
    else{
       alert("Kullanıcı adı veya şifreniz yalnış.") 
    }
  } 
}