function view_video(){
	var we=640
	var hi=517
	var top=100
	var left=100

	var features = "width="+we+", height="+hi+", top="+top+", left="+left+", scrollbars=no";
	w=window.open('/video.html',"details",features);
	w.focus();
}

function check_form()
{

	if (document.comanda.ESTI_O_PERSOANA_SOCIABILA[0].checked==false && document.comanda.ESTI_O_PERSOANA_SOCIABILA[1].checked==false && document.comanda.ESTI_O_PERSOANA_SOCIABILA[2].checked==false){
		alert("Va rugam selectati pentru a continua.");
		document.comanda.ESTI_O_PERSOANA_SOCIABILA[0].focus();
		return false;
	}


	if (document.comanda.ESTI_O_PERSOANA_DESCHISA_NOULUI[0].checked==false && document.comanda.ESTI_O_PERSOANA_DESCHISA_NOULUI[1].checked==false && document.comanda.ESTI_O_PERSOANA_DESCHISA_NOULUI[2].checked==false){
		alert("Va rugam selectati pentru a continua.");
		document.comanda.ESTI_O_PERSOANA_DESCHISA_NOULUI[0].focus();
		return false;
	}

	if (document.comanda.TE_VEZI_IN_POSTURA_DE_LIDER[0].checked==false && document.comanda.TE_VEZI_IN_POSTURA_DE_LIDER[1].checked==false && document.comanda.TE_VEZI_IN_POSTURA_DE_LIDER[2].checked==false){
		alert("Va rugam selectati pentru a continua.");
		document.comanda.TE_VEZI_IN_POSTURA_DE_LIDER[0].focus();
		return false;
	}
/*
	if (document.comanda.motive_serioase.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.motive_serioase.focus();
		return false;
	}
*/
	if (document.comanda.NUMELE_SI_PRENUMELE.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.NUMELE_SI_PRENUMELE.focus();
		return false;
	}

	if (document.comanda.CNP.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.CNP.focus();
		return false;
	}		
	
	if (document.comanda.TELEFON_MOBIL.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.TELEFON_MOBIL.focus();
		return false;
	}		
	
	if (document.comanda.E_MAIL.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.E_MAIL.focus();
		return false;
	}

	if (document.comanda.ADRESA.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.ADRESA.focus();
		return false;
	}

	if (document.comanda.LOCALITATE.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.LOCALITATE.focus();
		return false;
	}

	if (document.comanda.JUDET.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.JUDET.focus();
		return false;
	}
	
	if (document.comanda.COD_POSTAL.value=="") {
		alert("Va rugam completati pentru a continua.");
		document.comanda.COD_POSTAL.focus();
		return false;
	}

	
	
	if (document.comanda.CE_OPTEZI[0].checked==false && document.comanda.CE_OPTEZI[1].checked==false){
		alert("Va selectati pentru a continua.");
		document.comanda.CE_OPTEZI[0].focus();
		return false;
	}

	

	return true;
}

function show_this()
{
	$("div.Layer1").fadeIn("slow");

}
function close_this(){
	$("div.Layer1").fadeOut("slow");
}

function alert_msg(){
	alert("Cererea a fost trimisa. Va multumim.");
}
