/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*\
/admin/_ui.js
	wrapper functins for opening windows
	uses functions from /_ui.js

2004.03.26	modified	LGF
	Added  winDocumentDetailsDetachDelete(iDocID, sDetachFileIDs, sDeleteFileIDs){

2004.03.20	added	LGF
	Added winFileAssociationsListDelete(sFileIdsNames, iIndex)

2004.04.12	modified	LGF
	Added File Associations List, winFileAssociationsList()
	
2004.08.07 modified MTG
	Added winRefreshFrame(), winSetHeightWidth(), and modified admin calls to work with new framesets

\*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/


var adminMenuX = 300;
var adminMenuY = 350;

/*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*\
2004.08.07	created	DM - examples of how this works are:

<a href="javascript:void(0);" onClick="winRefreshFrame('', '', 'right');">Refresh Right</a><br>
<a href="javascript:void(0);" onClick="winRefreshFrame('', '', 'left');">Refresh Left</a><br>
<a href="javascript:void(0);" onClick="winRefreshFrame('', 'left.htm', 'right');">Load Left in Right</a><br>
<a href="javascript:void(0);" onclick="winRefreshFrame('', 'somethingelse.htm', 'right');">Load Something else in Right</a><br><br>
<a href="javascript:void(0);" onclick="winSetHeightWidth('right',500,200);">Resize Right to 500x200</a><br>
<a href="javascript:void(0);" onclick="winSetHeightWidth('right',200,400);">Resize Right to 200x400</a><br>
<a href="javascript:void(0);" onclick="winSetHeightWidth('left',200,400);">Resize Right to 200x400</a><br>
\*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*/
function winRefreshFrame(layout, page, targetframe){
	if (page==""){
		parent.frames[targetframe].location.reload();
	}
	else{
		parent.frames[targetframe].location = page;
	}
}

function winLoadFrame(page, targetframe){
	if (page==""){
		document.frames[targetframe].location.reload();
	}
	else{
		document.frames[targetframe].location = page;
	}
}

function winSetHeightWidth(targetframe,height,width){
	parent.frames[targetframe].resizeTo([width],[height]);
}

function winCustomerForm(docId){
	winNewWindowCentered('/admin/frmCreateRequestForm.asp?idocId=' + docId + '&cacheDefeat=' + Math.random(), 'winCreateRequestForm_' + docId);
}

function winDocumentEditor(iDocId,iCatId){
	winRefreshFrame('','/admin/frmDocumentDetails.asp?iCatId=' + iCatId + '&iDocId=' + iDocId + '&cacheDefeat=' + Math.random(), 'right_iframe');
}

//Added by steve: 01/03/05
function winDocumentAttachedEditor(iDocId,iCatId){
	//winNewWindowCentered('/admin/frmDocumentDetails.asp?iCatId=' + iCatId + '&iDocId=' + iDocId + '&sSource=' + sSource + '&cacheDefeat=' + Math.random(), 'winCreateRequestForm_' + iDocId);
	sLoc = '/admin/pg_pagemanagement.asp?iCatId=' + iCatId + '&iDocId=' + iDocId + '&action=editdoc&cacheDefeat=' + Math.random();
	parent.location = sLoc;
}

function loadDocumentEditor(iDocId,iCatId){
	//winLoadFrame('/admin/frmDocumentDetails.asp?iCatId=' + iCatId + '&iDocId=' + iDocId + '&cacheDefeat=' + Math.random(), 'right_iframe');
	location.href="/admin/main.asp?action=editdoc&iCatId=" + iCatId + "&iDocId=" + iDocId;
}

function winDocumentCreator(iCatId){
	winRefreshFrame('', '/admin/frmDocumentDetails.asp?iCatId=' + iCatId + '&cacheDefeat=' + Math.random(), 'right_iframe');
}

function winDocumentAssociations(iDocId){
	winNewWindowCentered('/admin/frmDocumentAssociations.asp?iDocId=' + iDocId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + iDocId,490,420);
}
function winDocumentAssociationsImages(iDocId, iCatId){
	//winNewWindowCentered('/admin/frmImageListSetFilter.asp?iDocId=' + iDocId + '&iCatId=' + iCatId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + iDocId,490,420);
	winNewWindowCentered('/admin/frmDocumentAssociationsImages.asp?docId=' + iDocId + '&catId=' + iCatId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + iDocId,490,420);
}

function winDefaultNewCatDocWindow(sAction, iCatId, iDocId){
	winNewWindowMax('/admin/main.asp?action=' + sAction + '&iDocId=' + iDocId + '&iCatId=' + iCatId,'default')
}
function winDefaultNewCatWindow(sAction, iCatId){
	winNewWindowMax('/admin/main.asp?action=' + sAction + '&iCatId=' + iCatId,'default')
}
function winDefaultNewDocWindow(sAction, iDocId){
	winNewWindowMax('/admin/main.asp?action=' + sAction + '&iDocId=' + iDocId ,'default')
}


function winClearLogins(){
	winNewWindowCentered('/admin/frmClearLogins.asp','winClearLogins',400,150);
}

	function winDocumentAssociationsImageSetChooserNewsArticleIcon(docId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=news-article-icon&docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserNewsArticleIcon_' + docId,490,420);
	}
	function winDocumentAssociationsImageSetChooserNesbHeaderImage(docId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=nesb-header-image&docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserNewsArticleIcon_' + docId,490,420);
	}
		
	
	function winDocumentAssociationsImageSetChooserCategorySectionHeader(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=section-header-image&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategorySectionHeader_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategorySectionEyeCandy(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=section-eye-candy-image&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategorySectionEyeCandy_' + catId,490,420);
	}


	function winDocumentAssociationsImageSetChooserCategorySubNavbarImageMouseOut(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=sub-navbar-image-mouse-out&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategorySubNavbarImageMouseOut_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategorySubNavbarImageMouseOver(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=sub-navbar-image-mouse-over&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategorySubNavbarImageMouseOver_' + catId,490,420);
	}

	
	function winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOut(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=navbar-image-mouse-out&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOut_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOver(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=navbar-image-mouse-over&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOver_' + catId,490,420);
	}
	
	function winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOutHomePage(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=navbar-image-mouse-out-homepage&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOutHomePage_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOverHomePage(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=navbar-image-mouse-over-homepage&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryNavbarImageMouseOverHomePage_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategoryBottomNavbarImage(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=bottom-navbar-image&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryBottomNavbarImage_' + catId,490,420);
	}
	function winDocumentAssociationsImageSetChooserCategoryNesbHeaderImage(catId){
		winNewWindowCentered('/admin/frmDocumentAssociationsImageSetChooser.asp?idMode=category-nesb-header-image&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsImageSetChooserCategoryBottomNavbarImage_' + catId,490,420);
	}
	
	
	function winDocumentAssociationsFileSetChooserFormFile(docId){
		winNewWindowCentered('/admin/frmDocumentAssociationsFileSetChooser.asp?idMode=document-form-file&docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsFileSetChooserFormFile_' + docId,490,420);
	}
	function winDocumentAssociationsFileSetChooserNesbFile(docId){
		winNewWindowCentered('/admin/frmDocumentAssociationsFileSetChooser.asp?idMode=document-nesb-file&docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsFileSetChooserNesbFile_' + docId,490,420);
	}


function winDocumentAssociationsFiles(docId, catId){
	//winNewWindowCentered('/admin/frmFileListSetFilter.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
	winNewWindowCentered('/admin/frmDocumentAssociationsFiles.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
}


function winDocumentAssociationsCategories(docId,catId){
	winNewWindowCentered('/admin/frmDocumentAssociationsCategories.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
}
//repliciated by Vivek on 28/9 /2004to avoid any conflicts, function used in Trash Can.
function winDocumentAssociationsCategories_Trash(docId,catId){
	winNewWindowCentered('/admin/frmDocumentAssociationsCategories_Trash.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
}


//repliciated by Vivek on 15/3 /2005 to avoid any conflicts, function used in Site Summary ->Expired Docs
function winDocumentAssociationsCategories_Trash(docId,catId){
	winNewWindowCentered('/admin/frmDocumentAssociationsCategories_Trash.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
}

function winDocumentAssociationsLinks(docId, catId){
	winNewWindowCentered('/admin/frmDocumentAssociationsLinks.asp?docId=' + docId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociations_' + docId,490,420);
}


function winDocumentDelete(docId){
	winNewWindowCentered('/admin/frmDocumentDeleteConfirm.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentDelete_' + docId,300,140);
}
function winDocumentDeleteSiteSum(docId){
	winNewWindowCentered('/admin/frmDocumentDeleteConfirmSiteSum.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentDelete_' + docId,300,140);
}
function winDocumentChooseDestructDate(docId){
	winNewWindowCentered('/admin/frmDocumentDestructDateChoose.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentChooseDestructDate_' + docId,470,220);
	
}


function winDocumentChooseSpawnDate(docId){
	winNewWindowCentered('/admin/frmDocumentSpawnDateChoose.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentChooseSpawnDate_' + docId,470,220);
	
}

function winCategoryChooseSpawnDate(docId){
	winNewWindowCentered('/admin/frmCategorySpawnDateChoose.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentChooseSpawnDate_' + docId,470,220);
	
}


function winAdminMenu(){
	winNewWindow('/admin/menu.asp', 'winAdminMenu',adminMenuX,adminMenuY);
}



function winFileUpload(){
	winNewWindowCentered('/admin/frmFileUpload.asp', 'winFileUpload',570,320);
}


function winSiteMap(){
	winNewWindowCentered('/admin/sitemap.asp', 'winSiteMap',620,420);
}


function winImageList(){
	winNewWindowCentered('/admin/imageList.asp', 'winImageList',620,420);
}
function winFileList(){
	winNewWindowCentered('/admin/fileList.asp', 'winFileList',620,420);
}

// 2004.03.12	added	LGF
function winFileAssociationsList(sNbrOfFilesDeleted, sReturnHref){

	if (!sNbrOfFilesDeleted)	{sNbrOfFilesDeleted = '';}
	
	sHref = '/admin/frmFileAssociationList.asp?';
	sHref += 'NbrOfFilesDeleted=' + sNbrOfFilesDeleted;
	sHref += '&' + unescape(sReturnHref);
	
	window.opener.location.href=sHref;
}

// 2004.03.20	added	LGF
function winFileAssociationsListDelete(sFileIdsNames, sReturnHref){
	
	sHref = '/admin/frmFileAssociationListDelete.asp?';
	sHref += 'FileIds=' + sFileIdsNames;
	sHref += '&sReturnHref=' + sReturnHref;

	winNewWindowCentered(sHref, 'winFileAssociationsListDelete',420, 420);
}

// 2004.03.26	added	LGF
function winDocumentDetailsDetachDelete(iDocID, sDetachFileIDs, sDeleteFileIDs){
	winNewWindowCentered('/admin/frmDocumentDetailsDetachDelete.asp?iDocID=' + iDocID + '&sDetachFileIDs=' + sDetachFileIDs + '&sDeleteFileIDs=' + sDeleteFileIDs, 'winDocumentDetailsDetachDelete',420, 420);
}



function winDescribeFile(fId){
	winNewWindowCentered('frmFileDescription.asp?fileIds=' + fId + ',' + '&cacheDefeat=' + Math.random(), '',420,220);
}
function winDeleteFile(fId){
	winNewWindowCentered('frmFileDeleteConfirm.asp?fileId=' + fId + '&cacheDefeat=' + Math.random(), '',420,220);
}





function winGroupManager(){
	winNewWindowCentered('/admin/frmGroupDetails.asp','winGroupManager',370,270);
}

function winUserManager(userId){
	winNewWindowCentered('/admin/frmUserDetails.asp?userId=' + userId + '&cacheDefeat=' + Math.random(),'winUserManager',420,360);
}
function winUserList(){
	winNewWindowCentered('/admin/userlist.asp','winUserList',700,550);
}
function winUserCreate(){
	winNewWindowCentered('/admin/frmUserDetails.asp','winUserCreate',470,360);
}



function winCategoryDelete(catId){
	winNewWindowCentered('/admin/frmCategoryDeleteConfirm.asp?iCatId=' + catId + '&cacheDefeat=' + Math.random(), 'winCategoryDelete',340,180);
}
//Added for Site Summary
//Steve 30/03/05
function winCategoryDeleteSS(sLoc,catId){
	winNewWindowCentered('/admin/frmCategoryDeleteConfirm.asp?sLoc=' + sLoc + '&iCatId=' + catId + '&cacheDefeat=' + Math.random(), 'winCategoryDelete',340,180);
}
/*Begin MTG 10 Aug 2004 */
/* function winCategoryManager(parentId){
	winNewWindowCentered('/admin/frmCategoryManager.asp?iCatId=' + parentId + '&cacheDefeat=' + Math.random(), 'winCategoryManagement',470,420);
}  */
function winCategoryManager(parentId){
	winRefreshFrame('','/admin/frmCategoryManager.asp?iCatId=' + parentId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
/* function winCategoryCreate(parentId){
	winNewWindowCentered('/admin/frmCategoryManager.asp?parentId=' + parentId + '&cacheDefeat=' + Math.random(), 'winCategoryCreate',470,420);
}  */

function winCategoryCreate(parentId){
	winRefreshFrame('','/admin/frmCategoryManager.asp?parentId=' + parentId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
/*End MTG 10 Aug 2004 */



function winLinkCreate(){
	winRefreshFrame('','/admin/frmLinkDetails.asp', 'right_iframe');
}

function winLinkList(){
	winRefreshFrame('','/admin/externalLinkList.asp', 'left_iframe');
}

function winLinkManager(linkId){
	winRefreshFrame('','/admin/frmLinkDetails.asp?linkId=' + linkId + '&cacheDefeat=' + Math.random(), 'right_iframe');
}
function winLinkDelete(linkId){
	winNewWindowCentered('/admin/frmLinkDeleteConfirm.asp?linkId=' + linkId + '&cacheDefeat=' + Math.random(), 'winLinkDelete_' + linkId,320,220);
}


function winLinkCreateRedirect(sLoc){
	document.location = '/admin/frmLinkDetails.asp?sLoc=' + escape(sLoc);
}

function winLinkManagerRedirect(sLoc,linkId){
	document.location = '/admin/frmLinkDetails.asp?sLoc=' + sLoc + '&linkId=' + linkId;
}
//Modified for opening in iFrame, by Vivek on 9/9/2004
function winEventCreate(){
	winRefreshFrame('','/admin/frmEventCreate.asp?PassThru=1','right_iframe');
	//winNewWindowCentered('/admin/frmEventCreate.asp', 'winEventCreate',460,480);
}
/*------------------------------------Created for Service by Vivek------------------------------------*/
function winServiceCreate(ID){
	winRefreshFrame('','/admin/services.asp?ID='+ID,'right_iframe');
	//winNewWindowCentered('/admin/frmEventCreate.asp', 'winEventCreate',460,480);
}
function winServicesListRefresh()
{
	winRefreshFrame('','/admin/serviceslist.asp','main_iframe');
}

function winServiceDelete(serviceID){
	winNewWindowCentered('/admin/frmServiceDeleteConfirm.asp?serviceID=' + serviceID + '&cacheDefeat=' + Math.random(), 'winServiceDelete' + serviceID,400,200);
}

/*------------------------------------End for Service Functions------------------------------------*/
function winEventManager(eventId){
	//winNewWindowCentered('/admin/frmEventCreate.asp?eventId=' + eventId + '&cacheDefeat=' + Math.random(), 'winEventManager_' + eventId,460,480);
	winRefreshFrame('','/admin/frmEventCreate.asp?PassThru=2&eventId=' + eventId,'right_iframe');
}
function winEventDelete(eventId){
	winNewWindowCentered('/admin/frmEventDeleteConfirm.asp?eventId=' + eventId + '&cacheDefeat=' + Math.random(), 'winEventDeleteConfirm_' + eventId,400,200);
}
function winEventList(){
	//winRefreshFrame('','','top_iframe');
	parent.frames['top_iframe'].document.frmlistevents.submit(); 
	//winNewWindowCentered('/admin/eventList.asp', 'winEventList',460,480);
}
function winDocumentAssociationsEvents(docId){
	winNewWindowCentered('/admin/frmDocumentAssociationsEvents.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsEvents_' + docId,490,420);
}



function winHelp(){
	winNewWindowCentered('/admin/help.asp', 'winHelp',470,470);
}


function winSurveyManager(){
	winNewWindowCentered('/admin/survey.asp?pid=admin', 'winSurveyManager',470,470);
}





function winDocumentCompoundSelectionConfirm(compoundId, docId){
	winNewWindowCentered('/admin/frmDocumentCompoundSelectionConfirm.asp?compoundId=' + compoundId + '&docId=' + docId + '&cacheDefeat=' + Math.random(),'winCompoundSelectionConfirm',400,200);
}
function winDocumentCompoundBreakConfirm(compoundId, docId){
	winNewWindowCentered('/admin/frmDocumentCompoundBreakConfirm.asp?compoundId=' + compoundId + '&docId=' + docId + '&cacheDefeat=' + Math.random(),'winCompoundBreakConfirm',400,200);
}



function winDocumentRelatedSelectionConfirm(compoundId, docId, catID){
	winNewWindowCentered('/admin/frmDocumentRelatedSelectionConfirm.asp?compoundId=' + compoundId + '&docId=' + docId + '&catID=' + catID + '&cacheDefeat=' + Math.random(),'winCompoundSelectionConfirm',400,200);
}
function winDocumentRelatedBreakConfirm(compoundId, docId, catID){
	winNewWindowCentered('/admin/frmDocumentRelatedBreakConfirm.asp?compoundId=' + compoundId + '&docId=' + docId + '&catID=' + catID + '&cacheDefeat=' + Math.random(),'winCompoundBreakConfirm',400,200);
}


function winDocumentBrowser(compoundId){
	winNewWindowCentered('/admin/sitemapDocBrowser.asp?compoundId=' + compoundId + '&cacheDefeat=' + Math.random(), 'winSiteMapDocBrowser',620,420);
}

function winInternalLinkBrowser(compoundId, catId){
	winNewWindowCentered('/admin/sitemapDocBrowserInternalLinks.asp?compoundId=' + compoundId + '&catId=' + catId + '&cacheDefeat=' + Math.random(), 'winInternalLinkBrowser',620,420);
}




/*Functions added/modified by Vivek on  7/9/2004 for Admin iFrames)*/


/*function winJobCreate(){
	winNewWindowCentered('/admin/frmJobCreate.asp?PassThru=1', 'winJobCreate',460,480);
}*/
/*function winJobManager(JobId){
	winNewWindowCentered('/admin/frmJobCreate.asp?PassThru=2&JobId=' + JobId + '&cacheDefeat=' + Math.random(), 'winJobManager_' + JobId,460,480);
}*/
/*function winJobList(){
	winNewWindowCentered('/admin/JobList.asp', 'winJobList',460,480);
}*/
function winGetFileByID(fId){
	winNewWindowCentered('/getfile.asp?fileId=' + fId + '&cacheDefeat=' + Math.random(), 'winGetFileByID',750,600);
}

function winJobCreate(){
	winRefreshFrame('','/admin/frmJobCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winJobManager(JobId){
	winRefreshFrame('','/admin/frmJobCreate.asp?PassThru=2&JobId=' + JobId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winJobDelete(JobId){
	winNewWindowCentered('/admin/frmJobDeleteConfirm.asp?JobId=' + JobId + '&cacheDefeat=' + Math.random(), 'winJobDeleteConfirm_' + JobId,400,200);
}

function winJobList(actionframe){
	
	winRefreshFrame('','joblist.asp?cacheDefeat=' + Math.random(),'top_iframe')
	
	if (actionframe == 0)
	{ 
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}

function winCreateSurvey()
{
	winRefreshFrame('','survey.asp?pid=new&password=admin_password&cacheDefeat=' + Math.random(),'right_iframe')
}
function winCurrentStats()
{
	winRefreshFrame('','survey.asp?pid=results&password=admin_password&cacheDefeat=' + Math.random(),'right_iframe')
}
function winPastSurveys()
{
	winRefreshFrame('','survey.asp?pid=browse&password=admin_password&cacheDefeat=' + Math.random(),'right_iframe')
}

function winJobApplications(JobID)
{
	winRefreshFrame('','/admin/frmJobView.asp?JobID=' + JobID + '&cacheDefeat=' + Math.random(),'bottom_iframe');
	//winNewWindowCentered('/admin/frmJobView.asp?JobID=' + JobID + '&cacheDefeat=' + Math.random(), 'winJobDetails' + JobID,640,460);
}

function winShowAppliDetails(JobID)
{
	winRefreshFrame('','/admin/frmApplicationView.asp?ID=' + JobID + '&cacheDefeat=' + Math.random(),'right_iframe');
	//winNewWindowCentered('/admin/frmApplicationView.asp?ID=' + JobID + '&cacheDefeat=' + Math.random(), 'winJobDetails' + JobID,640,460);
}

function winShowPrintVer(JobID, bPrint)
{
		winNewWindowCentered('/frmPrintJobApp.asp?JobID=' + JobID + '&bPrint=' + bPrint + '&cacheDefeat=' + Math.random(), 'winShowPrintVer' + JobID,640,460);
}

/*----------------end of modified/added functions by Vivek on 7/9/2004 for Admin iFrames---*/

/*----------------Function for showing Add Event Group added by Vivek on 9/9/2004---------*/
function winEventGroupCreate(PassThru)
{
		winRefreshFrame('','/admin/eventgroup.asp?ID='+PassThru+'&cacheDefeat=' + Math.random(),'right_iframe');
}
function winEventGroupRefresh(tabname)
{
	if (tabname == 1)
		tabname = "EventGroups";
	else if (tabname == 2)
		tabname = "EventVenues";
	else if (tabname == 3)
		tabname = "EventSuburbs";
	winRefreshFrame('','/admin/eventgrouplist.asp?GuiSection=' + tabname + '&cacheDefeat=' + Math.random(),'middle_iframe');
}
function winEventGroupDelete(eventId){
	winNewWindowCentered('/admin/frmEventGroupDeleteConfirm.asp?eventId=' + eventId + '&cacheDefeat=' + Math.random(), 'winEventDeleteConfirm_' + eventId,400,200);
}
/*----------------End of Function for showing Add Event Group-----------------------------*/

/*------------------Function for Event Venues created by Vivek on 10/9/2004----------------*/
function winEventVenueRefresh()
{
		winRefreshFrame('','/admin/eventvenuelist.asp?&cacheDefeat=' + Math.random(),'bottom_iframe');
}
function winEventVenue(PassThru)
{
		winRefreshFrame('','/admin/eventvenue.asp?ID='+PassThru+'&cacheDefeat=' + Math.random(),'right_iframe');
}
function winEventVenueDelete(eventvenueID)
{
	winNewWindowCentered('/admin/frmEventVenuDeleteConfirm.asp?eventvenueID=' + eventvenueID + '&cacheDefeat=' + Math.random(), 'winEventDeleteConfirm_' + eventvenueID,400,200);
}
/*------------------End of function for Event Venues----------------------------------------*/
/*-----------------Function for Event Suburbs added by Vivek on 16/09/2004-----------*/

function winEventSuburb(PassThru)
{
		winRefreshFrame('','/admin/eventsuburb.asp?ID='+PassThru+'&cacheDefeat=' + Math.random(),'right_iframe');
}

function winEventSuburbDelete(eventvenueID)
{
	winNewWindowCentered('/admin/frmEventSuburbDeleteConfirm.asp?eventvenueID=' + eventvenueID + '&cacheDefeat=' + Math.random(), 'winEventSuburbDeleteConfirm_' + eventvenueID,400,200);
}

/*-----------------End of Function for Event Suburbs added by Vivek on 16/09/2004-----------*/
/*--------------------Function added to popup the 'add event' by the community  by Vivek on 16/9/2004--------------*/
function winCommunityEvent()
{
	winNewWindowCentered('/frmCommunityEvent.asp?PassThru=1&cacheDefeat=' + Math.random(), 'winEventSuburbDeleteConfirm_' ,470,460);
}
/*	-------------------end of Function -------------------------------------*/

function winDocumentAssociationsJobs(docId){
	winNewWindowCentered('/admin/frmDocumentAssociationsJobs.asp?docId=' + docId + '&cacheDefeat=' + Math.random(), 'winDocumentAssociationsJobs_' + docId,490,420);
}



function winJaMenu(){
	winNewWindowCentered('/admin/ja_menu.asp?cacheDefeat=' + Math.random(), 'winJaMenu',460,300);
}

function winJaUpload(){
	winNewWindowCentered('/admin/frmJaListingsFileUpload.asp?cacheDefeat=' + Math.random(), 'winJaUpload',550,200);
}
function winJaImport(){
	winNewWindowCentered('/admin/jaImport.asp?cacheDefeat=' + Math.random(), 'winJaImport',460,300);
}
function winJaCSV(){
	winNewWindowCentered('/admin/jaRequests.asp?mode=csv&cacheDefeat=' + Math.random(), 'winJaCSV',600,400);
}
function winJaPurge(){
	winNewWindowCentered('/admin/jaRequests.asp?mode=purge&cacheDefeat=' + Math.random(), 'winJaPurge',460,300);
}




function winAclEditorDocument(iDocID){
	winNewWindowCentered('/admin/frmAclEditor.asp?mode=document&iDocID=' + iDocID + '&cacheDefeat=' + Math.random(), 'winJaPurge',510,300);
}

function winAclEditorCategory(iCatID){
	winNewWindowCentered('/admin/frmAclEditor.asp?mode=category&iCatID=' + iCatID + '&cacheDefeat=' + Math.random(), 'winJaPurge',510,300);
}


function winTrashcan(){
	winNewWindowCentered('/admin/frmTrashcan.asp?cacheDefeat=' + Math.random(), 'winTrashcan',620,450);
}





function winObjectEditor(){
	winNewWindowCentered('/admin/frmObjectEditor.asp?cacheDefeat=' + Math.random(), 'winObjectEditor',620,400);
}




function winUserDelete(UserID){
	winNewWindowCentered('/admin/frmUserDelete.asp?UserID=' + UserID, 'winUserDelete_' + UserID,400,150);
}




function winEmailTemplates(){
	winNewWindowCentered('/admin/frmEmailTemplates.asp?cacheDefeat=' + Math.random(), 'winEmailTemplates',620,400);
}


function winDocumentCounters(){
	winNewWindowCentered('/admin/frmDocumentCounters.asp?cacheDefeat=' + Math.random(), 'winDocumentCounters',400,300);
}
//Function Added by vivek on 13/9/2004 for refreshing iframe for event listing.
//these function have been moved to <root>/_ui.js 
/*function winReloadEventList()
{
	winRefreshFrame('','eventlist.asp','right_iframe');
}
//function added by vivek on 14/9/2004 for search events and listing them in iframe
function searchEvent()
{
	form = document.eventsearch;
	keyword = form.txtEventKeyword.value;
	fromDate = form.fromDate.value;
	toDate = form.toDate.value;
	//txtDatePickerTime_toDate = form.txtDatePickerTime_toDate.value;
	
	venueID = form.dd_VenueID.value;
	suburbID = form.dd_SuburbID.value;
	
	paramURL = 'keyword=' + keyword + '&fromDate='+fromDate;
	paramURL = paramURL + '&toDate='+ toDate;
	paramURL = paramURL + '&venueID='+ venueID;
	paramURL = paramURL + '&suburbID='+ suburbID;
	
	winRefreshFrame('','eventlist.asp?mode=search&'+paramURL,'right_iframe');
}

function searchDateEvents(searchdate)
{
	winRefreshFrame('','eventlist.asp?searchdate=' + searchdate,'right_iframe');
}*/

function disable(e){
	e.disabled=true;	
}
function enable(e){
	e.disabled=false;	
}

// added by steve
function winFaqCreate(){
	winRefreshFrame('','/admin/frmFaqCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winFaqManager(FaqId){
	winRefreshFrame('','/admin/frmFaqCreate.asp?PassThru=2&FaqId=' + FaqId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winFaqDelete(FaqId){
	winNewWindowCentered('/admin/frmFaqDeleteConfirm.asp?FaqId=' + FaqId + '&cacheDefeat=' + Math.random(), 'winFaqDeleteConfirm_' + FaqId,400,200);
}

function winFaqList(actionframe){
	winRefreshFrame('','faqList.asp?cacheDefeat=' + Math.random(),'top_iframe')
	if (actionframe == 0)
	{ 
		winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}

// added by steve
function winSubjectCreate(){
	winRefreshFrame('','/admin/frmSubjectCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winSubjectManager(SubjectId){
	winRefreshFrame('','/admin/frmSubjectCreate.asp?PassThru=2&SubjectId=' + SubjectId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winSubjectDelete(SubjectId){
	winNewWindowCentered('/admin/frmSubjectDeleteConfirm.asp?SubjectId=' + SubjectId + '&cacheDefeat=' + Math.random(), 'winSubjectDeleteConfirm_' + SubjectId,400,200);
}

function winSubjectList(actionframe){
	winRefreshFrame('','faqList.asp?cacheDefeat=' + Math.random(),'top_iframe')
	if (actionframe == 0)
	{ 
		winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
// end add steve

// added by steve07102004
function winLibrarySubjectCreate(){
	winRefreshFrame('','/admin/frmLibrarySubjectCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winLibrarySubjectManager(SubjectId){
	winRefreshFrame('','/admin/frmLibrarySubjectCreate.asp?PassThru=2&SubjectId=' + SubjectId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winLibrarySubjectDelete(SubjectId){
	winNewWindowCentered('/admin/frmLibrarySubjectDeleteConfirm.asp?SubjectId=' + SubjectId + '&cacheDefeat=' + Math.random(), 'winLibrarySubjectDeleteConfirm_' + SubjectId,400,200);
}

function winLibrarySubjectList(actionframe){
	winRefreshFrame('','libraryFaqList.asp?cacheDefeat=' + Math.random(),'top_iframe')
	if (actionframe == 0)
	{ 
		winRefreshFrame('','librarySubjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','librarySubjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
// end add steve

// added by steve 07102004
function winLibraryFaqCreate(){
	winRefreshFrame('','/admin/frmLibraryFaqCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winLibraryFaqManager(FaqId){
	winRefreshFrame('','/admin/frmLibraryFaqCreate.asp?PassThru=2&FaqId=' + FaqId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winLibraryFaqDelete(FaqId){
	winNewWindowCentered('/admin/frmLibraryFaqDeleteConfirm.asp?FaqId=' + FaqId + '&cacheDefeat=' + Math.random(), 'winLibraryFaqDeleteConfirm_' + FaqId,400,200);
}

function winLibraryFaqList(actionframe){
	winRefreshFrame('','libraryFaqList.asp?cacheDefeat=' + Math.random(),'top_iframe')
	if (actionframe == 0)
	{ 
		winRefreshFrame('','librarySubjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','librarySubjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}

// added by steve 07102004
function winLibraryUserCreate(){
	winRefreshFrame('','/admin/frmLibraryUserCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winLibraryUserManager(UserId){
	winRefreshFrame('','/admin/frmLibraryUserCreate.asp?PassThru=2&UserId=' + UserId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winLibraryUserDelete(UserId){
	winNewWindowCentered('/admin/frmLibraryUserDeleteConfirm.asp?UserId=' + UserId + '&cacheDefeat=' + Math.random(), 'winLibraryUserDeleteConfirm_' + UserId,400,200);
}

function winLibraryUserList(actionframe){
	winRefreshFrame('','libraryRegisteredList.asp?cacheDefeat=' + Math.random(),'left_iframe')
	if (actionframe == 0)
	{ 
		//winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		//winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}

// added by steve 07102004
function winLibraryVenueCreate(){
	winRefreshFrame('','/admin/frmLibraryVenueCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winLibraryVenueManager(VenueId){
	winRefreshFrame('','/admin/frmLibraryVenueCreate.asp?PassThru=2&VenueId=' + VenueId + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winLibraryVenueDelete(VenueId){
	winNewWindowCentered('/admin/frmLibraryVenueDeleteConfirm.asp?VenueId=' + VenueId + '&cacheDefeat=' + Math.random(), 'winLibraryVenueDeleteConfirm_' + VenueId,400,200);
}

function winLibraryVenueList(actionframe){
	winRefreshFrame('','libraryVenueList.asp?cacheDefeat=' + Math.random(),'left_iframe')
	if (actionframe == 0)
	{ 
		//winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe ==1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		//winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
	

// added by steve
function winEmailTypeCreate(){
	winRefreshFrame('','/admin/frmEmailTypeCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winEmailTypeManager(TypeID){
	winRefreshFrame('','/admin/frmEmailTypeCreate.asp?PassThru=2&emailTypeID=' + TypeID + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winEmailTypeDelete(TypeID){
	winNewWindowCentered('/admin/frmEmailTypeDeleteConfirm.asp?emailTypeID=' + TypeID + '&cacheDefeat=' + Math.random(), 'winEmailTypeDeleteConfirm_' + TypeID,400,200);
}

function winEmailTypeList(actionframe){
	winRefreshFrame('','emailTypeList.asp?cacheDefeat=' + Math.random(),'main_iframe')
	if (actionframe == 0)
	{ 
		//winRefreshFrame('','subjectList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	}
	else if (actionframe=1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','emailTypeList.asp?cacheDefeat=' + Math.random(),'main_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
// end add steve

// Added By Vivek on 1/10/2004 for Internal Message 
function winNewMessage(ID)
{
	winRefreshFrame('','internalMessages.asp?MsgID='+ID+'&cacheDefeat=' + Math.random(),'right_iframe')
}
function winShowIMsg(ID)
{
	//winRefreshFrame('','internalMessages.asp?MsgID='+ID+'&cacheDefeat=' + Math.random(),'right_iframe')
	parent.parent.frames['right_iframe'].location = 'internalMessages.asp?MsgID='+ID;
}

// added by steve on 03/10/2004
function winArtShowCreate(){
	winRefreshFrame('','frmArtShowCreate.asp?PassThru=1' + '&cacheDefeat=' + Math.random(),'right_iframe')
	winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
}

function winArtShowManager(TypeID){
	winRefreshFrame('','frmArtShowCreate.asp?PassThru=2&artShowID=' + TypeID + '&cacheDefeat=' + Math.random(),'right_iframe')
	winRefreshFrame('','artItemList.asp?PassThru=2&artShowID=' + TypeID + '&cacheDefeat=' + Math.random(),'middle_iframe')
}
function winArtShowDelete(TypeID){
	winNewWindowCentered('frmArtShowDeleteConfirm.asp?artShowID=' + TypeID + '&cacheDefeat=' + Math.random(), 'winArtShowDeleteConfirm_' + TypeID,400,200);
}

function winArtShowList(actionframe){
	winRefreshFrame('','artshowlist.asp?cacheDefeat=' + Math.random(),'top_iframe')
	if (actionframe == 0)
	{ 
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
	}
	else if (actionframe=1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','artshowlist.asp?cacheDefeat=' + Math.random(),'top_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
function winArtShowReset(){
	winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
}
// end add steve

// added by steve on 03/10/2004
function winArtItemCreate(ArtShowID){
	winRefreshFrame('','frmArtItemCreate.asp?PassThru=1&artShowID=' + ArtShowID + '&cacheDefeat=' + Math.random(),'right_iframe')
}

function winArtItemManager(ArtShowID,ArtItemID){
	winRefreshFrame('','frmArtItemCreate.asp?PassThru=2&artShowID=' + ArtShowID + '&artItemID=' + ArtItemID + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winArtItemDelete(ArtItemID){
	winNewWindowCentered('frmArtItemDeleteConfirm.asp?artItemID=' + ArtItemID + '&cacheDefeat=' + Math.random(), 'winArtItemDeleteConfirm_' + ArtItemID,400,200);
}

function winArtItemList(actionframe,ArtShowID){
	winRefreshFrame('','artItemList.asp?artShowID=' + ArtShowID + '&cacheDefeat=' + Math.random(),'middle_iframe')
	if (actionframe == 0)
	{ 
		//winRefreshFrame('','artItem.asp?cacheDefeat=' + Math.random(),'middle_iframe')
	}
	else if (actionframe=1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','artshowlist.asp?cacheDefeat=' + Math.random(),'top_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
// end add steve

// added by steve on 05/10/2004
function winArtCategoryCreate(){
	winRefreshFrame('','frmArtCategoryCreate.asp?PassThru=1&cacheDefeat=' + Math.random(),'right_iframe')
}

function winArtCategoryManager(ArtCatID){
	winRefreshFrame('','frmArtCategoryCreate.asp?PassThru=2&artCatID=' + ArtCatID + '&cacheDefeat=' + Math.random(),'right_iframe')
}
function winArtCategoryDelete(ArtCatID){
	winNewWindowCentered('frmArtCategoryDeleteConfirm.asp?artCatID=' + ArtCatID + '&cacheDefeat=' + Math.random(), 'winArtCategoryDeleteConfirm_' + ArtCatID,400,200);
}

function winArtCategoryList(actionframe){
	winRefreshFrame('','artCategoryList.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
	if (actionframe == 0)
	{ 
		//winRefreshFrame('','artItem.asp?cacheDefeat=' + Math.random(),'middle_iframe')
	}
	else if (actionframe=1)
	{
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
	else
	{
		winRefreshFrame('','artCategorylist.asp?cacheDefeat=' + Math.random(),'bottom_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'middle_iframe')
		winRefreshFrame('','emptybody.html?cacheDefeat=' + Math.random(),'right_iframe')
	}
}
// end add steve

//function added by Vivek for Update User Details
function  winUpdateUserDetails()
{
		winRefreshFrame('','frmUpdateUserDetails.asp' ,'right_iframe');
}

//function added by Vivek on 4/10 for Internal News
function acknowledge(ID)
{
		document.frmInternalNews.submit();
}
function winShowNews(ID)
{
		//winRefreshFrame('','frmAdminUserNews.asp?ID='+ID+'&cacheDefeat=' + Math.random(),'right_iframe')
		parent.parent.frames['right_iframe'].location = 'frmAdminUserNews.asp?ID='+ID+'&cacheDefeat=' + Math.random();
}

function winNewsListRefresh()
{
	winRefreshFrame('','frameSetAdminNews.asp?cacheDefeat=' + Math.random(),'main_iframe')
	//parent.parent.frames['right_iframe'].location = 'frmAdminUserNews.asp?ID='+ID;
}

function winInternalNews()
{
		winRefreshFrame('','internal_news.asp' ,'right_iframe');
}

function winNewsCreate(ID)
{
	//winRefreshFrame('','frmAdminUserNews.asp?ID='+ID+'&cacheDefeat=' + Math.random(),'right_iframe')
	parent.frames['right_iframe'].location = 'frmAdminUserNews.asp?ID='+ID;
}

function isNull(a) {
			return typeof a == 'object' && !a;
}

function winPrefDelete(ID){
	winNewWindowCentered('/admin/frmPrefDeleteConfirm.asp?ID=' + ID + '&cacheDefeat=' + Math.random(), 'winPrefDeleteConfirm_' + ID,400,200);
}

function winFieldAccess(sFormType){
	winRefreshFrame('','frmFieldAccess.asp?sFormType=' + sFormType,'right_iframe');
}
function winTrashcanDelete(sDocIDs){
	winNewWindowCentered('/admin/frmTrashDeleteConfirm.asp?sDocIDs=' + sDocIDs + '&cacheDefeat=' + Math.random(), 'winTrashDelete',360,190);
}
