function isInteger(s)
{
	return (s.toString().search(/^-?[0-9]+$/) == 0);
}

function isNumberKey(evt)
{
	var charCode = (evt.which) ? evt.which : event.keyCode
	if (charCode > 31 && (charCode < 48 || charCode > 57))
		return false;

	return true;
}

$(document).ready(function() {
	$(".dataGrid tr:even").addClass('even');
	$(".dataGrid tr:odd").addClass('odd');
	
	$(".dataGrid tr").bind('mouseover', function(){
		$(this).addClass('trHover');
	}).bind('mouseout', function(){
		$(this).removeClass('trHover');
	});
});

$(document).ready(function() {
	$('tr.link').bind('click', function(){
		window.location = $(this).attr('link');
	});
});

$(document).ready(function() {
	$('.deleteConfirm').bind('click', function(){
		$this = $(this);
		$.modaldialog.custom('Are you sure you want to delete?', {
			'title': 'Warning!',
			'width': 300,
			'buttons': {
				'btnOK': {
					'caption': 'OK',
					'click': function(){
						window.location = $this.attr('href');
					}	
				},
				'btnCancel': {
					'caption': 'Cancel'
				}
			}
		});
		
		return false;
	});
});

$(document).ready(function() {
//	$('.customPanel').css('opacity', 0.85);
});
$(document).ready(function(){ 
//	$(document).pngFix(); 
//	$('.png').pngFix();
});

