function isemail(str) {
    if (str == "" || str.indexOf('@', 0) == -1 || str.indexOf('.', 0) == -1) return false;   
    return true;
}

function validateForm()
{
	var tbAdd = document.getElementById("adsoyad");
	var tbCep   = document.getElementById("cep");
	var tbMsg= document.getElementById("mesaj");
	var securityCode = document.getElementById("textSecurityCode");
	
	//tbAdd.value = 
	
	tbAdd.value = trim(tbAdd.value);
	tbCep.value = trim(tbCep.value);
	tbMsg.value = trim(tbMsg.value);

	var message = "";
	if (tbAdd.value.length < 1) message +="* Lütfen adınızı girmeyi unutmayınız\n";
	if (tbCep.value.length < 1) message +="* Lütfen cep telefonu numaranızı giriniz\n";
	if (tbMsg.value.length < 1) message +="* İletmek için mesajınız yazınız\n";
	if (securityCode.value.length < 6 ) message +="* Güvenlik kodunu giriniz\n";	
	if (message.length > 0)
	{
		alert("Eksik bilgi girişi yapıldı \n"+message);
		return false;
	}	
	return true;	
}
function trim(str)
{
   return str.replace(/^\s*|\s*$/g,"");
}

function send()
{
	if (validateForm()) __doPostBack('SEND_FORM','');
}