// JavaScript Document

// form submit
function formSubmit(element)
	{
	document.forms[element].submit();
	}

// Ajax

url = document.location.href;
	xend = url.lastIndexOf("/") + 1;
	var base_url = url.substring(0, xend);
	
	function ajax_do (url) {
			// Does URL begin with http?
			if (url.substring(0, 4) != 'http') {
					url = base_url + url;
			}
	
			// Create new JS element
			var jsel = document.createElement('SCRIPT');
			jsel.type = 'text/javascript';
			jsel.src = url;
	
			// Append JS element (therefore executing the 'AJAX' call)
			document.body.appendChild (jsel);
	}
	function showBigPic(url)
	{
		document.getElementById('bigPic').style.background='url('+ url +') no-repeat center';
	}
 function openWin(link, handler, width, height) {
 	  window.open(link, handler, 'scrollbars=0, statusbar=1, width='+width+', height='+height+', ScreenX=100, ScreenY=50');
}
 function actions(link, handler, width, height) {
    window.open(link, handler, 'scrollbars=1, statusbar=1, width='+width+', height='+height+', ScreenX=100, ScreenY=50');
}

// printare

	function printpage() 
	{
		window.print();  
	}
	