function gorun(katman){
if(document.all){
document.all[katman].style.visibility="visible";
banee2();
}
else if(document.layers){
document.layers[katman].visibility="show";
banee2();
}
else{
document.getElementById(katman).style.visibility="visible";
banee2();
}
}

function kaybol(katman){
if(document.all){
document.all[katman].style.visibility="hidden";
banee1();
}
else if(document.layers){
document.layers[katman].visibility="hide";
banee1();
}
else
{
document.getElementById(katman).style.visibility="hidden";
banee1();
}
}

function boskontrol(frm){
var str = frm.Ara.value;
var emplen = 0;
var J;
var erol;
var ilknur2 = 0;
for (j=0; j < str.length; j++){
if(str.charAt(j) == " "){
ilknur2 = ilknur2 + 1;}
}
for (erol=0; erol < str.length; erol++){
if(str.charAt(erol) == "'" || str.charAt(erol) == "-" || str.charAt(erol) == "@" || str.charAt(erol) == "*"){
alert("Characters that are not allowed are used in your search text. Please do not use punctuations in your query.");
return false;
}
}
if(ilknur2 == str.length){
alert("Your search text cannot be made up of spaces. Please re-enter a valid search text.");
return false;
}
if(ilknur2 == (str.length-1)){
alert("Search text should be over three characters long. Please re-submit your search query, exceeding the minimum allowed number of characters.");
return false;
}
if(ilknur2 == (str.length-2)){
alert("Search text should be over three characters long. Please re-submit your search query, exceeding the minimum allowed number of characters.");
return false;
}
}

function Tillah(chemin)
{
i1 = new Image;
i1.src = chemin;
html = '<HTML><HEAD><TITLE>Cempay Uluslararası Gayrimenkul</TITLE></HEAD><BODY onload=self.focus() bgcolor="#F9FAF7" LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0><div align="center"><a href="javascript:window.close()"><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+15,document.imageTest.height+35)"></a></div></BODY></HTML>';
popupImage = window.open('','ozcan','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0');
popupImage.document.open();
popupImage.document.write(html);
popupImage.document.close()
}

function uyari()
{ alert ("This section is for our registered customers only. Please sign up for a free membership to access this section. !!!"); }


function gonderme()
{
if (document.uyeform.user.value == "") {
alert ("!!! Your username is missing. Please check your username and try again. !!!")
return false;
}
else if (document.uyeform.pass.value == "") {
alert ("!!! Your password is missing. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.pass2.value == "") {
alert ("!!! You have to enter your password in both lines. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.pass.value != document.uyeform.pass2.value) {
alert ("!!! Your password does not match. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.adi.value == "") {
alert ("!!! Your name is missing. Please check your name and try again. !!!")
return false;
}
else if (document.uyeform.tel.value == "") {
alert ("!!! Your telephone number is missing. Please check your telephone number and try again. !!!")
return false;
}
else if (document.uyeform.mail.value == "") {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf("@") < 0) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf(".") < 0) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf("@") > document.uyeform.mail.value.indexOf(".")) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf(".") == document.uyeform.mail.value.length - 1) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.adres.value == "") {
alert ("!!! Your address is missing. Please check your address and try again. !!!")
return false;
}
return true;
}
function gonderme2()
{
if (document.uyeform.pass.value == "") {
alert ("!!! Your password is missing. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.pass2.value == "") {
alert ("!!! You have to enter your password in both lines. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.pass.value != document.uyeform.pass2.value) {
alert ("!!! Your password does not match. Please check your password and try again. !!!")
return false;
}
else if (document.uyeform.adi.value == "") {
alert ("!!! Your name is missing. Please check your name and try again. !!!")
return false;
}
else if (document.uyeform.tel.value == "") {
alert ("!!! Your phone number is missing. Please check your phone number and try again. !!!")
return false;
}
else if (document.uyeform.mail.value == "") {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf("@") < 0) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf(".") < 0) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf("@") > document.uyeform.mail.value.indexOf(".")) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.mail.value.indexOf(".") == document.uyeform.mail.value.length - 1) {
alert ("!!! Your E-mail address is missing. Please check your E-mail address and try again. !!!")
return false;
}
else if (document.uyeform.adres.value == "") {
alert ("!!! Your address is missing. Please check your address and try again. !!!")
return false;
}
return true;
}