var sPrintBtn = '<INPUT TYPE="button" id="btnPrint" name="btnPrint" class="cRegButtons" VALUE="Print" onClick="parent.dlogBody.focus();parent.dlogBody.print()" >&nbsp;';
var sClsBtn = '<INPUT TYPE="button" id="btnCls" name="btnCls" class="cRegButtons" VALUE="Close"  onClick="parent.jsCloseCancel()">&nbsp;';

function jsViewCriteria(Type,Id) {
	var oBtn         = jsGetObjectRef("btnAddCategories");
	if (typeof oBtn == "object") {
		var sLbl       = oBtn.value;
	} else {
		var sLbl       = "Update";
	}
	var sServLabel   = "Criteria";
	var sURL         = "dialogFS.aspx?windowname=" + sServLabel ;
	var nWidth       = 550;
	var nHeight      = 400;
	var sContentHTML = "";
	var sContentURL  = "PopRptCriteria.aspx?ID=" + Id + "&Type=" + Type;
	var sButtonHTML  = '<SPAN style="width:100%;" class="cDataEntryR">';
	sButtonHTML     += sPrintBtn;
	sButtonHTML     += sClsBtn;
	sButtonHTML     += '</SPAN>';
	var sArgs        = jsSetParamStr("OpenStr", "?", sKeySep, sValSep);
	sArgs           += jsSetParamStr("PairSep", "=", sKeySep, sValSep);
	sArgs           += jsSetParamStr("GroupSep", "&", sKeySep, sValSep);
	sArgs           += jsSetParamStr("ServID", Id, sKeySep, sValSep);
	sArgs           += jsSetParamStr("ServLabel", sServLabel, sKeySep, sValSep);
	sScreenLoc       = "center"; //center
	var sWinAttrs    = ",resizable=yes";
	jsOpenDialog(sURL,nWidth,nHeight,jsRetService,sContentHTML,sContentURL,sButtonHTML,sArgs,sScreenLoc,sWinAttrs);
} //jsEditService

function jsRetService() {
	var sRetVal  = dialogWin.returnedValue.substr(1);
	var sReturn  = "";
	var sTmpInr  = String.fromCharCode(61); //special separator used by modaldialog window instead of sKeySep
	var sTmpOutr = String.fromCharCode(38); //special separator used by modaldialog window instead of sValSep
	if(sRetVal!=null && sRetVal != ""){
	}
} //jsRetService

