function DeleteRecord(inPitanje, inKey, inAddQryString, inDataToDelete) {
	if (window.confirm(inPitanje + '\n' + inDataToDelete)) {
		var aspnetForm = document.getElementById("aspnetForm");
		aspnetForm.action = '?RecAct=3&DelKey=' + inKey + inAddQryString;
		aspnetForm.submit();
		return true;
	}
	else
	{ return false; }
}
//-----------------------------------------------------------------------------

function ShowPopUp(inURL) {
var Height = 480;
var Width = 640;
				
if (inURL.toLowerCase().lastIndexOf("aspx") != -1) {
Height=600; Width=900; }
return window.open(inURL, "", "width=" + Width + ",height=" + Height + ",location=yes,toolbar=yes,resizable=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,copyhistory=yes");
}
//-----------------------------------------------------------------------------


function jsRowOver(inObj, inSelRowColor, inSelRowTextColor)
{
	inObj.style.cursor = 'pointer';
	inObj.style.backgroundColor = inSelRowColor;
	inObj.style.color = inSelRowTextColor;
}

function jsRowOut(inObj, inRowColor, inRowTextColor) {
	inObj.style.cursor = 'auto';
	inObj.style.backgroundColor = inRowColor;
	inObj.style.color = inRowTextColor;
}

/* Toggle Display */
function tglCat(id, inbFilter, inImageName, inLevel, inImagePrefix) {
	if (document.getElementById) {

		if (document.getElementById(id).style.display == "none") {
			eval("document.getElementById(id).style.display = \"\"");
			if (inbFilter == 1)
			{ document.getElementById(inImageName).src = inLevel + "images/" + inImagePrefix + "minus.gif"; }
		}

		else {
			eval("document.getElementById(id).style.display = \"none\"");
			if (inbFilter == 1)
			{ document.getElementById(inImageName).src = inLevel + "images/" + inImagePrefix + "plus.gif"; }
		}
	} else {
		if (document.layers) {
			if (document.layers[id].display = "none") {
				document.layers[id].display = "";
			} else {
				document.layers[id].display = "none";
			}
		} else {
			if (document.all) {
				if (eval("document.all." + id + ".style.display") == "none") {
					eval("document.all." + id + ".style.display = \"\"");
					if (inbFilter == 1)
					{ document.getElementById(inImageName).src = inLevel + "images/" + inImagePrefix + "minus.gif"; }
				} else {
					eval("document.all." + id + ".style.display = \"none\"");
					if (inbFilter == 1)
					{ document.getElementById(inImageName).src = inLevel + "images/" + inImagePrefix + "plus.gif"; }
				}
			}
		}
	}
}
//----------------------------------------------------------------------------


function CopyToClipboard(inControlID)
{
	var textboxVal = document.getElementById(inControlID).value
	if (window.clipboardData && clipboardData.setData)
	{
		clipboardData.setData("Text", textboxVal); 
	}
}

