//genel
self.focus()

top.window.moveTo(0,0);
if (document.all) {
top.window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers||document.getElementById) {
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){
top.window.outerHeight = screen.availHeight;
top.window.outerWidth = screen.availWidth;
}
}
 

//index.asp-ofislistesi.asp-eovar.asp
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings =
'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable'
win = window.open(mypage,myname,settings)
}

//2-ofislistesi.asp-eovar.asp
var buttontarget=""

function change(e, color){
var el=window.event? event.srcElement: e.target
if (el.tagName=="INPUT"&&el.type=="submit")
el.style.backgroundColor=color
}

function jumpto2(url){
if (buttontarget=="")
window.location=url
else if (buttontarget=="_new")
window.open(url)
else
parent[buttontarget].location=url
}

//ofislistesi.asp

//ofislistesi-1
function denetle()
{
var ok;
var baslik = document.theform.baslik.value  
var BolumKim = document.theform.BolumKim.value  

document.theform.baslik.style.background = '#FFffff' 

ok=1;
if (baslik=="ilan başlığı")
{
ok=0;
alert("Lütfen ilan başlığını  kontrol ediniz!")
document.theform.baslik.focus()
document.theform.baslik.style.background = '#FFCCFF'
return false
}

if (BolumKim=="secilmedi")
{
ok=0;
alert("İlan kategorisini seçmediniz.Lütfen yeniden kontrol ediniz!")
document.theform.hangisi.focus()
document.theform.hangisi.style.background = '#FFCCFF'

return false
}


if (ok==1)
{
//document.theform.submit();
submitForm();
}
}

//ofislistesi-2

function temizle(){
kirmizi= document.theform.hangisi.value;

document.theform.BolumKim.style.background = '#FFCCFF'
document.theform.BolumKim.value =kirmizi
	}

//ofislistesi-3
function renkAcA(){
hatirla=document.girvar.kadi.style.background = '#FFffff' 

}
//ofislistesi-4
function renkAcB(){
hatirla=document.girvar.sifre.style.background = '#FFffff' 

}

//ofislistesi-5
function UBeniHatirla(){
uhatirla=document.uyevar.uhatirla.value;
if (uhatirla=="1")
{
document.uyevar.uhatirla.value="2" 
document.uyevar.usonuc.value="BeniHatırla"
document.uyevar.uhatirla.checked=true
document.uyevar.usonuc.style.background = '#FF0000' 
document.uyevar.usonuc.style.color = '#000000' 
alert("BeniHatırla butonuna bastığınızda BU BİLGİSAYAR sizi hatırlayacak!")}

if (uhatirla=="2")
{
document.uyevar.uhatirla.value="1"
document.uyevar.usonuc.value="BeniUnut"
document.uyevar.uhatirla.checked=true
document.uyevar.usonuc.style.background = '#00ffff' 
document.uyevar.usonuc.style.color = '#000000' 
alert("BeniUnut butonuna bastığınızda  BU BİLGİSAYAR  sizi unutacak!")
}
}
