function bosKontrol(obj1,isim)
{
	if(obj1.value == '')
	{
		alert("Lutfen " + isim + " alanini giriniz!");
		return false;
	}
	else
		return true;
}

function win2(b,header,width,height) 
{
	window.open(b,header,"width="+ width +",height="+ height +",resizable=no,status=no,scrollbars=yes,toolbar=no,location=no,menu=no")
}
function clearElistForm()
{
	document.getElementById('Elist1_txtNameSurname').value = '';
	document.getElementById('Elist1_txtEmail').value = '';
	return false;
}
function clearGayrimenkulForm()
{
	document.getElementById('GayrimenkulEkle1_txtNameSurname').value = '';
	document.getElementById('GayrimenkulEkle1_txtEmail').value = '';
	document.getElementById('GayrimenkulEkle1_txtAciklama').value = '';
	return false;
}
PositionX = 0;
			PositionY = 0;
			defaultWidth = 500;
			defaultHeight =500;
			var AutoClose = true;
			if (parseInt(navigator.appVersion.charAt(0))>=4){
			var isNN=(navigator.appName=="Netscape")?1:0;
			var isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}
			var optNN='scrollbars=no,width='+defaultWidth+',height='+defaultHeight+',left='+PositionX+',top='+PositionY;
			var optIE='scrollbars=no,width=150,height=100,left='+PositionX+',top='+PositionY;
			
			function popImage(imageURL,imageTitle)
			{
				if (isNN){imgWin=window.open('about:blank','',optNN);}
				if (isIE){imgWin=window.open('about:blank','',optIE);}
				with (imgWin.document)
					{
						writeln('<html><head><title></title><style>body{margin:0px;}</style>');writeln('<sc'+'ript>');
						writeln('var isNN,isIE;');writeln('if (parseInt(navigator.appVersion.charAt(0))>=4){');
						writeln('isNN=(navigator.appName=="Netscape")?1:0;');writeln('isIE=(navigator.appName.indexOf("Microsoft")!=-1)?1:0;}');
						writeln('function reSizeToImage(){');writeln('if (isIE){');writeln('window.resizeTo(100,100);');
						writeln('width=125-(document.body.clientWidth-document.images[0].width);');
						writeln('height=100-(document.body.clientHeight-document.images[0].height);');
						//writeln('width=100-(document.body.clientWidth-document.images[0].width);');
						//writeln('height=100-(document.body.clientHeight-document.images[0].height);');
						writeln('window.resizeTo(width,height);}');writeln('if (isNN){'); 
						writeln('window.innerWidth=document.images["MKeskin"].width;');writeln('window.innerHeight=document.images["MKeskin"].height;}}');
						writeln('function doTitle(){document.title="'+imageTitle+'";}');writeln('</sc'+'ript>');
					if (!AutoClose) writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()">')
					else writeln('</head><body bgcolor=000000 scroll="no" onload="reSizeToImage();doTitle();self.focus()" onblur="self.close()" onClick="self.close()">');
					writeln('<img name="MKeskin" src="'+imageURL+'" style="display:block" oncontextmenu="javascript:return false;"></body></html>');
			close(); 
			}}