// JavaScript Document

/*
Submit Once form validation- 
© Dynamic Drive (www.dynamicdrive.com)
For full source code, usage terms, and 100's more DHTML scripts, visit http://dynamicdrive.com
*/

function submitonce(theform){
//if IE 4+ or NS 6+
if (document.all||document.getElementById){
//screen thru every element in the form, and hunt down "submit" and "reset"
for (i=0;i<theform.length;i++){
var tempobj=theform.elements[i]
if(tempobj.type.toLowerCase()=="submit"||tempobj.type.toLowerCase()=="reset")
//disable em
tempobj.disabled=true
}
}
}

<!--
function checking()
{
if(document.imzaform.ad.value=="")
 {
  alert("Lütfen adınızı yazınız!");
  document.imzaform.ad.focus();
  return false;
 }
 else{window.status = "";}
 
 
 if(document.imzaform.soyad.value=="")
 {
  alert("Lütfen soyadınızı yazınız!");
  document.imzaform.soyad.focus();
  return false;
 }
 else{window.status = "";}
 

  if(document.imzaform.eposta.value=="")
 {
  alert("Lütfen Eposta adresinizi yazınız!");
  document.imzaform.eposta.focus();
  return false;
 }
 else{window.status = "";}

if(document.imzaform.eposta.value.length >= 1 )
 {
  if ((document.imzaform.eposta.value.indexOf("@") == -1) || (document.imzaform.eposta.value.indexOf(".") == -1))
  {
   alert("Lütfen eposta adresinizi kontrol ediniz!");
   document.imzaform.eposta.focus();
   return false ;
  }
  else{window.status = "";}

}
}
//-->
