/******************************************************
* Print Web Page after clicking link or Printer image *
******************************************************/
function PrintThisWindow()
{
	window.print();
}
/*****************************************************/

/*************************************************
* Display image onMouseOver an onMouseOut events *
*************************************************/
function img_top_switch_gif(imgObjName, imgFileName) 
{
	document[imgObjName].src = "http://www.rcrh.org/images/lnkBar/"+ imgFileName +".gif";
}
function img_switch_gif(imgObjName, imgFileName) 
{
	document[imgObjName].src = "/images/"+ imgFileName +".gif";
}
/************************************************/

/********************************************************
* Open Specialized window for Regional News application *
********************************************************/
function OpenWindowRegionalNewsAdmin(intEditionID)
{
	var intHeight = screen.availHeight - 75;
	var intWidth = screen.availWidth - 50;
	var objWindowRegionalNews;
	objWindowRegionalNews = window.open("/admin/RCRH/Newsletter/fraNewsletter.asp?EditionID=" + intEditionID, "winRCRHNewsletter","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=no");
}
/*******************************************************/

/********************************************************
* Open Specialized window for Regional News application *
********************************************************/
function OpenWindowRegionalNews()
{
	var intHeight = screen.availHeight - 75;
	var intWidth = screen.availWidth - 50;
	var objWindowRegionalNews;
	objWindowRegionalNews = window.open("/Newsroom/Newsletter/Default.htm", "winRCRHNewsletter","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=no");
}
/*******************************************************/

/**************************************************************
* Open Specialized window to Print Entire Regional Newsletter *
**************************************************************/
function OpenWindowRNPrintAll(intEditionID)
{
	var intHeight = screen.availHeight - 75;
	var intWidth = screen.availWidth - 50;
	var objWindowRNPrint;
	objWindowRNPrint = window.open("/Newsroom/Newsletter/Print_app.asp?EditionID=" + intEditionID, "winRCRHNewsPrint","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=yes");
}
/*************************************************************/

/*********************************************************************
* Open Specialized window to Print Regional News Article by Category *
*********************************************************************/
function OpenWindowRNPrintCategory(intEditionID, intCategoryID)
{
	var intHeight = screen.availHeight - 75;
	var intWidth = screen.availWidth - 50;
	var objWindowRNPrint;
	objWindowRNPrint = window.open("/Newsroom/Newsletter/PrintCategory_app.asp?EditionID=" + intEditionID + "&CategoryID=" + intCategoryID, "winRCRHNewsPrint","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=yes");
}
/********************************************************************/

/******************************************************************************
* Open Specialized window to Confirm Printing of entire Regional News edition *
******************************************************************************/
function OpenWindowRNPrintConfirm(intEditionID)
{
	var objWindowRNPrintConfirm;
	objWindowRNPrintConfirm = window.open("/Newsroom/Newsletter/PrintConfirmation.asp?EditionID=" + intEditionID, "winRCRHNewsPrintConfirm","top=100,left=100,width=330,height=260,menubar=no,resizable=no,scrollbars=no,toolbar=no");
}
/*****************************************************************************/

/**********************************************
* Open Specialized window for RCRH Email Form *
**********************************************/
function OpenWindowEmail(strEmailAddress)
{
	var objWindowEmail;
	objWindowEmail = window.open("/ContactUs/EmailRCRH.asp?Email=" + strEmailAddress, "winRCRHEmail", "top=5,left=5,width=475,height=475,menubar=no,resizable=no,scrollbars=yes,toolbar=no");
}
/*********************************************/


/*******************************************
* Open Calendar window for selecting dates *
*******************************************/
function CalendarWindow(strObject, blnShowTime, intTopOffset, intLeftOffset)
{
	var intTop = event.screenY;
	intTop = intTop + intTopOffset;
	
	var intLeft = event.screenX;
	intLeft = intLeft + intLeftOffset;
	
	var objCalandarWindow;
	objCalandarWindow = window.open("/include/Calendar.asp?Object=" + strObject + "&ShowTime=" + blnShowTime,"CalendarWindow","resizable=yes,menubar=no,scrollbars=no,status=no,width=165,height=200,top=" + intTop + ",left=" + intLeft);

}
/******************************************/

/********************************************
* Open specialized window for viewing video *
********************************************/
function OpenWindowViewVideo(strVideoPath, strVideoHeading, intWidth, intHeight)
{
	var objNewsletterWindow;
	objNewsletterWindow = window.open("/include/ViewVideo_app.asp?VideoPath=" + strVideoPath + "&VideoHeading=" + strVideoHeading, "winRCRHVideo","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=no");
}
/*******************************************/

/********************************************
* Open specialized window for CMN Purchases *
********************************************/
function OpenWindowCMNPurchase(strPath, intWidth, intHeight)
{
	var objCMNWindow;
	objCMNWindow = window.open(strPath, "winCMNWindow","top=0,left=0,width=" + intWidth + ",height=" + intHeight + ",menubar=no,resizable=yes,scrollbars=yes,toolbar=no");
}
/*******************************************/

/*************************************************************
* Open Specialized window to Complete Employment Application *
*************************************************************/
function OpenWindowEmpAppComplete(intApplicantID)
{
	var objWindowRCRHEmpApp;
	objWindowRCRHEmpApp = window.open("/Employment/Application/fraEmpAppSummary.asp?ApplicantID=" + intApplicantID, "winRCRHEmpApp","top=0,left=0,width=650,height=600,menubar=no,resizable=yes,scrollbars=yes,toolbar=no");
}
/************************************************************/

/**********************************************************
* Open Specialized window to Print Employment Application *
**********************************************************/
function OpenWindowEmpAppPrint(intApplicantID)
{
	var objWindowRCRHEmpAppPrint;
	objWindowRCRHEmpAppPrint = window.open("/Employment/Application/Completed_Application.asp?ApplicantID=" + intApplicantID,"_blank","menubar=no,personalbar=no,resizable=yes,scrollbars=yes,toolbar=yes,width=650,height=600,top=0,left=0")
}
/*********************************************************/

/***************************************************************
* Open Specialized window to Create New Employment Application *
***************************************************************/
function OpenWindowEmpAppApply(intPositionAvailableID, intPersonID, strJobDescription)
{
	var strAnswer;
	strAnswer = confirm("Are you sure you want to apply for the following job:\n\n" + strJobDescription)
	
	if (strAnswer)
	{
		var objWindowRCRHEmpAppApply;
		objWindowRCRHEmpAppApply = window.open("/Employment/Application/modApplyForJob.asp?PositionAvailableID=" + intPositionAvailableID , "_blank","menubar=no,personalbar=no,resizable=yes,scrollbars=yes,toolbar=no,width=650,height=600,top=0,left=0")
	}
}
/**************************************************************/
