function dotb(title, url)
{
		tb_show(title, url, null);
}
function un_track(){
	$(document).ready(function(){
	$('a[@href$=pdf]').each(function(){ //$('a[@href$=pdf].download').each(function(){ if you want to tracking some download link
		//var url = $(this).attr('href');
		//var tb_url = 'popup.php?'+'url_download='+ url+ '&KeepThis=true&width=650&height=450&modal=false&TB_iframe=false';
		$(this).unbind('click');
	});
	});
}

function initPopups(){
	 $(document).ready(function(){
		$('a[@href$=pdf]').each(function(){
		var url = $(this).attr('href');
		var isrequired = $(this).attr('isrequired');
		   if(isrequired){
				var tb_url = 'popup.php?'+'url_download='+ url+ '&KeepThis=true&width=650&height=450&modal=false&TB_iframe=false';
				$(this).click(function(){
					//alert(tb_url);
					//popup.php?test=abc&KeepThis=true&width=650&height=450&modal=false&TB_iframe=false
					dotb('', tb_url);
					return false;
				});
			}
		});
	});
}
