
function resimac(imageName,imageWidth,imageHeight,alt,posLeft,posTop) {
	newWindow = window.open("","newWindow","width="+imageWidth+",height="+imageHeight+",left="+posLeft+",top="+posTop);
	newWindow.document.open();
	newWindow.document.write('<html><title>'+alt+'</title><body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginheight="0" marginwidth="0" >'); 
	newWindow.document.write('<img src='+imageName+' width='+imageWidth+' height='+imageHeight+' alt='+alt+'>'); 
	newWindow.document.write('</body></html>');
	newWindow.document.close();
	newWindow.focus();
}

function uyar(mesaj,url){
	cevap=confirm(mesaj);
	if(cevap==1){
		location =	url;
	}	
}

function jumpMenu(targ,selObj,URL){ 
  eval(targ+".location='" + URL + selObj.options[selObj.selectedIndex].value+"'");
}

function krmEvrakGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("evraklar").style.display='block';
		document.form1.soyadi.value="";
		document.form1.anneks.value="";
		document.form1.tckimlik.value="";
		document.form1.soyadi.disabled='true';
		document.form1.anneks.disabled='true';
		document.form1.tckimlik.disabled='true';
		document.form1.vergino.disabled='';
		document.form1.soyadi.style.background="#CCCCCC";
		document.form1.anneks.style.background="#CCCCCC";
		document.form1.tckimlik.style.background="#CCCCCC";
		document.form1.vergino.style.background="";
	}else{
		if(islem==1)document.getElementById("evraklar").style.display='none';
		document.form1.soyadi.disabled='';
		document.form1.anneks.disabled='';
		document.form1.tckimlik.disabled='';
		document.form1.vergino.disabled='true';
		document.form1.soyadi.style.background="";
		document.form1.anneks.style.background="";
		document.form1.tckimlik.style.background="";
		}
}

function krmtelEvrakGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("evraklar").style.display='block';
		document.form1.soyadi.value="";
		document.form1.anneks.value="";
		document.form1.tckimlik.value="";
		document.form1.soyadi.disabled='true';
		document.form1.anneks.disabled='true';
		document.form1.tckimlik.disabled='true';
		document.form1.vergino.disabled='';
		document.form1.soyadi.style.background="#CCCCCC";
		document.form1.anneks.style.background="#CCCCCC";
		document.form1.tckimlik.style.background="#CCCCCC";
		document.form1.vergino.style.background="";
	}else{
		if(islem==1)document.getElementById("evraklar").style.display='none';
		document.form1.soyadi.disabled='';
		document.form1.anneks.disabled='';
		document.form1.tckimlik.disabled='';
		document.form1.vergino.disabled='true';
		document.form1.soyadi.style.background="";
		document.form1.anneks.style.background="";
		document.form1.tckimlik.style.background="";
		}
}

function kampanyaGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("kampanya").style.display='block';
		document.form1.kampanya.value="";
		document.form1.kampanya.disabled='true';				
		document.form1.kampanya.style.background="#CCCCCC";		
		
	}else{
		if(islem==1)		
		document.getElementById("kampanya").style.display='none';
		document.form1.kampanya.disabled='';		
		document.form1.kampanya.style.background="";	
		
			}
}

function kurumGoster(gelen, islem){
	if(gelen==0){
		if(islem==1)
		document.getElementById("baglantino").style.display='block';
		document.form1.baglantino.value="";
		document.form1.baglantino.disabled='';				
		document.form1.baglantino.style.background="";	
		document.getElementById("adslno").style.display='none';
		document.form1.adslno.disabled='true';		
		document.form1.adslno.style.background="#CCCCCC";	
		
		
	}else{
		if(islem==1)		
		document.getElementById("baglantino").style.display='block';
		document.form1.baglantino.disabled='true';		
		document.form1.baglantino.style.background="#CCCCCC";	
		document.getElementById("adslno").style.display='block';
		document.form1.adslno.value="";
		document.form1.adslno.disabled='';				
		document.form1.adslno.style.background="";		
			}
}

function aboneGoster(gelen, islem){
	if(gelen==0){
		if(islem==1)
		document.getElementById("baglantino").style.display='block';
		document.form1.baglantino.value="";
		document.form1.baglantino.disabled='';				
		document.form1.baglantino.style.background="";			
		
	}else{
		if(islem==1)		
		document.getElementById("baglantino").style.display='block';
		document.form1.baglantino.disabled='true';		
		document.form1.baglantino.style.background="#CCCCCC";	
		}
}

function turksatkampanyaGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("kampanya").style.display='block';
		document.form1.kampanya.value="";
		document.form1.kampanya.disabled='true';				
		document.form1.kampanya.style.background="#CCCCCC";		
		
	}else{
		if(islem==1)		
		document.getElementById("kampanya").style.display='none';
		document.form1.kampanya.disabled='';		
		document.form1.kampanya.style.background="";	
		
			}
}


function taksitGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("taksit").style.display='block';
		document.form1.taksit.value="";
		document.form1.taksit.disabled='true';				
		document.form1.taksit.style.background="#CCCCCC";		
		
	}else{
		if(islem==1)		
		document.getElementById("taksit").style.display='none';
		document.form1.taksit.disabled='';		
		document.form1.taksit.style.background="";	
		
			}
}

function eksikevrakGoster(gelen, islem){
	if(gelen==1){
		if(islem>0)document.getElementById("evrakgelis").style.display='block';
		document.form1.sec.checked='checked';
		//document.form1.eksikevrak.disabled='true';				
		document.form1.sec.style.background="#CCCCCC";		
		
	}else{
		if(islem==1)		
		document.getElementById("evrakgelis").style.display='none';
		document.form1.sec.disabled='';		
		document.form1.sec.style.background="";	
		
			}
}


function hakGoster(gelen, islem){
	if(gelen==1){
		if(islem==1)document.getElementById("hakediž bilgileri").style.display='block';
		document.form1.bas1say1.value="";
		document.form1.bas1say2.value="";
		document.form1.bas1tutar.disabled='true';
		document.form1.bas2say1.disabled='true';
		document.form1.bas2say2.disabled='true';
		document.form1.bas2tutar.disabled='true';
		document.form1.bas1say2.style.background="#CCCCCC";
		document.form1.bas2say2.style.background="#CCCCCC";
	}else{
		if(islem==1)document.getElementById("hakediž bilgileri").style.display='none';
		document.form1.bas2say1.disabled='';
		document.form1.bas2say2.disabled='';
		document.form1.bas1say2.style.background="";
		document.form1.bas2say2.style.background="";
	}
}


function modemUyari(uid){
	alert('Port girisi yapilmayan aboneye modem teslimati yapamazsiniz!');	
	
}
