function openwindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function kampanya(gelen) { //v2.0
var theURL='kampanya.php?id='+gelen;
  window.open(theURL,'','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=0,width=481,height=500');
}

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

function bs() {
}

function dcsTrk() {
}

function vitrin(id,ozet,resim){ // aciklama degistir

//ozetx.innerHTML=ozet;
document.getElementById("vits").style.background="url(resimler/kampanya/"+resim+")";
vitlink.innerHTML='<a href="javascript:kampanya('+id+');" class="haberlink">' + ozet + "</a>";

}


var highlightcolor="EFEFEF"   
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=''
previous=eventobj
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
}
else{
if (checkel(eventobj))
eventobj.style.backgroundColor=highlightcolor
previous=eventobj
}
}

function color(img_name,model) {
document.all('renk').src = 'modeller/'+model+'/'+img_name;
}
