var isSubmited = false;
var clickContor = 0;

function clickstop() {
	clickContor++;
	if (clickContor > 5) {
		alert("You click to fast. Please wait page reload or reload your page now.");
	}
	if (!isSubmited) {
		isSubmited = true;
		return true;
	}
	return false;
}

function showPopup(selector, event) {
	jQuery(selector).css("visibility", "visible");
	if (!event)
		var event = window.event;
	event.cancelBubble = true;
	if (event.stopPropagation)
		event.stopPropagation();
	jQuery(selector).outerClick(function(event) {
		hidePopup(selector);
	});
}

function hidePopup(selector) {
	jQuery(selector).css("visibility", "hidden");
	jQuery(selector).unbind('outerClick');
}

function addToBookmark(title, url) {
	if (document.all)
		window.external.AddFavorite(url, title);
	else if (window.sidebar)
		window.sidebar.addPanel(title, url, "");
}