function windowOpener(url,width,height,name) {
        browserName = navigator.appName;
        browserVer = navigator.appVersion.substring(0,1);
        if (width==null) {width=600;}
        if (height==null) {height=400;}
        if (name==null) {name="blanko"}
        if (browserName != "Netscape" || browserVer != 2) {

controlWindow=window.open(url,name,"toolbar=no,height="+height+",width="+width+",location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no");

        }
}


function getNormalSWF(_WIDTH, _HEIGHT, _SRC)
{
	document.write('<div style="width: ' + _WIDTH + '; height: ' + _HEIGHT + '; z-index: ' + _ZINDEX + ';">');
	document.write('<object width="' + _WIDTH + '" height="' + _HEIGHT + '" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0">');
	document.write('<param name="movie" value="' + _SRC + '">');
	document.write('<param name="quality" value="high">');
	document.write('<param name="wmode" value="opaque">');
	document.write('<param name="scale" value="1">');
	document.write('<embed style="z-index: ' + _ZINDEX + ';" src="' + _SRC + '" width="' + _WIDTH + '" height="' + _HEIGHT + '" scale="exactfit" quality="high" wmode="transparent" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash"></embed>');
	document.write('</object>');
	document.write('</div>');
	_ZINDEX += 1;
}


function uyeform_kontrol(){

   if (document.uyeform.username.value == ""){
        alert ("Lütfen bir rumuz girin");
        document.uyeform.username.focus();
        return false;
   }

   if (document.uyeform.username.value.length<2 || document.uyeform.username.value.length>40){
        alert ("Rumuz 2-35 karakter aralığında olmalıdır!");
        document.uyeform.username.focus();
        return false;
   }

   if (document.uyeform.password.value == ""){
        alert ("Şifre girmelisiniz!");
        document.uyeform.password.focus();
        return false;
   }

   if (document.uyeform.password.value.length<2 || document.uyeform.password.value.length>40)
      {
        alert ("Şifre 6-30 karakter aralığında olmalıdır!");
        document.uyeform.password.focus();
        return false;
      }

}


   function PopupPic(sPicURL) {
     window.open( "showpic.htm?"+sPicURL, "",
     "resizable=1,HEIGHT=200,WIDTH=200");
   }
   
   var ux='Üyelerin cep telefonu numaralarını görmek için üye olmalısınız';
   var uy='Üyelere mesaj göndermek için üye olmalısınız';
   

   
    var thumb = null;
    function showThumbnail(which,e)
    {
        thumb = document.getElementById('thumb');
        if( thumb && thumb.style.visibility == 'hidden' )
        {
            thumb.style.left       = e.pageX ? pageXOffset + e.clientX + 80 : document.body.scrollLeft + e.x;
            thumb.style.top        = e.pageY ? pageYOffset + e.clientY : document.body.scrollTop  + e.y + 20;
            thumb.style.visibility = 'visible';
            thumb.innerHTML        = '<img src="' + which + '">';
        }
    }
    function closeThumbnail()
    {
        if( thumb )
            thumb.style.visibility = 'hidden';
    }
   