// mod_cazar - include ca_common.js

var infoWin = null;
function ca_openInfoWin(url,dx,dy,sz,sb,lc)
{
	dx = ( typeof dx == "undefined" )? 900 : dx;
	dy = ( typeof dy == "undefined" )? 700 : dy;
	tp = "width=" + dx + ",height=" + dy;
	tp = ( typeof sz != "undefined" && sz == 1 )? (tp + ",resizable=yes") : (tp + ",resizable=no"); 
	tp = ( typeof sb != "undefined" && sb == 1 )? (tp + ",scrollbars") : tp; 
	tp = ( typeof lc != "undefined" && lc == 1 )? (tp + ",location=yes") : (tp + ",location=no"); 

	if( infoWin != null && infoWin.closed == false)
	infoWin.close();

	infoWin = open(url,"",tp);
	infoWin.focus();
}

function ca_loadInfoContent(par)
{
	// alert(par+"\n"+encodeURI(par));
	for (var i = 0; i < parent.frames.length; i++)
	{
		if (parent.frames[i].name == 'help_content')
		{
			url = '/help/content.php' + encodeURI(par);
			parent.frames[i].location.replace(url);
		}
		if (parent.frames[i].name == 'help_title')
		{
			url = '/help/title.php' + encodeURI(par);
			parent.frames[i].location.replace(url);
		}
	}
}

// mod_cazar - include ca_common.js
