function ShowPopUp(inURL) {
	var Height = 480;
	var Width = 640;
				
	if (inURL.toLowerCase().lastIndexOf("print.aspx") != -1) {
		Height=640; Width=730; }
	return window.open(inURL,"","width=" + Width + ",height=" + Height + ",location=no,toolbar=no,resizable=no,directories=no,status=no,menubar=no,scrollbars=yes,copyhistory=no");
}
//-----------------------------------------------------------------------------

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) {
    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/minus.gif"; }
        }

        else {
            eval("document.getElementById(id).style.display = \"none\"");
            if (inbFilter == 1)
            { document.getElementById(inImageName).src = inLevel + "images/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/minus.gif"; }
                } else {
                    eval("document.all." + id + ".style.display = \"none\"");
                    if (inbFilter == 1)
                    { document.getElementById(inImageName).src = inLevel + "images/plus.gif"; }
                }
            }
        }
    }
}
//----------------------------------------------------------------------------

function TestInt(fieldID, inputData)			//Da li je vrijednost cijeli broj
{
	var result1 = inputData.indexOf(".");
	var result2 = inputData.indexOf(",");
	var i = false;

	if (result1 != -1 || result2 != -1)			//Vrijednost cijeli broj?
	{
		alert("Upišite cijeli broj.");
		document.getElementById(fieldID).focus();
		i = true;
		return false;
	}

	if (isNaN(inputData) == true && i == false)		//Vrijednost numeric?
	{
		alert("Upišite cijeli broj.");
		document.getElementById(fieldID).focus();
		return false;
	}
}
//-----------------------------------------------------------------------------
