var dom = true;
if (!document.getElementById) dom = false;
if (!document.getElementById && document.all) {document.getElementById = document.all; dom = true;}
isIE = (document.all && !window.opera) ? true:false;
function objekt(what) {return document.getElementById(what);}

function isEmpty(e) {
  return ((e == null) || (e.length == 0));
}

function isEmail(mail) {
  re = /^[_a-zA-Z0-9\.\-]+@[_a-zA-Z0-9\.\-]+\.[a-zA-Z]{2,7}$/;
  return mail.search(re) == 0;
}

function isInt(value){
  if (parseInt(value).toString() == value.toString() && !isNaN(value)){
    return true;
  } else {
    return false;
  }
}

function isFloat(value){
  return value.search(/^((\d+(\.\d*)?)|((\d*\.)?\d+))$/) == 0;
}

function navigate(month,year,evt) {
  $.ajax({
	url: "/?formType=calendar&month="+month+"&year="+year+"&event="+evt,
	success: function(data) {
    $('#calendar').html(data);
//    $('#calendarevent').html('');
  }});
}

function event(evt) {
  $.ajax({
	url: "/?formType=calendarEvent"+"&event="+evt,
	success: function(data) {
    $('#calendarevent').html(data);
  }});
}
