function FAQ_Show(sAnswerID)
{
document.getElementById(sAnswerID).style.display = (document.getElementById(sAnswerID).style.display == "none") ? "" : "none";
}
function popUpWindow(url, windowHandle, windowProps) { 
    var newWindow = window.open(url,windowHandle,windowProps);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function popUpWindow(url, windowHandle, windowProps) { 
    var newWindow = window.open(url,windowHandle,windowProps);
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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 MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function printPage() {
  if (window.print)
    window.print()
  else
    alert("Sorry, your browser doesn't support this feature. To print this page: Please right-click and select 'Print'");
}

function check_date(field){
var checkstr = "0123456789";
var DateField = field;
var Datevalue = "";
var DateTemp = "";
var seperator = "/";
var day;
var month;
var year;
var leap = 0;
var err = 0;
var i;
   err = 0;
   DateValue = DateField.value;
   /* Delete all chars except 0..9 */
   for (i = 0; i < DateValue.length; i++) {
	  if (checkstr.indexOf(DateValue.substr(i,1)) >= 0) {
	     DateTemp = DateTemp + DateValue.substr(i,1);
	  }
   }
   DateValue = DateTemp;
   /* Always change date to 8 digits - string*/
   if (DateValue.length != 8) {
      err = 19;}
   /* year is wrong if year = 0000 */
   year = DateValue.substr(4,4);
   if (year == 0) {
      err = 20;
   }
   /* Validation of month*/
   month = DateValue.substr(0,2);
   if ((month < 1) || (month > 12)) {
      err = 21;
   }
   /* Validation of day*/
   day = DateValue.substr(2,2);
   if (day < 1) {
     err = 22;
   }
   /* Validation leap-year / february / day */
   if ((year % 4 == 0) || (year % 100 == 0) || (year % 400 == 0)) {
      leap = 1;
   }
   if ((month == 2) && (leap == 1) && (day > 29)) {
      err = 23;
   }
   if ((month == 2) && (leap != 1) && (day > 28)) {
      err = 24;
   }
   /* Validation of other months */
   if ((day > 31) && ((month == "01") || (month == "03") || (month == "05") || (month == "07") || (month == "08") || (month == "10") || (month == "12"))) {
      err = 25;
   }
   if ((day > 30) && ((month == "04") || (month == "06") || (month == "09") || (month == "11"))) {
      err = 26;
   }
   /* if 00 ist entered, no error, deleting the entry */
   if ((day == 0) && (month == 0) && (year == 00)) {
      err = 0; day = ""; month = ""; year = ""; seperator = "";
   }
   /* if no error, write the completed date to Input-Field (e.g. 13.12.2001) */
   if (err == 0) {
      DateField.value = month + seperator + day + seperator + year;
   }
   /* Error-message if err != 0 */
   else {
      alert("Date is incorrect!");
      DateField.select();
	  DateField.focus();
   }
}

function validRequired(formField,fieldLabel)
{
	var result = true;
	
	if (formField.value == "")
	{
		alert('Please enter a value for the "' + fieldLabel +'" field.');
		formField.focus();
		result = false;
	}
	
	return result;
}

function mmLoadMenus() {
  if (window.mm_menu_0712151104_0) return;
            window.mm_menu_0712151104_0 = new Menu("root",160,18,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#000000","#8EB833","#8EB833","left","middle",10,0,100,-5,7,true,true,true,0,false,true);
   mm_menu_0712151104_0.hideOnMouseOut=true;
   mm_menu_0712151104_0.bgColor='#8EB833';
   mm_menu_0712151104_0.menuBorder=1;
   mm_menu_0712151104_0.menuLiteBgColor='#666666';
   mm_menu_0712151104_0.menuBorderBgColor='#FFFFFF';
   
   
  window.mm_menu_0804224407_0 = new Menu("root",120,18,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#000000","#A8D055","#FFFFFF","left","middle",3,0,100,-5,7,true,true,true,0,false,false);

  mm_menu_0804224407_0.addMenuItem("Prezentare","location='http://www.dasib.ro/prezentare.php'");

  mm_menu_0804224407_0.addMenuItem("Servicii","location='http://www.dasib.ro/servicii.php'");

  mm_menu_0804224407_0.addMenuItem("Asistenta Sociala","location='http://www.dasib.ro/servas.php'");

  mm_menu_0804224407_0.addMenuItem("O.P.A.","location='http://www.dasib.ro/opa.php'");


   mm_menu_0804224407_0.hideOnMouseOut=true;
   mm_menu_0804224407_0.bgColor='#555555';
   mm_menu_0804224407_0.menuBorder=1;
   mm_menu_0804224407_0.menuLiteBgColor='#666666';
   mm_menu_0804224407_0.menuBorderBgColor='#FFFFFF';
   

  window.mm_menu_0804224713_0 = new Menu("root",120,18,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#000000","#A8D055","#FFFFFF","left","middle",10,0,100,-5,7,true,true,true,0,false,true);
    mm_menu_0804224713_0.addMenuItem("Acte necesare","location='http://www.dasib.ro/acte.php'");
	mm_menu_0804224713_0.addMenuItem("Formulare online", "location='http://www.dasib.ro/formulare.php'");

   mm_menu_0804224713_0.hideOnMouseOut=true;
   mm_menu_0804224713_0.bgColor='#555555';
   mm_menu_0804224713_0.menuBorder=1;
   mm_menu_0804224713_0.menuLiteBgColor='#666666';
   mm_menu_0804224713_0.menuBorderBgColor='#FFFFFF';
   
   
window.mm_menu_0804230022_0 = new Menu("root",120,18,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#000000","#A8D055","#FFFFFF","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  mm_menu_0804230022_0.addMenuItem("Sarcini si atributii","location='http://www.dasib.ro/atributii.php'");

  mm_menu_0804230022_0.addMenuItem("Conducerea","location='http://www.dasib.ro/conducerea.php'");

  mm_menu_0804230022_0.addMenuItem("Organigrama","location='http://www.dasib.ro/organigrama.php'");

  mm_menu_0804230022_0.addMenuItem("Regulament","location='http://www.dasib.ro/regulament.php'");

  mm_menu_0804230022_0.addMenuItem("Comisie","location='http://www.dasib.ro/comisia.php'");

  mm_menu_0804230022_0.addMenuItem("Proiecte","location='http://www.dasib.ro/proiecte.php'");

  mm_menu_0804230022_0.addMenuItem("Declaratii de avere","location='http://www.dasib.ro/declaratii.php'");
  mm_menu_0804230022_0.addMenuItem("Buget","location='http://www.dasib.ro/buget.php'");

   mm_menu_0804230022_0.hideOnMouseOut=true;
   mm_menu_0804230022_0.bgColor='#555555';
   mm_menu_0804230022_0.menuBorder=1;
   mm_menu_0804230022_0.menuLiteBgColor='#666666';
   mm_menu_0804230022_0.menuBorderBgColor='#FFFFFF';
   
   
   
window.mm_menu_0804230715_0 = new Menu("root",150,18,"Verdana, Arial, Helvetica, sans-serif",9,"#000000","#000000","#A8D055","#FFFFFF","left","middle",3,0,100,-5,7,true,true,true,0,false,false);
  mm_menu_0804230715_0.addMenuItem("Acte normative romanesti","location='http://www.dasib.ro/legislatie.php'");
   mm_menu_0804230715_0.addMenuItem("Alte acte normative","location='http://www.dasib.ro/actenormative.php'");
  mm_menu_0804230715_0.addMenuItem("Legislatia internationala","location='http://www.dasib.ro/legislatieint.php'");
  mm_menu_0804230715_0.addMenuItem("Legislatia A.N.P.H.","location='http://www.dasib.ro/legislatiehandi.php'");
  
	mm_menu_0804230715_0.hideOnMouseOut=true;
	mm_menu_0804230715_0.bgColor='#555555';
	mm_menu_0804230715_0.menuBorder=1;
	mm_menu_0804230715_0.menuLiteBgColor='#666666';
	mm_menu_0804230715_0.menuBorderBgColor='#FFFFFF';
mm_menu_0804230715_0.writeMenus();
} // mmLoadMenus()
-->