function cmsPrint(start,end,parentid)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "m"+parentid+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}

	len = inStr.length -1;
	inStr= inStr.substring(0,len);

	urlStr	= "printcms.php?INSTR=" + inStr + "&PID=" +parentid;
	window.open(urlStr,'_blank');
	return true;
}


function newsPrint(start,end)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "n"+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}

	len = inStr.length -1;
	inStr= inStr.substring(0,len);

	urlStr	= "printnews.php?INSTR=" + inStr;
	window.open(urlStr,'_blank');
	return true;
}
function reportPrint(start,end)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "rep"+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}

	len = inStr.length -1;
	inStr= inStr.substring(0,len);

	urlStr	= "printreportlinks.php?INSTR=" + inStr;
	window.open(urlStr,'_blank');
	return true;

}

function expInfoPrint(start,end,parentid)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "a"+parentid+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}

	len = inStr.length -1;
	inStr= inStr.substring(0,len);

	urlStr	= "printareainfo.php?INSTR=" + inStr + "&AID=" +parentid;
	window.open(urlStr,'_blank');
	return true;
}
function expMapPrint(start,end,parentid)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "map"+parentid+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}


	len = inStr.length -1;
	inStr= inStr.substring(0,len);
	urlStr	= "printmap.php?INSTR=" + inStr + "&AID=" +parentid;
	window.open(urlStr,'_blank');
	return true;
}

function expPhotoPrint(start,end,parentid)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "photo"+parentid+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}


	len = inStr.length -1;
	inStr= inStr.substring(0,len);
	urlStr	= "printphoto.php?INSTR=" + inStr + "&AID=" +parentid;
	window.open(urlStr,'_blank');
	return true;
}

function expSLPrint(start,end,parentid)
{
	var i,str,inStr,urlStr,len =0;
	inStr = "";
	for(i=start;i<=end;i++)
	{
		str = "sl"+parentid+i;
		if (document.getElementById(str).checked)
		{
				inStr = inStr + document.getElementById(str).value + ",";
		}
	}

	if (inStr == "")
	{	
		alert("Please check the box you want to print");
		return false;	
	}

	len = inStr.length -1;
	inStr= inStr.substring(0,len);

	urlStr	= "printSL.php?INSTR=" + inStr + "&AID=" +parentid;
	window.open(urlStr,'_blank');
	return true;
}