function confirm_windows (question, positive, negative, el) {
	confirm_windows_area = document.getElementById("confirm_windows_area");
	positive_link_path = el.href;
	confirm_windows_area.innerHTML = 
		'<div class="windows">'+
			'<div class="question">'+question+'</div>'+
			'<div class="answer">'+
				'<a href="'+positive_link_path+'" class="positive">'+positive+'</a>'+
				'<a href="#" class="negative" onclick="close_confirm_windows()">'+negative+'</a>'+
			'</div>'+
		'</div>';
	
	confirm_windows_area.style.display = 'block';
	
	return false;
}

function close_confirm_windows () {
	confirm_windows_area = document.getElementById("confirm_windows_area");
	confirm_windows_area.innerHTML = '';
	confirm_windows_area.style.display = 'none';
	
	return false;
}

function submitEnable() {
	var el = $('input[type=submit]');
	
	if (el.attr('disabled') == 'disabled') 
		el.attr('disabled', false); 
	else 
		el.attr('disabled', true); 
}

function submitForm(id) {
	document.getElementById(id).submit();
}

function clickElement(id) {
	document.getElementById(id).click();
}

function redirect(url) {
	window.location.href = url;
}