function confirmation(link, message) {
	if(typeof(window.opera) != 'undefined') {
		return true;
	}
	var confirmed = confirm(message);

	if (confirmed) {
		if(typeof(link.href) != 'undefined') {
			link.href += '&jsConfirmed=1';
		}
	}

	return confirmed;
}
function confirmForm (message) {
	var agree=confirm(message);
	if (agree) {
		return true ;
	} else {
		return false ;
	}
}

function datum(divname, form,element) {
	vardatum = document.forms[form].elements[element].value;
	div = document.getElementById(divname);
	div.style.position='absolute';
	div.style.cssFloat='left';
	div.style.display='inline';
	div.style.marginLeft='10px';
	div.style.width='197px';
	div.style.height='180px';
	str = '<html><head></head><body><iframe src="/admin/Calendar?date='+vardatum+'&form='+form+'&element='+element+'&div='+divname+'" width="197" height="180" scrolling="no" frameborder="0"></iframe></body></html>'
	div.innerHTML = str;
}

