function openwindow(theURL,winName,features) { //pencere ac
  window.open(theURL,winName,features);
}


function tp(){ // bos fonksiyon
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}


function ske(){ // sik kullanillanlara ekle
var bookmarkurl="http://www.trikoport.com";
var bookmarktitle="TrikoPort - Triko ve Yan Sanayi Portalı";
if (document.all)
        window.external.AddFavorite(bookmarkurl,bookmarktitle)
}


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

function checkel(which){
var intended=/INPUT|TEXTAREA|SELECT|OPTION/
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=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}
// renklendirme bitis

function Color(nesne,renk,fontrenk,xxx) 
{
  nesne.style.backgroundColor = renk;
  idname = "colorfont"+xxx ;
  eval('document.all["'+ idname +'"].style.color="'+ fontrenk +'"');
 // nesne.style.color="ffffff";
nesne.style.color=fontrenk
  nesne.style.cursor="hand";
}

function ata(){ //v1.0
document.form1.baslik.value=document.form1.baslik1.value;
}

function sil(varhref,bolum)  // silmek için onay al
         {         
		 var varhref,bolum;
if (bolum==1)
metin='kayit ';
if (bolum==2)
metin='mesaj ';
		  var sor=confirm('Seçilen '+metin+' silinecek\nDevam mı ? ');
           if (sor)
           {
            location.href=varhref;
           }
        }		