// returns the actual date
// format: dd.mm.yyyy
// mk-it Solutions
// 2004-08-26
function actualDate()
{
  var actualTime = new Date();
  var day = actualTime.getDate();
  var month = actualTime.getMonth() + 1;
  var year = actualTime.getYear();

  if(year < 999) year += 1900;
  var dummyDay = ((day < 10) ? "0" : "");
  var dummyMonth= ((month < 10) ? ".0" : ".");
  var actDate = dummyDay + day + dummyMonth + month  + "." + year;
  return (actDate);
}

// check if cookie has been set
// mk-it Solutions
// 2004-08-26
function checkCookie(name)
{
  // check cookie
  if(document.cookie)
  {
    var co = document.cookie;
    var coName = name + "=";
    var a = co.indexOf(coName);
    var coValue = new String();
    var found = new Boolean();
    var search = new RegExp(name, "i");
    coValue = co.slice(a);
    found = search.test(coValue);

    if(found)
      return 1;
  }
   
  return 0;
}

// submit a form
// mk-it Solutions
// 2007-03-14
function fsubmit(formNumber)
{
  document.forms[formNumber].submit();
}

