function ValidateEmail(theinput)
{
	var s=theinput.value
	if(s.search)
	{
		return (s.search(new RegExp('^([-!#$%&\'*+./0-9=?A-Z^_`a-z{|}~'+unescape('%7F')+'])+@([-!#$%&\'*+/0-9=?A-Z^_`a-z{|}~'+unescape('%7F')+']+\\.)+[a-zA-Z]{2,6}$','gi'))>=0)
	}
	if(s.indexOf)
	{
		var at_character=s.indexOf('@')
		if(at_character<=0 || at_character+4>s.length)
			return false
	}
	if(s.length<6)
		return false
	else
		return true
}

function ValidateHizmet(theform)
{

	var e='', i={}, f='', r, s
	r=theform['firma']
	r.className=''
	r=theform['yetkili']
	r.className=''
	r=theform['adres']
	r.className=''
	r=theform['telefon']
	r.className=''	
	r=theform['eposta']
	r.className=''
		
	if ((!i['firma']
	&& (theform['firma'].value==''))
	|| (theform['firma'].value.length<3))
	{
		r=theform['firma']
		r.className='invalid'
		if(e=='')
			f='firma'
		else
			e+='\n'
		e+='- Lütfen firma adını giriniz.'
		i['firma']=true;
	}

	if(!i['yetkili']
	&& ((theform['yetkili'].value.search
	&& theform['yetkili'].value.search(new RegExp('^[a-zA-Z çşğüıöÖÇŞİÜĞ]+$','g'))==-1)))
	{
		r=theform['yetkili']
		r.className='invalid'
		if(e=='')
			f='yetkili'
		else
			e+='\n'
		e+='- Yetkili adı sadece harf içerebilir.'
		i['yetkili']=true;
	}
	
	if ((!i['adres']
	&& (theform['adres'].value==''))
	|| (theform['adres'].value.length<3))
	{
		r=theform['adres']
		r.className='invalid'
		if(e=='')
			f='adres'
		else
			e+='\n'
		e+='- Lütfen adres giriniz.'
		i['adres']=true;
	}

	if ((!i['telefon']
	&& (theform['telefon'].value==''))
	|| (theform['telefon'].value.length<3))
	{
		r=theform['telefon']
		r.className='invalid'
		if(e=='')
			f='telefon'
		else
			e+='\n'
		e+='- Lütfen telefon numarası giriniz.'
		i['telefon']=true;
	}		

	if(!i['eposta']
	&& (ValidateEmail(theform['eposta'])==false))
	{
		r=theform['eposta']
		r.className='invalid'
		if(e=='')
			f='eposta'
		else
			e+='\n'
		e+='- Email adresi hatalı.'
		i['eposta']=true;
	}
	
	if(e!='')
	{
		if(theform[f].focus)
			theform[f].focus()
		alert(e)
		form_submitted=false
		return false
	}
	return true
}

