function refresh()
{
  window.location.reload( false );
}

var highlightcolor="ffe6d1"   
var ns6=document.getElementById&&!document.all
var previous=''
var eventobj

var intended=/INPUT|TEXTAREA|SELECT|OPTION/

function checkel(which){
if (which.style&&intended.test(which.tagName)){
if (ns6&&eventobj.nodeType==3)
eventobj=eventobj.parentNode.parentNode
return true
}
else
return false
}

function highlight(e){
eventobj=ns6? e.target : event.srcElement
if (previous!=''){
if (checkel(previous))
previous.style.backgroundColor=''
sss=eventobj.type; //alert(sss);
previous=eventobj
if (checkel(eventobj))
if ((sss!='submit') && (sss!='reset') && (sss!='button') && (sss!='checkbox') && (sss!='radiobutton'))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function showHideLayers() { //v6.0
  var i,p,v,obj,args=showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function sil(varhref,bolum)
         {         
		 var bolum;
if (bolum==1)
metin='firma ve firmaya ait olan tüm domain, e-mail, veritabanı ve şifreli klasör kayıtları';
if (bolum==2)
metin='domain ve domaine ait tüm e-mail, veritabanı ve ve şifreli klasör kayıtları';
if (bolum==3)
metin='e-mail kaydı';
if (bolum==4)
metin='veritabanı kaydı';
if (bolum==5)
metin='şifreli klasör kaydı';
if (bolum==6)
metin='bayi, bayiye ait firmalar, firmalara ait domainler, e-mailler, veritabanları ve klasör kayıtları';
if (bolum==0)
metin='kayıt';
		  var sor=confirm('Seçilen '+metin+' silinecek\nDevam mı ? ');
           if (sor)
           {
            location.href=varhref;
           }
        }		
		
		function git(varhref)
         {    
		 location.href=varhref;
		 }
		 
		 
function random_char(charlist)
{
	var num = Math.floor(Math.random() * charlist.length);
	return charlist.charAt(num);
}

function random_pass(xx)
{
	var xx;
	var chars = "1234567890abcdefhkmnpz156347rts";

	var pass = "";
	var i=0;
	
	for (i=0; i<xx; i++)
	{
		pass = pass + random_char(chars);
	}
	return pass;
}

function randomPass(sayi,formalan)
{
var formalan, sayi;
	with (document.form1)
	{
		padText = eval('document.form1.'+formalan);
		padText.value = random_pass(sayi);
	}
}
function kopya(ds)
{
padText = eval('document.form1.'+ds);
therange=padText.createTextRange();
therange.execCommand("Copy");
padText.focus();
padText.select();
}
function kopyatxt(met)
{
var met;
document.firmabul.giz.value=met;
//padText = eval('document.form1.'+giz);
therange=document.firmabul.giz.createTextRange();
therange.execCommand("Copy");
}


function whoisata(selObj)
{
document.whois.query1.value=selObj.options[selObj.selectedIndex].value;
//document.whois.query1.focus();
}


function ipata(selObj)
{
document.ip.query1.value=selObj.options[selObj.selectedIndex].value;
//document.whois.query1.focus();
}

function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
  newWindow=window.open(URLtoOpen, windowName, windowFeatures);
}