function menuAdayOver(satir){ 
		satir.style.backgroundColor = '#A7B9C8';
}
function menuAdayOut(satir){ 
		satir.style.backgroundColor = '';
}
function listeOver(satir){ 
		satir.style.backgroundColor = '#CCCCCC';
}
function listeOut(satir){ 
		satir.style.backgroundColor = '';
}
function listeOver2(satir){ 
		satir.style.backgroundColor = '#d9cfba';
}
function listeOut2(satir){ 
		satir.style.backgroundColor = '#FFFFFF';
}
function Trim(value)
{
	value = value.match(/^\s*(\S+(\s+\S+)*)\s*$/);
	return (value == null) ? "" : value[1];
}
function Only_LetterANDDigit(e) {	
	//alert(window.event.srcElement.value);
	var whichCode = (window.Event) ? e.which : e.keyCode; 
	
	
	if (whichCode <14) return true;  // Tab
	if (whichCode > 47 && whichCode < 58) return true;
	if (whichCode > 96 && whichCode < 123) return true;
	if (whichCode > 64 && whichCode < 91) return true;

	var validChars="üÜðÐýþÞÝçÇöÖ ";

	for (i=0; i<validChars.length; i++)
	{
		if (whichCode==validChars.charCodeAt(i)) return true;
	}
	
	return false;

}
function Only_Digit(e) {	
	//alert(window.event.srcElement.value);
	var whichCode = (window.Event) ? e.which : e.keyCode;
	
	if (whichCode == 13) return true;  // Enter
	if (whichCode > 57 ){
	return false;}
	if (whichCode < 48 && whichCode > 13){ 
	return false;}
}
function izinYok2() {	
	if (window.event && window.event.keyCode == 8) {
        // try to cancel the backspace
        window.event.cancelBubble = true;
        window.event.returnValue = false;
        return false;
    }
}
function popupSelect2(adres,dil)
{
	var dest = adres+".asp?lng="+dil+"&baba=3012";
	detail_window = window.open(dest, "displayWindow", "width=300,height=250,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no");
	self.name = "anne";
	return false;
}
function popupSelect(adres)
{
	var dest = adres+".asp?baba=3012";
	detail_window = window.open(dest, "displayWindow", "width=300,height=250,scrollbars=yes,resizable=no,toolbar=no,location=no,menubar=no,status=no");
	self.name = "anne";
	return false;
}
function fieldReset(field)
{
	document.getElementById(field).value="";
	return false;
}
function fieldReset2(field1,field2)
{
	document.getElementById(field1).value="";
	document.getElementById(field2).value="";
	return false;
}
function replace2(s, from1, to1) {
	var p,str;
	str=s;
	p = str.indexOf(from1);
	while (p > -1) {
		str=str.substring(0, p) + to1 + str.substring(p+from1.length);
		p = str.indexOf(from1);
	}
	return str;
}
function Amount_onkeypress() {	
	if (window.event.keyCode<48 || window.event.keyCode>57){
	return false;}
}
function L5(lnk) {	
	document.location.href=lnk;
}

