var bul = function(e){return document.getElementById(e);}

var buton = {
	down : function(id){
		bul(id).style.marginTop="2px";
		bul(id).style.marginLeft="2px";},

	up : function(id){
		bul(id).style.marginTop="0px";
		bul(id).style.marginLeft="0px";},

	gonder : function(id){bul(id).submit();},
	
	temizle : function(id){bul(id).reset();}
}

var veri = {
	nerede : function(e,ne){
		for(i=0;i<e.length;i++){
			if(e.substring(i,i+ne.length)==ne){
				return i+1;
				break;
			}
		}
	return 0;
	}
}


var validate = {
	mail : function(e){
		var nokta	= veri.nerede(e,".")
		var at		= veri.nerede(e,"@")
		var hata	= false;

		if(nokta==0){hata=true;}
		if(at==0){hata=true;}
		if(hata){return false;}
	return true;
	},
}