﻿// JScript File

function visi()
{
if(document.getElementById("drp").value=="0")
{
    document.getElementById("County").style.display="none";
}
else
{
document.getElementById("County").style.display="";
}
}
function formControl()
{
var IsCorrect=true;
if(document.getElementById("drp").value=="0")
{
alert('Şehir seçmelisiniz.');
IsCorrect=false;
}
else
{
var select="";
while(document.getElementById("ListBox1").selectedIndex>-1)
{
select=select + document.getElementById("ListBox1").options[document.getElementById("ListBox1").selectedIndex].value+",";
document.getElementById("ListBox1").remove(document.getElementById("ListBox1").selectedIndex);
}
document.getElementById("hideCounty").value=select;
}
document.getElementById("hideType").value=document.getElementById("drpTUR").value;
return IsCorrect;
}
function Formal()
{
var IsCorrect=true;
if(document.getElementById("ilan").value=="")
{
alert('İlan no giriniz.');
IsCorrect=false;
}
return IsCorrect;
}
function scrollSticky(elem)
{
var ie=document.all && !window.opera
var dom=document.getElementById

iebody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body

objref=(dom)? document.getElementById(elem) : document.all[elem];
var scroll_top=(ie)? iebody.scrollTop : window.pageYOffset

var docwidth=(ie)? iebody.clientWidth : window.innerWidth
docheight=(ie)? iebody.clientHeight: window.innerHeight
objheight=objref.offsetHeight
pos=scroll_top+10;

if((iebody.scrollHeight-objref.scrollHeight)<pos)
 return
	objref.style.top=(scroll_top+2)+"px"
 
}
function changeStyle(obj)
{
obj.style.borderLeftColor="#B5C7DE";
obj.style.borderBottomColor="#B5C7DE";
}
function changeStyleDefault(obj)
{
obj.style.borderRightColor="#d3d3d3";
obj.style.borderBottomColor="#d3d3d3";
obj.style.borderLeftColor="white";
}
function changeStyle1(obj)
{
obj.style.borderRightColor="#B5C7DE";
obj.style.borderBottomColor="#B5C7DE";
}
function changeStyleDefault1(obj)
{
obj.style.borderRightColor="white";
obj.style.borderBottomColor="#d3d3d3";
}


