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 FormatDecimal(num) {
//	//DecimalSymbol
//	DecimalSymbol = ",";
//	re = /\D/g;
//	LastIndexOfSep = num.lastIndexOf(DecimalSymbol);
//	if (LastIndexOfSep != -1)
//		num = num.substr(0, LastIndexOfSep).replace(re, "") + DecimalSymbol +
//		num.substr(LastIndexOfSep, num.length - LastIndexOfSep).replace(re, "");
//	else
//		num = num.replace(re, "");
//	return num;
//}



//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 ShowPopUpList(inField) {
//	attr = ShowWin("../controls/frmInfo.aspx", "?OldValues=" + encodeURIComponent(inField.value), 1);
//	//inField.value.replace(/\n/g, 'xy')

//	if ((attr != "0") && (attr != "") && (attr != 0) && (typeof (attr) != "undefined")) {
//		params = attr.split('&');
//		inField.value = decodeURIComponent(params[0]);
//		//inField.value = params[0].replace(/xy/g, '\n');
//	}
//}
//-----------------------------------------------------------------------------

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;
}



function CheckMaxLength(textBox, maxLength, inField, inFieldCaption) {
	if (textBox.value.length > maxLength) {
		textBox.value = textBox.value.substring(0, maxLength);
	}
	else {
		document.getElementById(inField).innerHTML = inFieldCaption + ' ' + textBox.value.length + '/' + maxLength;
	}
}



