
function ara(url){
	
	var URL1 = window.location.href;
	var result = unescape(URL1.substring(0,(URL1.lastIndexOf("/")) + 1))
	if( url == "" ) 
	{ 
		var x = 326; 
		var xfile = result+"yildirim/modal/modal.aileara.php?al=aaAra"; // aile araması
	} else { 
		var xfile = result+"yildirim/modal/modal.ara.php?"+url;
		var x = 430;
	}
	agreewin = dhtmlmodal.open("agreebox", "iframe",xfile ,
			"Aile Ağaçları",
			"height="+x+"px, width=690px,center=1,resize=1,scrolling=0", "recal"
	)
	agreewin.onclose = function() {
		var theform = this.contentDoc.getElementById("eula")
		var yesbox = theform.eulabox[0]
		var nobox = theform.eulabox[1]
		var url1 = theform.eulabox[2]
		var sS = this.contentDoc.getElementById("sS")
		var sS1 = this.contentDoc.getElementById("sS1")
		var sA = this.contentDoc.getElementById("sA")

		var m = "n";
		var s = "n";
		if (yesbox.checked == true) {
			m = "y";
		}
		if (nobox.checked == true) {
			s = "y";
		}
		if( url == "" ) 
		{ 
			xajax_kisiAra ( sS.value,"","","","",url1.value );		
		} else { 
			xajax_kisiAra ( sS.value,sS1.value,sA.value,m,s,url1.value );		
		}
		return true

	}
}

