if (document.images)
{
  
  home_off=new Image(); home_off.src="imagini/home_off.gif";
  home_on=new Image(); home_on.src="imagini/home_on.gif";

  statut_off=new Image(); statut_off.src="imagini/statut_off.gif";
  statut_on=new Image(); statut_on.src="imagini/statut_on.gif";

  conducere_off=new Image(); conducere_off.src="imagini/conducere_off.gif";
  conducere_on=new Image(); conducere_on.src="imagini/conducere_on.gif";

  info_off=new Image(); info_off.src="imagini/info_off.gif";
  info_on=new Image(); info_on.src="imagini/info_on.gif";

  referate_off=new Image(); referate_off.src="imagini/referate_off.gif";
  referate_on=new Image(); referate_on.src="imagini/referate_on.gif";

  program_off=new Image(); program_off.src="imagini/program_off.gif";
  program_on=new Image(); program_on.src="imagini/program_on.gif";

  firme_afl_off=new Image(); firme_afl_off.src="imagini/firme_afl_off.gif";
  firme_afl_on=new Image(); firme_afl_on.src="imagini/firme_afl_on.gif";

  firme_ats_off=new Image(); firme_ats_off.src="imagini/firme_ats_off.gif";
  firme_ats_on=new Image(); firme_ats_on.src="imagini/firme_ats_on.gif";

  contact_off=new Image(); contact_off.src="imagini/contact_off.gif";
  contact_on=new Image(); contact_on.src="imagini/contact_on.gif";

  links_off=new Image(); links_off.src="imagini/links_off.gif";
  links_on=new Image(); links_on.src="imagini/links_on.gif";

  sugestii_off=new Image(); sugestii_off.src="imagini/sugestii_off.gif";
  sugestii_on=new Image(); sugestii_on.src="imagini/sugestii_on.gif";

  indic_off=new Image(); indic_off.src="imagini/indic_off.gif";  	
  indic_on=new Image(); indic_on.src="imagini/indic_on.gif"; 
  
  util_off=new Image(); util_off.src="imagini/util_off.gif";  	
  util_on=new Image(); util_on.src="imagini/util_on.gif"; 	 	
  
}

function imageOn(imgName)
{
  if (document.images != null)
   {
    document[imgName].src = eval(imgName + "_on.src");
   }
}

function imageOff(imgName)
{
  if (document.images != null)
   {
    document[imgName].src = eval(imgName + "_off.src");
   }
}

function go()
{
    var noValue = '-99'
    var curOption = new Array();
    var val = document.myform.mylist.options[document.myform.mylist.selectedIndex].value;
    if(val != 0){
    //selectOption( document.myform.mylist.name, curOption[document.myform.mylist.name] )

    location.href = 'info.php?theanul=' + document.myform.mylist.options[document.myform.mylist.selectedIndex].value;
   }
}
function gopag()
{
    location.href = 'info.php?thenr=' + document.myform.selnr.options[document.myform.selnr.selectedIndex].value + '&' + 'theanul=' + document.myform.mylist.options[document.myform.mylist.selectedIndex].value;
}
function gotip()
{
    location.href = 'a.php?selid=' + document.frmtip.seltip.options[document.frmtip.seltip.selectedIndex].value;
}

//functii pt validare date introduse

function Validare_edit (control, sir_mesaj)
{
        alert (sir_mesaj)
        control.focus();
        return;
}

//-------------------
function verify_send(form,button)
{
	var controle,controln,controlp,controlmsg,erm,ern,erp,ermsg;
	controle=form.email;
	controln=form.nume;
	controlp=form.prenume;
	controlmsg=form.message;
	ere="Va rugam introduceti o adresa de e-mail valida";
	ern="Va rugam completati numele";
	erp="Va rugam completati prenumele";
	ermsg="Va rugam scrieti mesajul";
	if((controle.value=="") || (controle.value.indexOf("@")==-1) || (controle.value.indexOf(".")==-1) || (controln.value=="") || (controlp.value=="") || (controlmsg.value==""))
	{
		if(controln.value=="") 
                 {
                  Validare_edit(controln,ern); 
		  
                 }
		 else 
                   if(controlp.value=="") 
                    { 
                      Validare_edit(controlp,erp); 
                    }
		   else 
                     if ((controle.value=="") ||(controle.value.indexOf("@")==-1)||(controle.value.indexOf(".")==-1)) 
                       {
                        Validare_edit(controle,ere); 
                       }
                    else 
                      if(controlmsg.value=="")
                       {
                        Validare_edit(controlmsg,ermsg); 
                       }
		 				
	}
	else
	{
		form.submit();
					
	}
	
}

function popupWindow(pageref,win_name,theSize,Scroll)
  {
	if (Scroll == "undefined")
    {
      Scroll = "no"
    }

    var remote = window.open(pageref,win_name,theSize+"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars="+Scroll+",resizable=no");

	if (remote.opener == null)
       remote.opener = window;

	remote.opener.name = "main";
 }
