﻿function LoginFormFoc()
{
	document.Login_Form.Ad.focus();
}
// Menu bit
function ChangeFocus(ElementId) { ElementId.style.backgroundColor = '#f4f4f4'; ElementId.style.borderColor = '#369EDA'; }
function ChangeBlur(ElementId) { ElementId.style.backgroundColor = '#ffffff'; ElementId.style.borderColor = ''; }

function isNumberKey(evt)
{
   var charCode = (evt.which) ? evt.which : event.keyCode
   if (charCode > 31 && (charCode < 48 || charCode > 57))
	  return false;
   return true;
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// Ajax
function islemYap(){
    var Ad = document.getElementById('Ad').value;
	var Firma = document.getElementById('Firma').value;
	var Telefon = document.getElementById('Telefon').value;
	var Email = document.getElementById('Email').value;
	var Konu = document.getElementById('Konu').value;
	var Mesaj = document.getElementById('Mesaj').value;
	var FormID = document.getElementById('FormID').value;
    
    var sc = "Ad=" + fc_(Ad) + "&Firma=" + fc_(Firma) + "&Telefon=" + fc_(Telefon) + "&Email=" + fc_(Email) + "&Konu=" + fc_(Konu) + "&Mesaj=" + fc_(Mesaj) + "&FormID=" + fc_(FormID);
    JXP(1, "form_sonuc", "send.asp", sc);
	document.getElementById('form_sonuc').style.visibility = 'visible';
}
