function confirmLink(theLink, theSqlQuery)
{
    // Confirmation is not required in the configuration file
    // or browser is Opera (crappy js implementation)
    if (confirmMsg == '' || typeof(window.opera) != 'undefined') {
        return true;
    }

    var is_confirmed = confirm(confirmMsg + ' \n\n' + theSqlQuery);
    if (is_confirmed) {
        if ( typeof(theLink.href) != 'undefined' ) {
            theLink.href += '&is_js_confirmed=1';
            // alert(confirmMsg + ' :\n' + theSqlQuery + ' :\n' +theLink);
        } else if ( typeof(theLink.form) != 'undefined' ) {
            theLink.form.action += '?is_js_confirmed=1';
        }
    }

    return is_confirmed;
} // end of the 'confirmLink()' function

function ShowHide(id)
	{
	document.getElementById(id).style.display = (document.getElementById(id).style.display == "none") ? "block" : "none";
	}
	
function SetNewDate(NameField) {
      var formularz = document.forms[0]; // document.forms["NameForm"]; 
	    for (var j=0;j<formularz.length;j++) 
	    {
	     var temp=formularz.elements[j];
	       //if (temp.type=="text" && temp.name.slice(0,4)=='data')
	       if (temp.type=="text" && temp.name.search(/elementywznowienia_Data/)!=-1)
	       {
	       	temp.value=NameField.value;
	       }
	    }
} // end SetDate
