function overPic( idItem )
{
  window.document.getElementById( idItem ).style.display = 'block';
}

function outPic( idItem )
{
  window.document.getElementById( idItem ).style.display = 'none';
}

function openPhoto( path, alt, w, h, titl )
{
        var wo = window.open( '', '_photo', 'width=' + w + ', height=' + h + ',scrollbars=0, menubar=0, titlebar=0, status=0, directories=0, resizable=0' );
        wo.document.write('<html>');
        wo.document.write('<head>');
        wo.document.write('<title>' + titl + '</title>');
        wo.document.write('</head>');
        wo.document.write('<body leftmargin=0 topmargin=0 marginheight=0 marginwidth=0 bgcolor="#FFFFFF">');
        wo.document.write('<img style="cursor:pointer" src="' + path + '" border="0" vspace="0" hspcae="0" alt="' + alt +'" title="' + alt +'" OnClick="window.close();">');
        wo.document.write('</body>');
        wo.document.write('</html>');
        wo.focus();
        return false;
}


function enabledSubmit()
{
  var userName     = window.document.getElementById('userName');
  var phoneNumber  = window.document.getElementById('phoneNumber');
  var isWho        = window.document.getElementById('isWho');
  var adress       = window.document.getElementById('adress');
  var dateTo       = window.document.getElementById('dateTo');
  var timeTo       = window.document.getElementById('timeTo');
  var money        = window.document.getElementById('money');
  var goSubmit     = window.document.getElementById('submitButton');

  if( (userName.value == "") || (phoneNumber.value == "") || (isWho.value == "") || (adress.value == "") || (dateTo.value == "") || (timeTo.value == "") || (money.value == "") )
  {
    goSubmit.disabled = true;
  } else {
      goSubmit.disabled = false;
    }
  return true;
}