" );
this.gWinCal.document.close();
}
// Show the yearly calendar ---------------------------------------------------
function Calendar_showY()
{
var vCode = "";
var i;
var vr, vc, vx, vy; // Row, Column, X-coord, Y-coord
var vxf = 285; // X-Factor
var vyf = 200; // Y-Factor
var vxm = 10; // X-margin
var vym; // Y-margin
if( Calendar.isIE ) vym = 75;
else if( Calendar.isNav ) vym = 25;
this.gWinCal.document.open();
this.wwrite( "" );
this.wwrite( "
" + Calendar.title + " " );
this.wwrite( "" );
this.wwrite( "
" );
this.wwrite( " " )
this.wwrite( "" );
this.wwrite( "Year : " + this.gYear );
this.wwrite( " " );
// Show navigation buttons
var prevYYYY = parseInt( this.gYear ) - 1;
var nextYYYY = parseInt( this.gYear ) + 1;
this.wwrite( " " );
// Get the complete calendar code for each month..
var j;
for( i=11; i>=0; i-- ) {
if( Calendar.isIE )
this.wwrite( "" );
else if( Calendar.isNav )
this.wwrite( "" );
this.gMonth = i;
this.gMonthName = this.getMonth( this.gMonth );
vCode = this.getMonthlyCalendarCode();
this.wwrite( this.gMonthName + "/" + this.gYear + " " );
this.wwrite( vCode );
if( Calendar.isIE )
this.wwrite( "
" );
else if( Calendar.isNav )
this.wwrite( "" );
}
this.wwrite( "
" );
this.gWinCal.document.close();
}
// Write the weekend string ---------------------------------------------------
function Calendar_writeWeekendString( vday )
{
var i;
// Return special formatting for the weekend day.
for( i=0; i "
wtext = this.fixupTags( wtext )
this.gWinCal.document.writeln( wtext );
}
else
this.gWinCal.document.writeln( wtext );
}
// Write a line to the document -----------------------------------------------
function Calendar_wwriteA( wtext )
{
if( Calendar.debug )
{
wtext = this.fixupTags( wtext )
this.gWinCal.document.write( wtext );
}
else
this.gWinCal.document.write( wtext );
}
// Display the calendar -------------------------------------------------------
function calendarShow(out_ret) {
/*
p_item : Name of field to populate for return.
p_month : 0-11 for Jan-Dec; 12 for All Months.
p_year : 4-digit year.
p_format: Date format ( mm/dd/yyyy, dd/mm/yy, ... )
*/
global_var = out_ret;
p_item = arguments[0];
if( arguments[1] == null )
p_month = new String( Calendar.gNow.getMonth() );
else
p_month = arguments[1];
if( arguments[2] == "" || arguments[2] == null )
p_year = new String( Calendar.gNow.getFullYear().toString() );
else
p_year = arguments[2];
if( arguments[3] == null )
p_format = "MM/DD/YYYY";
else
p_format = arguments[3];
if( Calendar.debug )
vWinCal = window.open( "", "Calendar", "" )
else
vWinCal = window.open( "", "Calendar",
"width=" + Calendar.widthMonth +
",height=" + Calendar.heightMonth +
",status=yes,resizable=yes,top=200,left=200" );
// ",status=no,resizable=no,top=200,left=200" );
//vWinCal.opener = self;
vWinCal.focus();
Calendar.ggWinCal = vWinCal;
Calendar_build( p_item, p_month, p_year, p_format );
}
// Display the yearly calendar --------------------------------
/*function calendarShowYear( p_item, p_year, p_format )
{
// Load the defaults..
if( p_year == null || p_year == "" )
p_year = new String( Calendar.gNow.getFullYear().toString() );
if( p_format == null || p_format == "" )
p_format = "MM/DD/YYYY";
var vWinCal = window.open( "", "Calendar", "scrollbars=yes" );
vWinCal.opener = self;
Calendar.ggWinCal = vWinCal;
Calendar_build( p_item, null, p_year, p_format );
}
*/
//return info
function setarrival(jsmo,jsday) {
if (document.afpForm && global_var == 1) {
document.afpForm.outmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.outday.options.selectedIndex=parseInt(jsday);
}
else if (document.afpForm && global_var == 2) {
document.afpForm.retmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.retday.options.selectedIndex=parseInt(jsday);
}
else if (document.afpForm && global_var == 3) {
document.afpForm.pupmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.pupday.options.selectedIndex=parseInt(jsday);
}
else if (document.afpForm && global_var == 4) {
document.afpForm.doffmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.doffday.options.selectedIndex=parseInt(jsday);
}
else if (document.afpForm && global_var == 5) {
document.afpForm.cinmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.cinday.options.selectedIndex=parseInt(jsday);
}
else if (document.afpForm && global_var == 6) {
document.afpForm.cotmonth.options.selectedIndex=parseInt(jsmo);
document.afpForm.cotday.options.selectedIndex=parseInt(jsday);
}
return;
}