﻿// JScript File
function flash_goster(file,width,height){
document.writeln("<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='"+width+"' HEIGHT='"+height+"' id='contents' ALIGN=''>");
document.writeln("<PARAM NAME=movie value='"+file+"' />");
document.writeln("<PARAM NAME=quality VALUE=high>");
document.writeln("<embed src='"+file+"' quality='high' width='"+width+"' height='"+height+"' name='contents' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' />");
document.writeln("</OBJECT>");
}

function loadinparent(url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
	}


function onlyNumbers(evt)
{
	var e = event || evt; // for trans-browser compatibility
	var charCode = e.which || e.keyCode;

	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;

}



var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes';
win=window.open(mypage,myname,settings);}


function loadinparent(url, closeSelf){
	self.opener.location = url;
	if(closeSelf) self.close();
	}




 var xmlHttp;

        function updateOutput(inputString)
        {
            if(inputString.length == 0)
            {
                document.getElementById("rumuzsonuc").innerHTML = "";
                return;
            }
            
            
            if(inputString.length < 4)
            {
                document.getElementById("rumuzsonuc").innerHTML = "Rumuz minimum 4 karakter olmalı";
                return;
            }
            
            
               

            try
            {
                if(window.XMLHttpRequest)
                    xmlHttp = new XMLHttpRequest();
                else if (window.ActiveXObject)
                    xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");            

                if(!xmlHttp || xmlHttp == null)
                {
                    return;
                }

                var url="rumuzk.aspx?q=" + inputString;
                xmlHttp.onreadystatechange=StateChanged;
                xmlHttp.open("GET", url, true);
                xmlHttp.send(null);
            }
            catch(e)
            {
                document.getElementById("rumuzsonuc").innerHTML = "";
            }
        }

        function StateChanged()
        {
            if((xmlHttp.readyState == 4) && (xmlHttp.status == 200))
            {
    
            document.getElementById("rumuzsonuc").innerHTML = xmlHttp.responseText;
                  
            
            
              
            }
        }



////////

 var xmlHttp2;
 function updateOutput2(inputString)
        {
            if(inputString.length == 0)
            {
                document.getElementById("mailsonuc").innerHTML = "";
                return;
            }
            
            
            if(inputString.length < 4)
            {
                document.getElementById("mailsonuc").innerHTML = "Email minimum 4 karakter olmalı";
                return;
            }
            
            
               

            try
            {
                if(window.XMLHttpRequest)
                    xmlHttp2 = new XMLHttpRequest();
                else if (window.ActiveXObject)
                    xmlHttp2 = new ActiveXObject("Microsoft.XMLHTTP");            

                if(!xmlHttp2 || xmlHttp2 == null)
                {
                    return;
                }

                var url="emailk.aspx?q=" + inputString;
                xmlHttp2.onreadystatechange=StateChanged2;
                xmlHttp2.open("GET", url, true);
                xmlHttp2.send(null);
            }
            catch(e)
            {
                document.getElementById("mailsonuc").innerHTML = "";
            }
        }

        function StateChanged2()
        {
            if((xmlHttp2.readyState == 4) && (xmlHttp2.status == 200))
            {
    
            document.getElementById("mailsonuc").innerHTML = xmlHttp2.responseText;
                  
            
            
              
            }
        }