
function bkzver(a)

{

  var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "(bkz: "+rg.text+")";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"(bkz: "+textvalue.substring(text.selectionStart,text.selectionEnd)+")"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "(bkz: "+")";
  text.focus();
  return false;

}


function gbkzver(a)

{

  var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "(gbkz: "+rg.text+")";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"(gbkz: "+textvalue.substring(text.selectionStart,text.selectionEnd)+")"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "(gbkz: "+")";
  text.focus();
  return false;

}


function nover(a)

{

  var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "(no: "+rg.text+")";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"(no: "+textvalue.substring(text.selectionStart,text.selectionEnd)+")"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "(no: "+")";
  text.focus();
  return false;

}



function uver(a)

{

  var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "(u: "+rg.text+")";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"(u: "+textvalue.substring(text.selectionStart,text.selectionEnd)+")"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "(u: "+")";
  text.focus();
  return false;

}

function boldver(a)

{

   var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "[bold: "+rg.text+"]bold:";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"[bold: "+textvalue.substring(text.selectionStart,text.selectionEnd)+"]bold:"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "[bold: "+"]bold:";
  text.focus();
  return false;

}


function italicver(a)

{

   var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "[italic: "+rg.text+"]italic:";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"[italic: "+textvalue.substring(text.selectionStart,text.selectionEnd)+"]italic:"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "[italic: "+"]italic:";
  text.focus();
  return false;

}


function biver(a)

{

   var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "[bi: "+rg.text+"]bi:";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"[bi: "+textvalue.substring(text.selectionStart,text.selectionEnd)+"]bi:"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "[bi: "+"]bi:";
  text.focus();
  return false;

}


function altyaziver(a)

{

   var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "[altyazi: "+rg.text+"]altyazi:";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"[altyazi: "+textvalue.substring(text.selectionStart,text.selectionEnd)+"]altyazi:"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "[altyazi: "+"]altyazi:";
  text.focus();
  return false;

}

function ustyaziver(a)

{

   var text=document.getElementById("aciklama");
  if(document.selection)
  {
    var rg=document.selection.createRange();
    if(rg.parentElement()==text) {
	    rg.text = "[ustyazi: "+rg.text+"]ustyazi:";
	    rg.select();
	  } else alert("Bir sey secmediniz ki");
	}
  else if(text.textLength)
  {
  	var textvalue = text.value;
  	text.value = textvalue.substring(0,text.selectionStart)+"[ustyazi: "+textvalue.substring(text.selectionStart,text.selectionEnd)+"]ustyazi:"+textvalue.substring(text.selectionEnd,text.textLength);
  } else text.value += "[ustyazi: "+"]ustyazi:";
  text.focus();
  return false;

}

function Popup()
{

var popupURL = "http://www.bizarpedia.com/logout.php";
var popup = window.open(popupURL,"Popup",'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,');

if( navigator.appName.substring(0,8) == "Netscape" ) {
popup.location = popupURL;
}
}



function vi(s,v) {
 var o = document.getElementById(s);
 if(o) o.style.visibility=v;
}








function arastir(t)
{
	document.write('<tr><td><select style="width:120px" class=da onchange="if(this.selectedIndex>0){window.open(this.options[this.selectedIndex].value+\''+t+'\');this.selectedIndex=0;}">'+
      '<option>...::: arama :::...</option>'+
      '<optgroup label="motorlar">'+
      '<option value="http://www.google.com.tr/search?q=">Google</option>'+
      '<option value="http://search.yahoo.com/bin/query?p=">Yahoo!</option>'+
      '<option value="http://search.msn.com.tr/results.aspx?q=">MSN</option>'+
      '<option value="http://www.altavista.com/cgi-bin/query?pg=q&what=web&fmt=.&q=">Altavista</option>'+
      '<option value="http://www.alltheweb.com/search?q=">Alltheweb</option>'+
      '<option value="http://sitesearch.gigablast.com/search?n=100&q=">Gigablast</option>'+
      '<option value="http://www.exalead.com/search/q=">Exalead</option>'+
      '</optgroup>'+
      '<optgroup label="sozlukler">'+
      '<option value="http://www.seslisozluk.com/?word=">seslisozluk</option>'+
      '<option value="http://www.tdk.org.tr/TR/SozBul.aspx?F6E10F8892433CFFAAF6AA849816B2EF4376734BED947CDE&Kelime=">TDK</option>'+
      '</optgroup>'+
      '<optgroup label="pratiksoluk">'+
      '<option value="http://www.pratiksozluk.com/sozluk.php?dictionary=0&word=">ing->tur</option>'+
      '<option value="http://www.pratiksozluk.com/sozluk.php?dictionary=1&word=">tur->ing</option>'+
      '<option value="http://www.sozluk.web.tr/index.php?type=2&cmd=submit&word=">alm->tur</option>'+
      '<option value="http://www.sozluk.web.tr/index.php?type=3&cmd=submit&word=">tur->alm</option>'+
      '</optgroup>'+
      '<optgroup label="ortaya kar&#305;&#351;&#305;k">'+
      '<option value="http://www.youtube.com/results?search=Search&search_query=">YouTube</option>'+
      '<option value="http://tr.wikipedia.org/wiki/Special:Search?fulltext=Search&search=">wiki (turkce)</option>'+
      '<option value="http://en.wikipedia.org/wiki/Special:Search?fulltext=Search&search=">wiki (ingilizce)</option>'+
      '<option value="http://us.imdb.com/find?q=">imdb</option>'+
      '<option value="http://search.azlyrics.com/cgi-bin/azseek.cgi?q=">AzLyrics</option>'+
      '</optgroup>'+

    '</select></td></tr>');
}