


		  function frmKontrol(f) {
		    if (f.adsoyad.value=='') {
		      alert("Lütfen adınızı ve soyadınızı giriniz")
			  f.adsoyad.focus();
		      return false;
		    }
		
		 	
		    if (f.eposta.value=='' ) {
		      alert("Lütfen e-posta adresinizi  giriniz")
			  f.eposta.focus();
		      return false;
		    }
		    if (f.eposta.value!='') {
	              if (window.RegExp){
		       var r1 = new RegExp("^[a-zA-Z0-9\-\.\_]+@([a-zA-Z0-9\-\_]+\.)+.[a-zA-Z0-9]+$");
		       if (r1.test(f.eposta.value) == false)
		       {
		         alert("Lütfen geçerli bir e-posta adresi giriniz")
		        return false;
		       }
	              }	
        } 
		  
		    
			
			  if (f.kullanici.value=='' ) {
		      alert("Lütfen kullanıcı adını giriniz")
			  f.kullanici.focus();
		      return false;
		    }
		    
			
			  if (f.sifre.value=='' ) {
		      alert("Lütfen şifreyi giriniz")
			  f.sifre.focus();
		      return false;
		    }
			
			 if (f.sifretekrar.value=='' ) {
		      alert("Lütfen şifre tekrarı giriniz")
			  f.sifretekrar.focus();
		      return false;
		    }
			
			
			
			 if (f.sifre.value!='' && f.sifretekrar.value!='' ) {
				 
				 if (f.sifre.value!=f.sifretekrar.value)
				 {
		      alert("Şifre ile şifre tekrar aynı değil")
			  return false;
				 }
		}
			
			
			
			
		    
			      if (f.sehir.value=='0' ) {
		      alert("Lütfen şehiri seçiniz")
			  return false;
		    }
		
		
		
		
		
		
		
		  		var kul_getir;
					kul_getir=kul_sorgula(f.kullanici.value);
					
					if (kul_getir==1)
					
					{
						alert('Bu kullanıcı adı kullanımda.')
						f.kullanici.focus();
						return false;
					}
		
		
		
		
						 if (f.kullanici.value.length<2) 
							{
   							alert("Kullanıcı adı 2 karakterden az olamaz");
							f.kullanici.focus();
							return false;
						
							
						
							} 	
		
		
		
							 if (f.kullanici.value.length>40) 
							{
   							alert("Kullanıcı adı 40 karakterden fazla olamaz");
							f.kullanici.focus();
							return false;
				
							} 
							
		
				
			function kul_sorgula(kul)
	{
			filename = "ajax-process.asp?kullanici=" + kul + "&yer=kullanici&rnd=" + Math.random()
	
			//document.write (filename)
			oxmlhttp = null;
			try
			{ oxmlhttp = new XMLHttpRequest();
				oxmlhttp.overrideMimeType("text/html");

			}
			catch(e)
			{ try
			{ oxmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e)
			{ return null;
			}
			}
			if(!oxmlhttp) return null;
			try
			{ oxmlhttp.open("GET",filename,false);
			oxmlhttp.send(null);
			}
			catch(e)
			{ return null;
			}
		var retText
			
			if(oxmlhttp.status=="200"){
				if(oxmlhttp.responseText !=""){
					retText = oxmlhttp.responseText
				}
			}else{
				retText = "False"
			}

		return retText
		
	}
	
		
		
		
		
		
		
		
		  }	
		  
		