// JavaScript Document
function pic_open(pic, titlu, wi, he){		
	var imagine="images/pp/"+pic+".jpg";
	latime = wi;
	inaltime = he;
	wi2=wi-50;
wind = window.open('','_blank','fullscreen=0,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0, scroll=auto', 'width=800', 'height=600');
wind.resizeTo(latime+10,inaltime+14);
	x = (screen.width-latime+10)/2;
	x = x < 0 ? 0 : x;
	y = (screen.height-inaltime+14)/2;
	y = y < 0 ? 0 : y;
	wind.moveTo(x,y);
wind.document.write("<head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=iso-8859-1\"/><title>"+titlu+"</title><link href=\"css/valcon.css\" rel=\"stylesheet\" type=\"text/css\"></head><body bgcolor=\"#e8e8e8\"><table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\""+wi2+"\" align=\"center\"><tr><td bgcolor=\"#1a6384\" height=\"30\" width=\""+wi+"\" class=\"title\">"+titlu+"</td></tr><tr><td><img img src=\""+imagine+"\" alt=\"\"></td></tr><tr><td align=\"center\" height=\"30\" class=\"inchide\"><a href=\"javascript:close();\">Inchide fereastra</a></td></tr></table></body></html>");
}    
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function check() {
	if (document.getElementById('nume').value=='') {
		alert ('Va rugam introduceti numele');
		return false;
		}
	if(document.getElementById('email').value==""){
		alert("Va rugam introduceti e-mail !");
		return false;}

  		if(document.getElementById('email').value != ""){
		      if(document.getElementById('email').value.length < 6){
		            alert("Va ruga introduceti e-mail cu cel putin 6 caractere!");
		            return false;}

		      if(document.getElementById('email').value.length > 49){
		            alert("Prea multe caractere pentru e-mail. maxim 49 caractere!");
		            return false;}

		      if(document.getElementById('email').value.search("@") == -1){
		            alert("E-mail invalid. Introduceti unul nou!");
		            return false;}

		       if(document.getElementById('email').value.search("[.*]") == -1){
		            alert("E-mail invalid. Introduceti unul nou!");
		            return false;}
		
		}
	if (document.getElementById('mesaj').value=='') {
		alert ('Va rugam introduceti mesajul');
		return false;
		}
	}