function  ValidateTedarikci(theform)
{

	var e='', i={}, f='', r, s
	r=theform['firma']
	r.className=''
	r=theform['yetkili']
	r.className=''
	r=theform['adres']
	r.className=''
	r=theform['telefon']
	r.className=''	
	r=theform['eposta']
	r.className=''
	r=theform['firmaKategori']
	r.className=''
			
	if ((!i['firma']
	&& (theform['firma'].value==''))
	|| (theform['firma'].value.length<3))
	{
		r=theform['firma']
		r.className='invalid'
		if(e=='')
			f='firma'
		else
			e+='\n'
		e+='- Lütfen firma adını giriniz.'
		i['firma']=true;
	}

	if(!i['yetkili']
	&& ((theform['yetkili'].value.search
	&& theform['yetkili'].value.search(new RegExp('^[a-zA-Z çşğüıöÖÇŞİÜĞ]+$','g'))==-1)))
	{
		r=theform['yetkili']
		r.className='invalid'
		if(e=='')
			f='yetkili'
		else
			e+='\n'
		e+='- Yetkili adı sadece harf içerebilir.'
		i['yetkili']=true;
	}
	
	if ((!i['adres']
	&& (theform['adres'].value==''))
	|| (theform['adres'].value.length<3))
	{
		r=theform['adres']
		r.className='invalid'
		if(e=='')
			f='adres'
		else
			e+='\n'
		e+='- Lütfen adres giriniz.'
		i['adres']=true;
	}

	if ((!i['telefon']
	&& (theform['telefon'].value==''))
	|| (theform['telefon'].value.length<3))
	{
		r=theform['telefon']
		r.className='invalid'
		if(e=='')
			f='telefon'
		else
			e+='\n'
		e+='- Lütfen telefon numarası giriniz.'
		i['telefon']=true;
	}		

	if(!i['eposta']
	&& (ValidateEmail(theform['eposta'])==false))
	{
		r=theform['eposta']
		r.className='invalid'
		if(e=='')
			f='eposta'
		else
			e+='\n'
		e+='- Email adresi hatalı.'
		i['eposta']=true;
	}
	
	if ((!i['firmaKategori']
	&& (theform['firmaKategori'].value==0)))
	{
		r=theform['firmaKategori']
		r.className='invalid'
		if(e=='')
			f='firmaKategori'
		else
			e+='\n'
		e+='- Lütfen firma kategori seçiniz giriniz.'
		i['firmaKategori']=true;
	}	
	
	if(e!='')
	{
		if(theform[f].focus)
			theform[f].focus()
		alert(e)
		form_submitted=false
		return false
	}
	return true
}

function  ValidateIsBasvuru(theform)
{
	var e='', i={}, f='', r, s
	r=theform['adSoyad']
	r.className=''
	r=theform['dogumTarihi']
	r.className=''
	r=theform['dogumyeri']
	r.className=''
	r=theform['uyruk']
	r.className=''	
	r=theform['adres']
	r.className=''
	r=theform['sehir']
	r.className=''
	r=theform['telefon']
	r.className=''
	r=theform['cepTelefon']
	r.className=''
	r=theform['eposta']
	r.className=''
	r=theform['minumumUcret']
	r.className=''

	if(!i['adSoyad']
	&& ((theform['adSoyad'].value.search
	&& theform['adSoyad'].value.search(new RegExp('^[a-zA-Z çşğüıöÖÇŞİÜĞ]+$','g'))==-1)))
	{
		r=theform['adSoyad']
		r.className='invalid'
		if(e=='')
			f='adSoyad'
		else
			e+='\n'
		e+='- Lütfen adınızı giriniz.'
		i['adSoyad']=true;
	}

	if ((!i['dogumTarihi']
	&& (theform['dogumTarihi'].value==''))
	|| (theform['dogumTarihi'].value.length<3))
	{
		r=theform['dogumTarihi']
		r.className='invalid'
		if(e=='')
			f='dogumTarihi'
		else
			e+='\n'
		e+='- Lütfen doğum tarihinizi giriniz.'
		i['dogumTarihi']=true;
	}	
	
	if ((!i['dogumyeri']
	&& (theform['dogumyeri'].value==''))
	|| (theform['dogumyeri'].value.length<3))
	{
		r=theform['dogumyeri']
		r.className='invalid'
		if(e=='')
			f='dogumyeri'
		else
			e+='\n'
		e+='- Lütfen doğum yerini giriniz.'
		i['dogumyeri']=true;
	}	

	if ((!i['uyruk']
	&& (theform['uyruk'].value==''))
	|| (theform['uyruk'].value.length<3))
	{
		r=theform['uyruk']
		r.className='invalid'
		if(e=='')
			f='uyruk'
		else
			e+='\n'
		e+='- Lütfen uyruğunuzu giriniz.'
		i['uyruk']=true;
	}	
	
	if ((!i['adres']
	&& (theform['adres'].value==''))
	|| (theform['adres'].value.length<3))
	{
		r=theform['adres']
		r.className='invalid'
		if(e=='')
			f='adres'
		else
			e+='\n'
		e+='- Lütfen adres giriniz.'
		i['adres']=true;
	}

	if ((!i['sehir']
	&& (theform['sehir'].value==''))
	|| (theform['sehir'].value.length<3))
	{
		r=theform['sehir']
		r.className='invalid'
		if(e=='')
			f='sehir'
		else
			e+='\n'
		e+='- Lütfen yaşadığınız şehri giriniz.'
		i['sehir']=true;
	}	
		
	if ((!i['telefon']
	&& (theform['telefon'].value==''))
	|| (theform['telefon'].value.length<3))
	{
		r=theform['telefon']
		r.className='invalid'
		if(e=='')
			f='telefon'
		else
			e+='\n'
		e+='- Lütfen telefon numarası giriniz.'
		i['telefon']=true;
	}		

	if ((!i['cepTelefon']
	&& (theform['cepTelefon'].value==''))
	|| (theform['cepTelefon'].value.length<3))
	{
		r=theform['cepTelefon']
		r.className='invalid'
		if(e=='')
			f='cepTelefon'
		else
			e+='\n'
		e+='- Lütfen cep telefon numaranızı giriniz.'
		i['cepTelefon']=true;
	}		
	
	if(!i['eposta']
	&& (ValidateEmail(theform['eposta'])==false))
	{
		r=theform['eposta']
		r.className='invalid'
		if(e=='')
			f='eposta'
		else
			e+='\n'
		e+='- Email adresi hatalı.'
		i['eposta']=true;
	}
	
	if ((!i['minumumUcret']
	&& (theform['minumumUcret'].value==''))
	|| (theform['minumumUcret'].value.length<3))
	{
		r=theform['minumumUcret']
		r.className='invalid'
		if(e=='')
			f='minumumUcret'
		else
			e+='\n'
		e+='- Lütfen minumum ücret talebinizi giriniz.'
		i['minumumUcret']=true;
	}		

	
	if(e!='')
	{
		if(theform[f].focus)
			theform[f].focus()
		alert(e)
		form_submitted=false
		return false
	}
	return true
}

