// Open a new window to choose staff you want to see
function openWindow(pagefrom, refdate, curmonth, curyear, buttonpressed)
	{
	staffWindow = window.open('chooseStaff.asp?pageFrom=' + pagefrom + '.asp&referenceDate=' + refdate + '&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&buttonPressed=' + buttonpressed,'chooseStaff','scrollbars=yes,resizable=yes,width=280,height=375');
	if (staffWindow .opener == null) staffWindow .opener = self;
	//return true;
	}

// Open a new window to choose assignments you want to see
function openAssWindow(pagefrom, refdate, curmonth, curyear, buttonpressed)
	{
	assWindow = window.open('chooseAss.asp?pageFrom=' + pagefrom + '.asp&referenceDate=' + refdate + '&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&buttonPressed=' + buttonpressed,'chooseStaff','scrollbars=yes,resizable=yes,width=280,height=375');
	if (assWindow .opener == null) assWindow .opener = self;
	//return true;
	}
	
// Open a new window to choose absences you want to see
function openAbsWindow(pagefrom, refdate, curmonth, curyear, buttonpressed)
	{
	absWindow = window.open('chooseAbs.asp?pageFrom=' + pagefrom + '.asp&referenceDate=' + refdate + '&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&buttonPressed=' + buttonpressed,'chooseAbsences','scrollbars=yes,resizable=yes,width=280,height=375');
	if (absWindow .opener == null) absWindow .opener = self;
	//return true;
	}

// Open new window for On/Off Requests	
function openRequestsWindow(pagefrom, datstart, datend, curmonth, curyear, buttonpressed)
	{
	requestsWindow = window.open('/schedule/onOffRequests/index.asp?pageFrom=' + pagefrom + '.asp&strStart=' + datstart + '&strEnd=' + datend + '&nStaffSeq=1&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&buttonPressed=' + buttonpressed,'onOffRequests','scrollbars=yes,resizable=yes,width=425,height=400');
	if (requestsWindow.opener == null) requestsWindow.opener = self;
	//return true;
	}

// Open Print Friendly Window
function openPrintFriendlyWindow(curmonth, curyear, refdate, buttonpressed, staffseq, assignseq)
	{
	PrintFriendlyWindow = window.open('/schedule/schEZprint.asp?schPeriod=Full&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&referenceDate=' + refdate + '&buttonPressed=' + buttonpressed + '&StaffSeq=' + staffseq + '&AssignSeq=' + assignseq,'printFriendly','scrollbars=yes,resizable=yes,menubar=yes');
	if (PrintFriendlyWindow.opener == null) PrintFriendlyWindow.opener = self;
	//return true;
	}
	
// Open PDF Window
function openMakePDFWindow(curmonth, curyear, refdate, buttonpressed, staffseq, assignseq)
	{
	window.open('/schedule/printformat.asp?schPeriod=Full&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&referenceDate=' + refdate + '&buttonPressed=' + buttonpressed + '&StaffSeq=' + staffseq + '&AssignSeq=' + assignseq,'_blank','scrollbars=auto,resizable=no,width=200,height=150', 'printformat');
	}
	
	
function setPrintLayout(strFormat, curmonth, curyear, refdate, buttonpressed, staffseq, assignseq) {
	MakePDFWindow = window.open('/schedule/schEZpdf.asp?schPeriod=Full&CurrentMonth=' + curmonth + '&CurrentYear=' + curyear + '&referenceDate=' + refdate + '&buttonPressed=' + buttonpressed + '&StaffSeq=' + staffseq + '&AssignSeq=' + assignseq + '&strFormat=' + strFormat,'_blank','scrollbars=yes,resizable=yes,width=640,height=480');
	if (MakePDFWindow.opener == null) MakePDFWindow.opener = self;
	//return true;
	}