function careerJobSearchCheck()
{
	var defKeywords = "Cauta joburi";
	if(document.form3.c_keywords.value==defKeywords) document.form3.c_keywords.value='';
}
function recommendArticleCheck()
{
	var ok = true;
	if(ok==true)
	{
		if(document.recomanda.ownName.value.length < 2) { alert("Nu ati introdus numele dvs."); ok=false;}
	}
	if(ok==true)
	{
		if(document.recomanda.ownEmail.value.length<2) { alert("Nu ati introdus emailul dvs."); ok=false;}
	}
	if(ok==true)
	{
		if(!check_mail(document.recomanda.ownEmail.value)) { alert("Introduceti o adresa de email valida\n"); ok=false;}
	}
	if(ok==true)
	{
		if(document.recomanda.friendName.value.length<2) { alert("Nu ati introdus numele prietenului dvs."); ok=false;}
	}
	if(ok==true)
	{
		if(document.recomanda.friendEmail.value.length<2) { alert("Nu ati introdus emailul prietenului dvs."); ok=false;}
	}
	if(ok==true)
	{
		if(!check_mail(document.recomanda.friendEmail.value)) { alert("Introduceti o adresa de email valida\n"); ok=false;}
	}
	if(ok==true)
	{
		if(document.recomanda.message.value.length<2) {alert("Nu ati introdus mesajul"); ok=false;}
	}
	return ok;
}
function commentCheck()
{
	var ok = true;
	if(document.comment.commentText.value.length < 2)
	{
		alert("Nu ati introdus comentariu");
		ok = false;
	}
	return ok;
}
function addTestimonialCheck()
{
	var ok = true;
	if (document.getElementById("text").value.length < 2)
	{
		alert("Nu ai completat povestea ta de succes!");
		ok = false;
	}
	if (ok)
	{
		if (document.getElementById("poza").value == '')
		{
			alert("Nu ai selectat poza!");
			ok = false;
		}
	}
	return ok;
}
function joboscopeNameCheck()
{
	var ok = true;
	if (document.getElementById("jName").value.length < 2 || document.getElementById("jName").value == "Numele tau")
	{
		alert("Va rugam introduceti numele!");
		ok = false;
	}
	if(ok)
		document.getElementById('joboscopForm').submit();
	else
		return false;
}
function joboscopeSendMailCheck()
{
	var ok = true;
	if (document.getElementById("ownName").value.length < 2 || document.getElementById("ownName").value == "Numele tau")
	{
		alert("Va rugam introduceti numele!");
		ok = false;
	}
	if (ok)
	{
		if (!check_mail(document.getElementById("friendEmail").value) || document.getElementById("friendEmail").value == "Email prieten")
		{
			alert("Va rugam sa introduceti o adresa de mail valida!");
			ok = false;
		}
	}
	if(ok)
		document.getElementById('friendForm').submit();
	else
		return false;
}
$(document).ready(function() {
	$('a[name=open-send-section]').click(function (e) {
		e.preventDefault();
		if ($('#sendFriendDiv').is(':hidden')) {
			$('#sendFriendDiv').slideDown('normal');
		} else {
			$('#sendFriendDiv').slideUp('normal');
		}
	});
});