function selectUserType(elem)
{
	document.userType.submit();
}


urlParam = function(name){
	var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
	if(results)
		return results[1] || 0;
	else
		return 0;
}



/* Pomocne */

function addslashes(str) {
	str=str.replace(/\\/g,'\\\\');
	str=str.replace(/\'/g,'\\\'');
	str=str.replace(/\"/g,'\\"');
	str=str.replace(/\0/g,'\\0');
return str;
}
function stripslashes(str) {
	str=str.replace(/\\'/g,'\'');
	str=str.replace(/\\"/g,'"');
	str=str.replace(/\\0/g,'\0');
	str=str.replace(/\\\\/g,'\\');
return str;
}
function getElementHeight(elem) {
	xPos = elem.offsetHeight;
	return xPos;

}

function getElementWidth(elem) {
	xPos = elem.offsetWidth;
	return xPos;
}
function confirmAction(word,node)
{
	//Potvrzení akce, pokud je zadán uzel, bude smazán
	var a=confirm('Opravdu si přejete '+word );
	if(node!=null)
	{
		if(a)
		{
			removePicture(node.parentNode);
		}
		return false;	
	}
	else
	{
		return a;
	}
}

