/**
 * Executed when document is finished loading elements into DOM
 */
$(document).ready(function()
{
	// display confirmation dialog whenever link with className "confirm" is slicked
	$(".confirm").click(function(){
		return confirm("Vai tiešām vēlaties veikt šo darbību?");
	});
	
});



/**
 * Print email link (protection from spambots)
 * If javascript is disabled, nothing is visible
 *
 * @param string p1 Part 1 - this is username
 * @param string p2 Part 2 - this is domain
 * @param string p3 Part 3 - this is TLD
 */


function loadText(text)
{
	$("#text-container").html($("#"+text).html());
}

function writemail(p1, p2, p3)
{
	document.write("<a href='mailto:"+p1+"@"+p2+"."+p3+"'>"+p1+"@"+p2+"."+p3+"</a>");
}