function ValidateBizeUlasin(theform)
{

	var e='', i={}, f='', r, s
	r=theform['adsoyad']
	r.className=''
	r=theform['cepTelefon']
	r.className=''
	r=theform['eposta']
	r.className=''
	r=theform['mesaj']
		
	if ((!i['adsoyad']
	&& (theform['adsoyad'].value==''))
	|| (theform['adsoyad'].value.length<3))
	{
		r=theform['adsoyad']
		r.className='invalid'
		if(e=='')
			f='adsoyad'
		else
			e+='\n'
		e+='- Lütfen adınızı giriniz.'
		i['adsoyad']=true;
	}

	if(!i['adsoyad']
	&& ((theform['adsoyad'].value.search
	&& theform['adsoyad'].value.search(new RegExp('^[a-zA-Z çşğüıöÖÇŞİÜĞ]+$','g'))==-1)))
	{
		r=theform['adsoyad']
		r.className='invalid'
		if(e=='')
			f='adsoyad'
		else
			e+='\n'
		e+='- Adınız sadece harf içerebilir.'
		i['adsoyad']=true;
	}
	
	if ((!i['cepTelefon']
	&& (theform['cepTelefon'].value==''))
	|| (theform['cepTelefon'].value.length<3))
	{
		r=theform['cepTelefon']
		r.className='invalid'
		if(e=='')
			f='cepTelefon'
		else
			e+='\n'
		e+='- Lütfen cepTelefon numarası giriniz.'
		i['cepTelefon']=true;
	}		

	if(!i['eposta']
	&& (ValidateEmail(theform['eposta'])==false))
	{
		r=theform['eposta']
		r.className='invalid'
		if(e=='')
			f='eposta'
		else
			e+='\n'
		e+='- Email adresi hatalı.'
		i['eposta']=true;
	}

	if ((!i['mesaj']
	&& (theform['mesaj'].value==''))
	|| (theform['mesaj'].value.length<3))
	{
		r=theform['mesaj']
		r.className='invalid'
		if(e=='')
			f='mesaj'
		else
			e+='\n'
		e+='- Lütfen mesajınızı giriniz.'
		i['mesaj']=true;
	}

	if(e!='')
	{
		if(theform[f].focus)
			theform[f].focus()
		alert(e)
		form_submitted=false
		return false
	}
	return true
}