// Anlatim sayfasi JavaScript 

/* Macleri secme isleminde kullanilan combobox*/
function CustomComboSelect(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="CustomCombo">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a onclick="DropDownChanger(\''+selectbox.options[i].text+'\',\''+selectbox.options[i].value+'\', \''+i+'\', \''+selectid+'\');" href="#">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Archive isleminde kullanilan combobox*/
function ArchiveSelect(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="ArchiveCombo">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}
/* LongCombo isleminde kullanilan combobox*/
function LongComboSelect(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="LongCombo">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}
/* LongCombo2 isleminde kullanilan combobox*/
function LongCombo2Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="LongCombo2">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Tekrarlar */
/* Macleri secme isleminde kullanilan combobox*/
function CustomCombo2Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="CustomCombo2">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Macleri secme isleminde kullanilan combobox*/
function CustomCombo3Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="CustomCombo3">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}


/* Macleri secme isleminde kullanilan combobox*/
function CustomCombo4Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="CustomCombo4">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}


/* Macleri secme isleminde kullanilan combobox*/
function MidComboSelect(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="MidCombo">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Macleri secme isleminde kullanilan combobox*/
function MidCombo2Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="MidCombo2">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Macleri secme isleminde kullanilan combobox*/
function MidCombo3Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="MidCombo3">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

/* Macleri secme isleminde kullanilan combobox*/
function MidCombo4Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="MidCombo4">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}


/* Macleri secme isleminde kullanilan combobox*/
function MidCombo5Select(selectid, selectwidth, optionwidth)
{
	var combodropoffsetY=2 //offset of drop down menu vertically from default location (in px)
	var combozindex=100
	
	var selectbox=document.getElementById(selectid)
	document.write('<div id="dhtml_'+selectid+'" class="MidCombo5">'+selectbox.title+'<div class="dropdown">')
	
	for (var i=0; i<selectbox.options.length; i++)
		document.write('<a href="'+selectbox.options[i].value+'">'+selectbox.options[i].text+'</a>')
	
	document.write('</div></div>')
	
	selectbox.style.display="none"
	var dhtmlselectbox=document.getElementById("dhtml_"+selectid)
	dhtmlselectbox.style.zIndex=combozindex
	combozindex--
	
	if (typeof selectwidth!="undefined")
		dhtmlselectbox.style.width=selectwidth
	if (typeof optionwidth!="undefined")
		dhtmlselectbox.getElementsByTagName("div")[0].style.width=optionwidth
	
	dhtmlselectbox.getElementsByTagName("div")[0].style.top=dhtmlselectbox.offsetHeight-combodropoffsetY+"px"
	dhtmlselectbox.onmouseover=function(){
		this.getElementsByTagName("div")[0].style.display="block"
	}
	dhtmlselectbox.onmouseout=function(){
		this.getElementsByTagName("div")[0].style.display="none"
	}
}

function DropDownChanger(text, value, index, controlId)
{
//    alert(controlId);
    document.getElementById(controlId).selectedIndex = index;
    setTimeout(__doPostBack(controlId,''), 0);
}