// Functions used by those forms that need to display resumes in popup windows.

function jsPopResume(sTSPID, fIsBusiness, fInternal) {

	var sURL = "ChildWinFS.aspx";
	var nWidth = 750;
	var nHeight  = 550;
	var sScreenLoc   = "um"; //upper-middle
	var fShowIndividualResume;
	var fIsInternal;
	
	fIsInternal = (fInternal == undefined || fInternal == true);
	
	fShowIndividualResume = (fIsBusiness == undefined || fIsBusiness == false);
//alert("jsPopResume: fIsBusiness = " + fIsBusiness + ", fShowIndividualResume=" + fShowIndividualResume);
	sContentHTML = "";
	
	// parameters and window name depend on what type of resume we're showing
	if (fShowIndividualResume){
		//alert("Displaying INDIVIDUAL resume for tspId = " + sTSPID);
		sContentURL  = "PopTSPResume.aspx?tspid=" + sTSPID;
		sURL += "?windowname=TSP%20Information";
	}else{
		//alert("Displaying BUSINESS resume for tspId = " + sTSPID);
		sContentURL  = "PopTSPResume.aspx?busid=" + sTSPID;
		sURL += "?windowname=Business%20Information";
	}
	
	if (fIsInternal){
		sContentURL += "&internal=true";
	}	
	sButtonHTML  = '<SPAN style="width:100%;" class="cDataEntryR" >';
	sButtonHTML += '<INPUT TYPE="button" id="btnPrint" name="btnPrint" class="cRegButtons" VALUE="Print" onClick="parent.cFSwBody.focus();parent.cFSwBody.print()" >&nbsp;';
	sButtonHTML += '<INPUT TYPE="button" VALUE="Close" CLASS="cRegButtons" onClick="parent.jsCloseCancel()">&nbsp;';
	sButtonHTML += '</SPAN>';
	sWinAttrs    = " resizable, menubar";
	var sArgs    = jsSetParamStr("OpenStr", "?", sKeySep, sValSep);
	sArgs       += jsSetParamStr("PairSep", "=", sKeySep, sValSep);
	sArgs       += jsSetParamStr("GroupSep", "&", sKeySep, sValSep);
	jsOpenChildFS(sURL,nWidth,nHeight,jsRetChildWin,sContentHTML,sContentURL,sButtonHTML,sArgs,sScreenLoc,sWinAttrs);

} //jsPopResume
function jsRetChildWin() {
	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 != ""){
	}
} //jsRetChildWin

