// Cliqon User Javascript Routines
$(document).ready(function(){
	$(".title").bind("click", function() {
		var strref = $(this).attr("rel");
		var strtitle = $(this).text();
		// alert(strtitle);
		var w = 500; var ww = document.body.clientWidth; var wl = ww - w; wl = (wl/2);
		$("#popup").dialog({
			bgiframe:true, modal:false, autoOpen: false,
			width:w, resizeable:true,
			title:strtitle,
			position:[wl,20]
		});
		$("#popup").load('../includes/getstrref.php?langcd=' + jlcd + '&strref=popup_' + strref);
		$("#popup").dialog('open');			
	});
	
	$('#printall').bind('click', function() {
		var mypage = 'printall.php?langcd=' + jlcd;
		var myname = 'Print';
		PrintPopup(mypage,myname,800,600,'center','front');	
	});
	
});
