function showClientSelectScreen(pSearchString, tp)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 750)/2;
	yOffset = (yMax - 450)/2;

	staffSearch = window.open("clients_selectwin.asp?tp=" + tp + "&search=" + pSearchString,"search","width=750, height=450,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
}

function showFinAssist(sParticipantID,bFaReadOnly)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 600)/2;
	yOffset = (yMax - 350)/2;
	staffSearch = window.open("events_reg_assist.asp?pid=" + sParticipantID + "&ro=" + (bFaReadOnly ? "1" : "0"),"search","width=600, height=350,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=auto",true);
}

function regSearchScreen(title,tc,trm,grp,sct,yr,sSearchType,sSource)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 750)/2;
	yOffset = (yMax - 450)/2;
	staffSearch = window.open("events_reg_search.asp?title=" + title + "&tc=" + tc + "&trm=" + trm + "&grp=" + grp + "&sct=" + sct + "&yr=" + yr + "&sSearchType=" + sSearchType + "&sSource=" + sSource,"search","width=750, height=450,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=auto",true);
}

function regCompletedSearchScreen(searchText)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 750)/2;
	yOffset = (yMax - 450)/2;
	wndRegCompletedSearchScreen = window.open("events_reg_completed_search.asp?searchText=" + searchText,"search","width=750, height=450,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
}

function regTabMenuGo(pObj)
{
	var vVal = pObj[pObj.selectedIndex].value
	if (vVal == 1)
		document.location.href="default.asp"
	else if (vVal == 2)
		document.location.href="events_reg_seclist.asp"
	else if (vVal == 3)
		document.location.href="events_reg_clientlist.asp"
	else if (vVal == 4)
		document.location.href="events_reg_secclient.asp"
	else if (vVal == 5)
		document.location.href="events_reg_clientinfo.asp"
	else if (vVal == 6)
		document.location.href="events_reg_fees.asp"
	else if (vVal == 7)
		document.location.href="events_reg_payment.asp"
	else if (vVal == 8)
		document.location.href="events_reg_final.asp"
	else if (vVal == 9)
		document.location.href="events_reg_seclist.asp?reg_id=0"
	else if (vVal == 10)
		document.location.href="events_clients_cancel_refund.asp"		
}

function regSectionSummary(iEvtSectionId)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 700)/2;
	yOffset = (yMax - 550)/2;

	staffSearch = window.open("../../eventAdvisor/events/events_summary.asp?popupmode=y&sectionid=" + iEvtSectionId,"search","width=700, height=550,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
}

function regConfirmationReceipt(iRegistrationId,bReceiptOnly,bExternalView)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
	var sReceiptOnly = bReceiptOnly ? "y" : "n";
	var sExternalView = bExternalView ? "y" : "n";
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 600)/2;
	yOffset = (yMax - 500)/2;

	wndConfirmationReceipt = window.open("../../eventAdvisor/registration/events_reg_receipt_frameset.asp?rid=" + iRegistrationId + "&rcptOnly=" + sReceiptOnly + "&extview=" + sExternalView,"search","width=600, height=500,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
}

function regConfirmationReceiptEx(iRegistrationId,bReceiptOnly,bExternalView,pWnd)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = pWnd.outerWidth;
		yMax = pWnd.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
	var sReceiptOnly = bReceiptOnly ? "y" : "n";
	var sExternalView = bExternalView ? "y" : "n";
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 600)/2;
	yOffset = (yMax - 500)/2;

	wndConfirmationReceipt = pWnd.open("../../eventAdvisor/registration/events_reg_receipt_frameset.asp?rid=" + iRegistrationId + "&rcptOnly=" + sReceiptOnly + "&extview=" + sExternalView,"wndConfirmationReceipt","width=600, height=500,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
	
}


function regCancelMenu(pObj)
{
	var vVal = pObj[pObj.selectedIndex].value
	if (vVal == 1)
		document.location.href="default.asp"
	else if (vVal == 2)
		document.location.href="../../common/cancellation/cancel_registration_participants.asp"
	else if (vVal == 3)
		document.location.href="../../common/groupsclients/history.asp"
	else if (vVal == 4)
		document.location.href=""
	else if (vVal == 5)
		document.location.href=""
	else if (vVal == 6)
		document.location.href=""
	//else if (vVal == 7)
	//	document.location.href="events_clients_transfer.asp"
}

function showMeetingSelection(iParticipantAmtId)
{
	if (document.all)
	{
		xMax = screen.width;
		yMax = screen.height;
	}
	else if (document.layers)
	{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
	}
	else
	{
		xMax = 800;
		yMax = 400;
	}
//The values you subtract from xMax and yMax should be the same size of the window you are creating.
	xOffset = (xMax - 400)/2;
	yOffset = (yMax - 400)/2;

	staffSearch = window.open("events_cancelmtgs.asp?paid=" + iParticipantAmtId,"search","width=400, height=400,screenX=" + xOffset + ",screenY=" + yOffset + ",top=" + yOffset + ",left=" + xOffset + ",resizable=no,scrollbars=yes",true);
}
