function popUpWindow(theURL,winName,features) {
    window.open(theURL,winName,features);
}

function redirectOnHTMLErrorResponse(html) {
  // check for error in format returned by PageHandlerHelper.errorOutOfAJAX()
  var ajaxResponse = $(html);
  if(ajaxResponse.is('#error')) {
    window.location = ajaxResponse.attr('targetPage');
  }
}

function showhide(id){
	obj = document.getElementById(id);
	if (obj.style.display == "none") {
		obj.style.display = "" ;
	} else {
		obj.style.display = "none";
	}
}

function initTooltips()
{
	$('#BodyContent *').tooltip({
		track: true,
		delay: 0,
		showBody: " - ",
		showURL: false
	});
}