﻿
function openWin(theURL,winName,features) 
{
  	window.open(theURL,winName,features);
}

//function gizlehst()
//{
//             document.getElementById("hastaneDDL").style.visibility = "hidden";
//             
//}

//function doktorh(hangisi)
//{

//if (hangisi=='doktor')
//        { //document.getElementById("doktorDDL").style.visibility == "hidden" 
//             document.getElementById("doktorDDL").style.visibility = "visible"
//             document.getElementById("hastaneDDL").style.visibility = "hidden"
//             document.getElementById("doktorust").src= "tasres/doktorlarust.jpg"
//             document.getElementById("doktorarama").src= "tasres/dokara.jpg"
//             document.getElementById("dkspan").innerHTML="Uzmanlık Dalı"
//        }
//else    {
//             document.getElementById("doktorDDL").style.visibility = "hidden"
//             document.getElementById("hastaneDDL").style.visibility = "visible"
//             document.getElementById("doktorust").src= "tasres/doktoruh.jpg"
//             document.getElementById("doktorarama").src= "tasres/doktorhara.jpg"
//             document.getElementById("dkspan").innerHTML="Hastane Adı"
//        }
//        
//        

//}

function degistir(resim,baslik,yadi,idd)
{
var donusum=baslik
var varmi =donusum.indexOf( "#tt#" );
while (varmi!= -1)
{
     // Relace out the current instance.
     donusum = donusum.replace( "#tt#", "'" );
      
     // Get the index of any next matching substring.
    varmi= donusum.indexOf( "#tt#" );
}

 varmi =donusum.indexOf( "#ct#" );
while (varmi!= -1)
{
     // Relace out the current instance.
     donusum = donusum.replace( '#ct#', '"');
      
     // Get the index of any next matching substring.
    varmi= donusum.indexOf( "#ct#" );
}
 document.getElementById("resimy").src="haberres/" + resim;
 document.getElementById("baslik").innerHTML='<a href="yazidetay.aspx?id='+idd+'">'+donusum+"</a>";
 document.getElementById("yadi").innerHTML=yadi;
}



function haberler(resim,baslik,idd)
{
var donusum=baslik
var varmi =donusum.indexOf( "#tt#" );
while (varmi!= -1)
{
     // Relace out the current instance.
     donusum = donusum.replace( "#tt#", "'" );
      
     // Get the index of any next matching substring.
    varmi= donusum.indexOf( "#tt#" );
}

 varmi =donusum.indexOf( "#ct#" );
while (varmi!= -1)
{
     // Relace out the current instance.
     donusum = donusum.replace( '#ct#', '"');
      
     // Get the index of any next matching substring.
    varmi= donusum.indexOf( "#ct#" );
}
 document.getElementById("resimh").src="haberres/" + resim;
  document.getElementById("ustres").src="tepeimg/" + resim;
 document.getElementById("detayh").innerHTML='<a href="haberdetay.aspx?id='+idd+'">'+donusum+"</a>";

}


function yazibuyut(gelen)
{
   document.getElementById("detayy").style.fontSize=gelen+"pt";
}

