﻿var datepickerOptions = {
    firstDay: 1,
    dateFormat: 'dd.mm.yy',
    dayNamesMin: ['Sø', 'Ma', 'Ti', 'On', 'To', 'Fr', 'Lø'],
    monthNames: ['Januar', 'Februar', 'Marts', 'April', 'Maj', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'December']
};


$.fn.extend({
	customHover: function() {
		$(this).hover(
			function() {
				$(this).addClass("ui-state-hover");
			},
			function() {
				$(this).removeClass("ui-state-hover");
			}
		);

	},
	success: function(message) {
		$(this).css({ "color": "green", "font-weight": "normal", "font-size": "small" });
		$(this).text(message);
	},
	failure: function(message) {
		$(this).css({ "color": "red", "font-weight": "normal", "font-size": "small" });
		$(this).text(message);
	}
});


function popitup(url) {
	newwindow = window.open(url, 'name', 'height=300,width=500');
	if (window.focus) { newwindow.focus() }
	return false;
}
								
