/**********************************************************************
* function pdfWindow(string pdfFile)
*	Input: 	the file to open in the new window
*	Output: New window with the file requested opened inside
*	Comments: This function was written to open the .pdf files in 
*		a new window so that the user would not have to keep 
*		hitting the back key once finished with the .pdf file.
*	Author: Joe LaChapell 04-OCT-2001 
**********************************************************************/


function pdfWindow(pdfFile)
{
	var pdfWindow;
	pdfWindow = window.open(pdfFile, 'pdfWindow' , 'resizable=yes,toolbar=yes,status=no,scrollbars=yes,location=no,menubar=yes,directories=no,width=600,height=500,top=80,left=40,alwaysontop=yes');
	pdfWindow.focus();
}

function childWindow(URL)
{
	var height =  screen.availHeight - 200;
	var width = screen.availWidth - 200;

	var childWindow;
	childWindow = window.open(URL,'childWindow','resizable=yes,toolbar=yes,status=yes,scrollbars=yes,location=no,menubar=no,directories=no,width=' + width + ',height=' + height + ',top=10,left=10,alwaysontop=yes');
	childWindow.focus();
}

function calendarWindow(formName, fieldName)
{
	var height =  240;
	var width = 240;
	var URL = "/calendar.cfm?formName=" + formName + "&fieldName=" + fieldName;
	var calendarWindow;
	calendarWindow = window.open(URL,'calendarWindow','resizable=no,toolbar=no,status=no,scrollbars=no,location=no,menubar=no,directories=no,width=' + width + ',height=' + height + ',top=10,left=500,alwaysontop=yes');
	calendarWindow.focus();
}
function formValuePass(passed_url)
{
	var height =  600;
	var width = 800;
	var project = parent.document.enterHours.description.value;
	
	var URL =passed_url + project;
	var ValuePassed;
	ValuePassed = window.open(URL,'ValuePassed','resizable=no,toolbar=no,status=no,scrollbars=yes,location=yes,menubar=no,directories=no,width=' + 					width + ',height=' + height + ',top=10,left=500,alwaysontop=yes');
	ValuePassed.focus();
	
}

