function classChangeRow(rows, objId, objClass) {
	try {
		for (var i = 0; i <= rows; i++)  {
			if (document.getElementById(objId + i)) {
				document.getElementById(objId + i).className = objClass;
			}
		}
	}
	catch(err) {}
}
function cblOver(cblId, cblRow) {
	try {
		if (document.getElementById(cblId + '_' + cblRow) && document.getElementById(cblId + '_' + cblRow + 's')) {
			var span = document.getElementById(cblId + '_' + cblRow + 's');
			var input = document.getElementById(cblId + '_' + cblRow);
			if (input.checked == false) {span.parentNode.className = "checked";}
		}
	}
	catch(err) {}
}
function cblOut(cblId, cblRow) {
	try {
		if (document.getElementById(cblId + '_' + cblRow) && document.getElementById(cblId + '_' + cblRow + 's')) {
			var span = document.getElementById(cblId + '_' + cblRow + 's');
			var input = document.getElementById(cblId + '_' + cblRow);
			if (input.checked == false) {span.parentNode.className = "";}
		}
	}
	catch(err) {}
}
function cblClass(test, cblId, cblRow, submitId) {
	try {
		if (document.getElementById(cblId + '_' + cblRow) && document.getElementById(cblId + '_' + cblRow + 's')) {
			var span = document.getElementById(cblId + '_' + cblRow + 's');
			var input = document.getElementById(cblId + '_' + cblRow);
			if (input.checked == false) {
				span.parentNode.className = "";
			}
			else {
				span.parentNode.className = "checked";
			}
			document.getElementById(submitId).disabled = false;
		}
	}
	catch(err) {}
}
function cblClassAll(cblId, cblRows) {
	for (var i = 0; i < cblRows; i++)  {
		try {
			var span = document.getElementById(cblId + '_' + i + 's');
			var input = document.getElementById(cblId + '_' + i);
			if (input.checked == true) {span.parentNode.className = "selected";} else {span.parentNode.className = "";}
		}
		catch(err) {}
	}
}

//$(document).ready(function () {

//    //    //    $.getScript('test.js', function (jd) {
//    //    //        // Call custom function defined in script
//    //    //        var x = CheckJS();
//    //    //        alert(x);
//    //    //    });

//    //    //    $('#pnlBanner728x90').load('bannercontent.htm');
//    //    //    $('#pnlBanner120x600').load('bannertop.htm');

//    content(); // 1 content block
//    topbanner(); // 2 top banner

//    function content() {
//        $.ajax({
//            type: "POST",
//            url: "http://localhost:55535/voorraad/bannercontent.htm",
//            data: "",
//            beforeSend: function () {
//                $("div#pnlBanner120x600").html('<span class="loading">Loading...</span>');
//            },
//            cache: false,
//            success: function (data) {
//                alert(data);
//                $("#pnlBanner120x600").html(data);
//            }
//        });
//    }

//    //Top Banner Block
//    function topbanner() {
//        $.ajax({
//            type: "POST",
//            url: "http://localhost:55535/voorraad/bannertop.htm",
//            data: "",
//            beforeSend: function () {
//                $("div#pnlBanner728x90").html('<span class="loading">Loading...</span>');
//            },
//            cache: false,
//            success: function (data) {
//                alert(data);
//                $("#pnlBanner728x90").html(data);
//            }
//        });
//    }


//});

