var kpa,durum;
function mover(){
	window.status="üstünde";
	if(kpa!=undefined){
	  	clearTimeout(kpa);
	}
	document.getElementById('submenu1').style.display='inline';
	durum=false;
}
function mout(delay){
	window.status="çıktı";
	durum=true;
	var kpa=setTimeout("mdumpout()",delay);
}
function mdumpout(){
	if(durum){
	  	document.getElementById("submenu1").style.display="none";
	}
}
function wOP(genislik,yukseklik,url,html){
ex=parseInt(( screen.width)/2-(genislik/2));
ey=parseInt((screen.height)/2-(yukseklik/2));
if(!html){
	wox=window.open("","","top="+ey+",left="+ex+",width="+genislik+",height="+(yukseklik+27)+",resizable=false");
	wox.document.write("<style>body{margin:0px;background:#000000;overflow:hidden;}.callbackbutton{background: #676767;border: solid 1px #999999;height: 17px;color: #5f5f5f;font-size: 11px;margin-top: 5px;margin-bottom: 5px;color: white;}</style>");
	wox.document.write("<input type=\"button\" value=\"Click to print map\" class=\"callbackbutton\" onclick=\"window.print();return false;\"><img src=\""+url+"\" border=\"0\">");
}else{
	window.open(url,"","top="+ey+",left="+ex+",width="+genislik+",height="+yukseklik+",resizable=false");
}
}
function formKontrol(space){
	space=space.split(",");
	for(i=0;i<space.length;i++){
		if(document.form1[space[i]].value==""){
			alert("Please fill out the necessary fields");
			return false;
		}
	}
}
function formKontrol2(space){
	space=space.split(",");
	for(i=0;i<space.length;i++){
		if(document.form1[space[i]].value==""){
			alert("Please fill out the "+space[i]+" field.");
			return false;
		}
	}
}
function validatePhone(txt){
	var error="";
    if (txt.value == "") {
        error = "You didn't enter a phone number.\n";
    } else if (isNaN(parseInt(txt))) {
        error = "The phone number contains illegal characters.\n";
    } else if (txt.indexOf("-")==-1) {
        error = "Invalid Telephone Number\nExample Number : 1-851-6328892\n(Country Code - Area Code - Telephone Number)";
    }else if(txt.indexOf("-",txt.indexOf("-")+1)==-1){
    	error = "Invalid Telephone Number\nExample Number : 1-851-6328892\n(Country Code - Area Code - Telephone Number)";
    }
    
	if(error!=""){
    	alert(error);
    	return false;
    }else{
    	return true;
    }
}
function fordfocus(obj,way,oldtext){
	if(way){
		if(obj.value==oldtext){
			obj.style.color="#FFFFFF";
			obj.value="";
		}
	}else{
		if(obj.value==""){obj.style.color="#BBBBBB";obj.value=oldtext;}
	}
}
function fordfocus2(obj,way,oldtext){
	if(way){
		if(obj.value==oldtext){
			obj.style.color="#000000";
			obj.value="";
		}
	}else{
		if(obj.value==""){obj.style.color="#BBBBBB";obj.value=oldtext;}
	}
}