PDA

View Full Version : javascript integration



bushman
09-02-2003, 08:03 AM
I'm no java master but I need to know how to put java into the category description to get it to work.

Is there a limit to how many lines?

Everythime I put java into the category description the "update" button doesn't work even thoguh the java looks perfect in preview.

Look, I've brough up this issue in various ways hoping to get answers and so far nothing. Can someone please reply even if to tell me that its impossible or that you can't help me?

It feels like a ghost town out here.

I put the following java into category description:

[code:1:164c778869]<script language="javascript">
function isToolset() {
var agentidname = document.existingagency.agentidname.value;
var str= document.existingagency.actionname.value;
if( str != null && str == "toolset")
{
var url =
"https://www.travelstoremaker.com/cgit/agency?wires=23645988ewCoIcXbPLLn&actionname=toolset&command=editagency&agentidname=" + agentidname;
window.open(url,'','');
return false;
}
}
</script>
<script>
NN4 = document.layers? true : false;
IE4 = document.all? true : false;
function writeCSS(css){
if (!(NN4)) {
document.write(css);
}
}
writeCSS('<STYLE type=text/css> FORM {PADDING-RIGHT: 0px;PADDING-LEFT: 0px;PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px;font-family: Arial, Helvetica, sans-serif;} select {font-size: 9pt;font-family: Verdana,Arial,Helvetica;color: #393939;}.border {font-size: 9pt;font-family: Verdana,Arial,Helvetica;font-weight: none;border-style: solid;border-width: 1px; border-color: #000000;}</style>');
holder = NN4 ? "layer" : "div";
divid=1;
function db() {
if (NN4) {
document.write("<"+ holder + " id=\"boza"+ ++divid+ "\" top=0 left=0 width=100% visibility=hidden\">");
} else {
document.write("<"+ holder + " id=\"boza"+ ++divid+ "\" style=\"position:absolute; visibility: hidden; font-size:1px; top:0px; left:0px; width:100%; \">");
}
}
function de() { document.write('</'+holder+'>'); }
</script>
</head>
<body
bgcolor="#FFFFCC"
text="#000000"
link="#0000FF"
alink="#FF0000"
vlink="#0000FF"
;"
>
<script>db();</script>
<a href="http://www.travelstoremaker.com">Affiliate travel program</a>
<script>de();</script>
<script>
function selectTrip(){
if (document.afpForm.triptype) {
document.afpForm.triptype.selectedIndex=1;
}
}
</script>
<center>
<flight booking"><br>
<script language="javascript" type="text/javascript">
<!--
function newPopup(winLink, winName, winWidth, winHeight, scrollbar, resizable) {
scrollbar=''; if (scrollbar) { scrollbar = ',scrollbars'; };
resizable=''; if (resizable) { resizable = ',resizable'; };
var winX = (window.screen.width / 2) - (winWidth / 2);
var winY = (window.screen.height / 2) - (winHeight / 2) - 25;
popup=window.open("", winName, "width="+winWidth+" ,height="+winHeight+resizable+scrollbar+",left="+winX+",top="+winY);
popup.document.location = winLink;
popup.self.focus();
};
// -->
</script>
<table border=0 cellspacing=0 cellpadding=0 width='90%'><tr><td bgcolor='#FF1AAF'><table border=0 cellspacing=1 cellpadding=3 width='100%'>
<tr>
<td align="center" bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
<a href="http://www.bahamasupclose.com/flights.htm">Home</a>
|
<a href="http://www.travelstoremaker.com/cgit/gate?wires=23645988ewCoIcXbPLLn&agentid=buc">Itinerary</a>
|
Reservations:
<a href="http://www.travelstoremaker.com/cgit/gate?wires=23645988ewCoIcXbPLLn&agentid=buc&command=flights" >
<b>Flight</b></a>
-
<a href="http://www.travelstoremaker.com/cgit/gate?wires=23645988ewCoIcXbPLLn&agentid=buc&command=hotels" >
<b>Hotel</b></a>
-
<a href="http://www.travelstoremaker.com/cgit/gate?wires=23645988ewCoIcXbPLLn&agentid=buc&command=cars" >
<b>Car</b></a>
<script language="javascript" type="text/javascript">
<!--
if ((navigator.appVersion.indexOf("MSIE") > 0) && (parseInt(navigator.appVersion) >= 4)) {
document.write('| ');
document.write('<a href="#" onclick=\'window.external.AddFavorite("http://www.travelstoremaker.com/cgit/porch?agentid=buc", "Bahamas Up Close - flight booking");return false;\'>');
document.write('Add to Favorites');
document.write('</');
document.write('a>');
}
// -->
</script>
|
<a href="javascript: newPopup('http://www.travelstoremaker.com/cgit/runhttl?wires=23645988ewCoIcXbPLLn&agentid=buc&path=add/help/Recommend','TellWindow',525,530,false,false)">Tell-a-friend</a>
|
<a href="http://www.travelstoremaker.com/cgit/runhttl?wires=23645988ewCoIcXbPLLn&agentid=buc&path=add/help/General">HELP</a>
</FONT></FONT>
</td>
</tr>
</table></td></tr></table>
<br>
<script language="javascript" type="text/javascript">
// calendar.js -- displays a monthly or yearly calendar
Calendar.debug = false
// Constants...
var SUNDAY = 0
var MONDAY = 1
var TUESDAY = 2
var WEDNESDAY = 3
var THURSDAY = 4
var FRIDAY = 5
var SATURDAY = 6
// These variables are replaceable by the calling application for localization
// or customization...
Calendar.firstDow = SUNDAY // First day on calendar display
Calendar.weekendDow = [SATURDAY, SUNDAY] // Weekend days
Calendar.fontFace = "Verdana" // Font face/family used for whole calendar
Calendar.pageBgColor = "#FFFFCC" // Page background color
Calendar.monthColor = "#000066" // Month, year text color
//Calendar.monthFontWeight = "" // Font weight ("bold" | "normal")
Calendar.monthFontSize = "10pt" // Font size (i.e., "10pt" | "14px")
Calendar.navbarColor = "#000000" // Navigation bar text color
Calendar.navbarBgColor = "#6BFF01" // Background color
//Calendar.navbarFontWeight = "bold" // Font weight ("bold" | "normal")
Calendar.navbarFontSize = "10pt" // Font size (i.e., "10pt" | "14px")
Calendar.headerColor = "#000066" // Day of Week heading text color
Calendar.headerBgColor = "#6BFF01" // Background color
//Calendar.headerFontWeight = "bold" // Font weight ("bold" | "normal")
Calendar.headerFontSize = "8pt" // Font size (i.e., "10pt" | "14px")
//Calendar.dayFontWeight = "bold" // In-month font weight
Calendar.dayFontSize = "10pt" // Font size (i.e., "10pt" | "14px")
//Calendar.paraDayFontWeight = "normal" // Out-of-month font weight
Calendar.paraDayFontSize = "10pt" // Font size (i.e., "10pt" | "14px")
Calendar.todayColor = "red" // Today's text color
Calendar.weekdayColor = "#000000" // Weekday text color
Calendar.weekdayBgColor = "#FFFF33" // Background color
//Calendar.weekdayFontWeight = "bold" // Font weight ("bold" | "normal")
Calendar.weekdayFontSize = "10pt" // Font size (i.e., "10pt" | "14px")
Calendar.weekendColor = "black" // Weekend text color
Calendar.weekendBgColor = "#FFFF33" // Weekend background color
Calendar.paraWeekdayColor = "gray" // Out-of-month weekday text color F
Calendar.paraWeekdayBgColor = "#FFFF33" // Weekday background color
Calendar.paraWeekendColor = "gray" // Weekend text color
Calendar.paraWeekendBgColor = "#FFFF33"// Weekend background color
Calendar.widthMonth = 250 // Monthly calendar width in pixels
Calendar.heightMonth = 300 // Monthly calendar height in pixels
// Day of week - initialized below
// Months
Calendar.month1 = "January"
Calendar.month2 = "February"
Calendar.month3 = "March"
Calendar.month4 = "April"
Calendar.month5 = "May"
Calendar.month6 = "June"
Calendar.month7 = "July"
Calendar.month8 = "August"
Calendar.month9 = "September"
Calendar.month10 = "October"
Calendar.month11 = "November"
Calendar.month12 = "December"
var df = new Array("Sun","Mon","Tue","Wed","Thu","Fri","Sat")
// Misc
Calendar.today = "Today"
Calendar.title = "Calendar"
// Internal variables ---------------------------------------------------------
Calendar.gNow = new Date();
Calendar.ggWinCal;
Calendar.isNav = ( navigator.appName.indexOf( "Netscape" ) != -1 ) ? true : false;
Calendar.isIE = ( navigator.appName.indexOf( "Microsoft" ) != -1 ) ? true : false;
// This is for compatibility with Navigator 3, we have to create and discard one object before the prototype object exists.
new Calendar();
// Global Variables
global_var = 0;
// class Calendar -------------------------------------------------------------
function Calendar( p_item, p_WinCal, p_month, p_year, p_format )
{
if( ( p_month == null ) && ( p_year == null ) ) return;
// Functions -----------------------------------------------
this.calcMonthYear = Calendar_calcMonthYear;
this.calData = Calendar_calData
this.calHeader = Calendar_calHeader
this.fixupTags = Calendar_fixupTags
this.formatData = Calendar_formatData
this.getDaysOfMonth = Calendar_getDaysOfMonth;
this.getMonth = Calendar_getMonth
this.getMonthlyCalendarCode = Calendar_getMonthlyCalendarCode
this.isWeekend = Calendar_isWeekend
this.print = Calendar_print;
this.replaceStr = Calendar_replaceStr
this.show = Calendar_show
this.showY = Calendar_showY
this.writeWeekendString = Calendar_writeWeekendString
this.wwrite = Calendar_wwrite
this.wwriteA = Calendar_wwriteA
// Initialization ------------------------------------------
if( p_WinCal == null )
this.gWinCal = Calendar.ggWinCal;
else
this.gWinCal = p_WinCal;
this.gYear = p_year;
this.gFormat = p_format;
this.gReturnItem = p_item;
// Initialize the days of the week
this.Dow = new Array()
for( i = 0; i < 7; i++ )
{
this.Dow[i] = df[i]
}
// Initialize the month names
this.Month = new Array()
this.Month[0] = Calendar.month1
this.Month[1] = Calendar.month2
this.Month[2] = Calendar.month3
this.Month[3] = Calendar.month4
this.Month[4] = Calendar.month5
this.Month[5] = Calendar.month6
this.Month[6] = Calendar.month7
this.Month[7] = Calendar.month8
this.Month[8] = Calendar.month9
this.Month[9] = Calendar.month10
this.Month[10] = Calendar.month11
this.Month[11] = Calendar.month12
if( p_month == null )
{
this.gMonthName = null;
this.gMonth = null;
this.gYearly = true;
}
else
{
this.gMonthName = this.getMonth( p_month );
this.gMonth = new Number( p_month );
this.gYearly = false;
}
// Non-Leap year Month days..
this.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
// Leap year Month days..
this.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
this.gNowDay = Calendar.gNow.getDate();
this.gNowMonth = Calendar.gNow.getMonth();
this.gNowYear = Calendar.gNow.getFullYear();
}
// Create the calendar --------------------------------------------------------
function Calendar_build( p_item, p_month, p_year, p_format )
{
var p_WinCal = Calendar.ggWinCal;
gCal = new Calendar( p_item, p_WinCal, p_month, p_year, p_format );
// Choose appropriate show function
if( gCal.gYearly )
gCal.showY();
else
gCal.show();
}
// Return the value to the form -----------------------------------------------
function Calendar_select( monthday )
{
var vMonth = gCal.gMonth;
setarrival(vMonth, monthday-1);
Calendar.ggWinCal.close()
}
// Return an array with months/years ------------------------------------------
function Calendar_calcMonthYear( p_Month, p_Year, incr )
{
/*
Will return an 1-D array with 1st element being the calculated month
and second being the calculated year
after applying the month increment/decrement as specified by 'incr' parameter.
'incr' will normally have 1/-1 to navigate thru the months.
*/
var ret_arr = new Array();
if( incr == -1 ) {
// B A C K W A R D
if( p_Month == 0 ) {
ret_arr[0] = 11;
ret_arr[1] = parseInt( p_Year ) - 1;
}
else {
ret_arr[0] = parseInt( p_Month ) - 1;
ret_arr[1] = parseInt( p_Year );
}
} else if( incr == 1 ) {
// F O R W A R D
if( p_Month == 11 ) {
ret_arr[0] = 0;
ret_arr[1] = parseInt( p_Year ) + 1;
}
else {
ret_arr[0] = parseInt( p_Month ) + 1;
ret_arr[1] = parseInt( p_Year );
}
}
return ret_arr;
}
// Write the data to the document ---------------------------------------------
function Calendar_calData()
{
var vDate = new Date();
vDate.setDate( 1 );
vDate.setMonth( this.gMonth );
vDate.setFullYear( this.gYear );
var vFirstDay = ( vDate.getDay() + 7 - Calendar.firstDow ) % 7
var vDay = 1;
var vLastDay = this.getDaysOfMonth( this.gMonth, this.gYear );
var vOnLastDay = false;
var vCode = "";
var vLastMonth = (this.gMonth > 0 ? this.gMonth - 1 : 11 )
//alert ("Tekushtia mesec: "+vDate.getMonth());
var vLastMonthYear = ( this.gMonth > 0 ? this.gYear : this.gYear - 1 )
var vLastMonthLastDay = this.getDaysOfMonth( vLastMonth, vLastMonthYear )
var vParaDay = vLastMonthLastDay - vFirstDay + 1
var isWeekend = false
var bgColor = ""
var vClass = ""
vCode += "<tr>";
// Place out-of-month days in the blanks...
for( i = 0; i < vFirstDay; i++ )
{
isWeekend = this.isWeekend( i )
bgColor = ( isWeekend ? Calendar.paraWeekendBgColor : Calendar.paraWeekdayBgColor )
vClass = ( isWeekend ? "para-weekend" : "para-weekday" )
vCode += "<td bgcolor='" + bgColor + "'>" +
"<span class='" + vClass + "'>" + vParaDay + "</span>" + "</td>";
vParaDay += 1
}
// Write rest of the 1st week
for( j = vFirstDay; j < 7; j++ )
{
isWeekend = this.isWeekend( j )
isToday = ( vDay == this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == this.gNowYear )
bgColor = ( isWeekend ? Calendar.weekendBgColor : Calendar.weekdayBgColor )
//vClass = ( isToday ? "today" : isWeekend ? "weekend" : "weekday" )
if ( (vDay < this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == this.gNowYear)
|| (vDay > this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == (this.gNowYear +1 ) ) )
{
vClass = ( isWeekend ? "para-weekend" : "para-weekday" );
vCode += "<td width='14%' bgcolor='" + bgColor + "'>" + "<span class='" + vClass + "'>" + vDay + "</span>" + "</td>";
} else
{
vClass = ( isToday ? "today" : isWeekend ? "weekend" : "weekday" );
vCode = vCode + "<td width='14%' bgcolor='" + bgColor + "'>" +
"<a href=\"JavaScript:self.opener.Calendar_select( " + vDay + " )\" " + "class='" + vClass + "' " + ">" + vDay + "</a>" + "</td>";
}
vDay = vDay + 1;
}
vCode = vCode + "</tr>";
// Write the rest of the weeks
for( k = 2; k < 7; k++ )
{
vCode = vCode + "<tr>";
for( j = 0; j < 7; j++ )
{
isWeekend = this.isWeekend( j )
isToday = ( vDay == this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == this.gNowYear )
bgColor = ( isWeekend ? Calendar.weekendBgColor : Calendar.weekdayBgColor )
//vClass = ( isToday ? "today" : isWeekend ? "weekend" : "weekday" )
if ( (vDay < this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == this.gNowYear)
|| (vDay > this.gNowDay && this.gMonth == this.gNowMonth && this.gYear == (this.gNowYear +1 ) ) )
{
vClass = ( isWeekend ? "para-weekend" : "para-weekday" );
vCode += "<td width='14%' bgcolor='" + bgColor + "'>" + "<span class='" + vClass + "'>" + vDay + "</span>" + "</td>";
} else
{
vClass = ( isToday ? "today" : isWeekend ? "weekend" : "weekday" );
vCode = vCode + "<td width='14%' bgcolor='" + bgColor + "'>" +
"<a href=\"JavaScript:self.opener.Calendar_select( " + vDay + " )\" " + "class='" + vClass + "' " + ">" + vDay + "</a>" + "</td>";
}
vDay=vDay + 1;
if( vDay > vLastDay ) {
vOnLastDay = true;
break;
}
}
if( j == 6 )
vCode = vCode + "</tr>";
if( vOnLastDay )
break;
}
// Fill up the rest of last week days in following month...
for( m = 1; m < ( 7 - j ); m++ )
{
if( this.gYearly )
vCode = vCode + "<td width='14%'" + this.writeWeekendString( j + m ) + ">" +
"<span class='text'> </span></td>";
else
{
isWeekend = this.isWeekend( m + j )
bgColor = ( isWeekend ? Calendar.paraWeekendBgColor : Calendar.paraWeekdayBgColor )
vClass = ( isWeekend ? "para-weekend" : "para-weekday" )
vCode += "<td width='14%' bgcolor='" + bgColor + "'>" +
"<span class='" + vClass + "'>" + m + "</span>" +
"</td>";
}
}
return vCode;
}
// Write the header to the document -------------------------------------------
function Calendar_calHeader()
{
var vCode = "";
var dow = new Array()
var i, j
// Adjust for different first day of the week...
for( i = 0; i < 7; i++ )
// dow[i] = this.Dow[( ( i + Calendar.firstDow ) % 7 )]
dow[i] = df[( ( i + Calendar.firstDow ) % 7 )]
vCode = vCode + "<tr bgcolor='" + Calendar.headerBgColor + "'>";
vCode = vCode + "<td width='14%' class='header'>" + dow[0] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[1] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[2] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[3] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[4] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[5] + "</td>";
vCode = vCode + "<td width='14%' class='header'>" + dow[6] + "</td>";
vCode = vCode + "</tr>";
return vCode;
}
// Close the calendar ---------------------------------------------------------
function Calendar_close()
{
if( Calendar.ggWinCal != null )
Calendar.ggWinCal.close()
}
// Change tags to output to debugging screen ----------------------------------
function Calendar_fixupTags( wtext )
{
orig = new String( wtext )
orig = this.replaceStr( orig, "<br>", "*br*" )
orig = this.replaceStr( orig, "&nbsp", "&nbsp" )
orig = this.replaceStr( orig, "<", "&" )
orig = this.replaceStr( orig, ">", "&" )
orig = this.replaceStr( orig, "*br*", "<br>" )
return orig
}
// Format the day of week data ------------------------------------------------
function Calendar_formatData( p_day )
{
var vData;
var vMonth = 1 + this.gMonth;
vMonth = ( vMonth.toString().length < 2 ) ? "0" + vMonth : vMonth;
var vMon = this.getMonth( this.gMonth ).substr( 0, 3 ).toUpperCase();
var vFMon = this.getMonth( this.gMonth ).toUpperCase();
var vY4 = new String( this.gYear );
var vY2 = new String( this.gYear.substr( 2,2 ) );
var vDD = ( p_day.toString().length < 2 ) ? "0" + p_day : p_day;
switch( this.gFormat )
{
case "MM\/DD\/YYYY" :
vData = vMonth + "\/" + vDD + "\/" + vY4;
break;
case "MM\/DD\/YY" :
vData = vMonth + "\/" + vDD + "\/" + vY2;
break;
case "MM-DD-YYYY" :
vData = vMonth + "-" + vDD + "-" + vY4;
break;
case "MM-DD-YY" :
vData = vMonth + "-" + vDD + "-" + vY2;
break;
case "DD\/MON\/YYYY" :
vData = vDD + "\/" + vMon + "\/" + vY4;
break;
case "DD\/MON\/YY" :
vData = vDD + "\/" + vMon + "\/" + vY2;
break;
case "DD-MON-YYYY" :
vData = vDD + "-" + vMon + "-" + vY4;
break;
case "DD-MON-YY" :
vData = vDD + "-" + vMon + "-" + vY2;
break;
case "DD\/MONTH\/YYYY" :
vData = vDD + "\/" + vFMon + "\/" + vY4;
break;
case "DD\/MONTH\/YY" :
vData = vDD + "\/" + vFMon + "\/" + vY2;
break;
case "DD-MONTH-YYYY" :
vData = vDD + "-" + vFMon + "-" + vY4;
break;
case "DD-MONTH-YY" :
vData = vDD + "-" + vFMon + "-" + vY2;
break;
case "DD\/MM\/YYYY" :
vData = vDD + "\/" + vMonth + "\/" + vY4;
break;
case "DD\/MM\/YY" :
vData = vDD + "\/" + vMonth + "\/" + vY2;
break;
case "DD-MM-YYYY" :
vData = vDD + "-" + vMonth + "-" + vY4;
break;
case "DD-MM-YY" :
vData = vDD + "-" + vMonth + "-" + vY2;
break;
default :
vData = vMonth + "\/" + vDD + "\/" + vY4;
}
return vData;
}
// Return the number of days in the month -------------------------------------
function Calendar_getDaysOfMonth( monthNo, p_year )
{
/*
Check for leap year ..
1.Years evenly divisible by four are normally leap years, except for...
2.Years also evenly divisible by 100 are not leap years, except for...
3.Years also evenly divisible by 400 are leap years.
*/
if( ( p_year % 4 ) == 0 ) {
if( ( p_year % 100 ) == 0 && ( p_year % 400 ) != 0 )
return this.DOMonth[monthNo];
return this.lDOMonth[monthNo];
} else
return this.DOMonth[monthNo];
}
// Return the month name ------------------------------------------------------
function Calendar_getMonth( monthNo )
{
return this.Month[monthNo];
}
// Draw the calendar ----------------------------------------------------------
function Calendar_getMonthlyCalendarCode()
{
var vCode = "";
var vHeader_Code = "";
var vData_Code = "";
// Begin Table Drawing code here..
vCode = vCode + "<table border=0 bgcolor=\"" + Calendar.weekdayBgColor + "\">";
vHeader_Code = this.calHeader();
vData_Code = this.calData();
vCode = vCode + vHeader_Code + vData_Code;
vCode = vCode + "</table>";
return vCode;
}
// Return true if dow is weekend day ------------------------------------------
function Calendar_isWeekend( vday )
{
var i;
vday = ( vday + Calendar.firstDow ) % 7
// Return special formatting for the weekend day.
for( i = 0; i < Calendar.weekendDow.length; i++ )
{
if( vday == Calendar.weekendDow[i] )
return true
}
return false
}
// Print the calendar ---------------------------------------------------------
function Calendar_print() {
Calendar.ggWinCal.print();
}
// Replace characters in the string -------------------------------------------
function Calendar_replaceStr( wtext, findText, replaceText )
{
var orig = new String( wtext );
var pos = orig.indexOf( findText ), len = findText.length;
while( pos != -1 )
{
pre = orig.substring( 0, pos )
post = orig.substring( pos + len, orig.length )
orig = pre + replaceText + post
pos = orig.indexOf( findText )
}
return orig
}
// Display the calendar -------------------------------------------------------
function Calendar_show()
{
var vCode = "";
this.gWinCal.document.open();
// Setup the page...
this.wwrite( "<html>" );
this.wwrite( "<head>" );
this.wwrite( "<title>" + Calendar.title + "</title>" );
this.wwrite( "<meta http-equiv=\"content-type\" content=\"text/html; charset=ISO-8859-1\">" );
// Write the CSS in the header portion of the page...
this.wwrite( "<style type='text/css'>" );
// Month heading style
this.wwrite( ".month{ " +
"font-weight:" + Calendar.monthFontWeight + ";" +
"font-size:" + Calendar.monthFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.monthColor + ";" +
"}" );
// Navigation bar style
this.wwrite( ".navbar{ " +
"font-weight:" + Calendar.navbarFontWeight + ";" +
"font-size:" + Calendar.navbarFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.navbarColor + ";" +
"text-decoration:none;" +
"}" );
// Day of Week heading style
this.wwrite( ".header{ " +
"font-weight:" + Calendar.headerFontWeight + ";" +
"font-size:" + Calendar.headerFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.headerColor + ";" +
"}" );
// Weekday style...
this.wwrite( ".weekday{ " +
"font-weight:" + Calendar.dayFontWeight + ";" +
"font-size:" + Calendar.dayFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.weekdayColor + ";" +
"text-decoration:none;" +
"}" );
// Weekday style...
this.wwrite( ".today{ " +
"font-weight:" + Calendar.dayFontWeight + ";" +
"font-size:" + Calendar.dayFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.todayColor + ";" +
"text-decoration:none;" +
"}" );
// Day of week style for out-of-month dates...
this.wwrite( ".para-weekday{ " +
"font-weight:" + Calendar.paraDayFontWeight + ";" +
"font-size:" + Calendar.paraDayFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.paraWeekdayColor + ";" +
"}" );
// weekend style...
this.wwrite( ".weekend{ " +
"font-weight:" + Calendar.dayFontWeight + ";" +
"font-size:" + Calendar.dayFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.weekendColor + ";" +
"text-decoration:none;" +
"}" );
// weekend style for out-of-month dates...
this.wwrite( ".para-weekend{ " +
"font-weight:" + Calendar.paraDayFontWeight + ";" +
"font-size:" + Calendar.paraDayFontSize + ";" +
"font-family:" + Calendar.fontFace + ";" +
"color:" + Calendar.paraWeekendColor + ";" +
"}" );
this.wwrite( "</style>" );
this.wwrite( "</head>" );
this.wwrite( "<table border='0'><tr><td>" );
this.wwrite( "<body bgcolor=\"" + Calendar.pageBgColor + "\" >" )
this.wwriteA( "<span class='month'>" )
this.wwriteA( this.gMonthName + " " + this.gYear );
this.wwriteA( "</span><br>" );
// Show navigation buttons
var prevMMYYYY = this.calcMonthYear( this.gMonth, this.gYear, -1 );
var prevMM = prevMMYYYY[0];
var prevYYYY = prevMMYYYY[1];
var nextMMYYYY = this.calcMonthYear( this.gMonth, this.gYear, 1 );
var nextMM = nextMMYYYY[0];
var nextYYYY = nextMMYYYY[1];
this.wwrite( "<table width='100%' border='0' cellspacing='0' cellpadding='0' bgcolor='" + Calendar.navbarBgColor + "'><tr><td align='center'>" );
/* this.wwrite( "<a class='navbar' href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + this.gMonth + "', '" + ( parseInt( this.gYear )-1 ) + "', '" + this.gFormat + "'" +
" );" +
"\">&&lt<\/a></td><td align=center>" );
*/
// Show the link of previus month or not if the month is less than NowMonth
if (this.gMonth == this.gNowMonth && this.gYear == this.gNowYear){
this.wwrite("&lt</td><td align=center>" );
} else {
this.wwrite( "<a class='navbar'href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + prevMM + "', '" + prevYYYY + "', '" + this.gFormat + "'" +
" );" + "\">&lt<\/a></td><td align=center>" );
}
this.wwrite( "<a class='navbar'href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + Calendar.gNow.getMonth() + "', '" + Calendar.gNow.getFullYear() + "', '" + this.gFormat + "'" +
" );" +
"\">" + Calendar.today + "<\/a></td><td align=center>" );
// Show the link of next month or not if the month is more than NowMonth + 1 Year
if (this.gMonth == this.gNowMonth && (this.gYear == this.gNowYear + 1) ) {
this.wwrite( "&gt<\/a></td></tr></table><br>" );
} else {
this.wwrite( "<a class='navbar'href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" +
" );" + "\">&gt<\/a></td></tr></table><br>" );
}
/* To uncomment if the next/prev year want to be visible! =======.
this.wwrite( "<a class='navbar'href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" +
" );" +
"\">&gt<\/a></td><td align=center>" );
this.wwrite( "<a class='navbar'href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', '" + this.gMonth + "', '" + ( parseInt( this.gYear )+1 ) + "', '" + this.gFormat + "'" +
" );" +
"\">&&gt<\/a></td></tr></table><br>" );
*/
// Get the complete calendar code for the month..
vCode = this.getMonthlyCalendarCode();
this.wwrite( vCode );
this.wwrite( "</font><br></td></tr></table></body></html>" );
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( "<html>" );
this.wwrite( "<head><title>" + Calendar.title + "</title>" );
this.wwrite( "<style type='text/css'>\n<!--" );
for( i=0; i<12; i++ ) {
vc = i % 3;
if( i>=0 && i<= 2 ) vr = 0;
if( i>=3 && i<= 5 ) vr = 1;
if( i>=6 && i<= 8 ) vr = 2;
if( i>=9 && i<= 11 ) vr = 3;
vx = parseInt( vxf * vc ) + vxm;
vy = parseInt( vyf * vr ) + vym;
this.wwrite( ".lclass" + i + " {position:absolute;top:" + vy + ";left:" + vx + ";}" );
}
this.wwrite( "-->\n</style>" );
this.wwrite( "</head>" );
this.wwrite( "<body>" )
this.wwrite( "<font face='" + Calendar.fontFace + "' size=2>" );
this.wwrite( "Year : " + this.gYear );
this.wwrite( "<br>" );
// Show navigation buttons
var prevYYYY = parseInt( this.gYear ) - 1;
var nextYYYY = parseInt( this.gYear ) + 1;
this.wwrite( "<table width='200' border=0 cellspacing=0 cellpadding=0 ><tr><td align=center>" );
this.wwrite( "[<a href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', null, '" + prevYYYY + "', '" + this.gFormat + "'" +
" );" +
"\" alt='Prev Year'><<<\/a>]</td><td align=center>" );
this.wwrite( "[<a href=\"javascript:window.print();\">Print</a>]</td><td align=center>" );
this.wwrite( "[<a href=\"" +
"javascript:window.opener.Calendar_build( " +
"'" + this.gReturnItem + "', null, '" + nextYYYY + "', '" + this.gFormat + "'" +
" );" +
"\"><\/a>]</td></tr></table><br>" );
// Get the complete calendar code for each month..
var j;
for( i=11; i>=0; i-- ) {
if( Calendar.isIE )
this.wwrite( "<div id=\"layer" + i + "\" class=\"lclass" + i + "\">" );
else if( Calendar.isNav )
this.wwrite( "<layer id=\"layer" + i + "\" class=\"lclass" + i + "\">" );
this.gMonth = i;
this.gMonthName = this.getMonth( this.gMonth );
vCode = this.getMonthlyCalendarCode();
this.wwrite( this.gMonthName + "/" + this.gYear + "<br>" );
this.wwrite( vCode );
if( Calendar.isIE )
this.wwrite( "</div>" );
else if( Calendar.isNav )
this.wwrite( "</layer>" );
}
this.wwrite( "</font><br></td></tr></table</body></html>" );
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<Calendar.weekendDow.length; i++ ) {
if( vday == Calendar.weekendDow[i] )
return ( " bgcolor=\"" + Calendar.weekendBgColor + "\"" );
}
return "";
}
// Write text to the document -------------------------------------------------
function Calendar_wwrite( wtext )
{
if( Calendar.debug )
{
wtext = wtext + "<br>"
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) {
eval("document.afpForm."+global_var+"month.options.selectedIndex=parseInt("+jsmo+")");
eval("document.afpForm."+global_var+"day.options.selectedIndex=parseInt("+jsday+")");
return;
}
</script>
<script language="javascript" type="text/javascript">
<!--
function evalTrip() {
if (document.afpForm.triptype.selectedIndex ==2) {
window.location.href = "/cgit/airsearch?wires=23645988ewCoIcXbPLLn&agentid=buc&do_multiprefs=yes&leg1fromcity="+document.afpForm.fromcity.value+"&leg1tocity="+document.afpForm.tocity.value;
}
}
function progress() {
document.afpForm.action="/cgit/runhttl";
document.afpForm.method="get";
document.afpForm.submit();
return false;
}
// -->
</script>
<form method="post" action="/cgit/airsearch" name="afpForm" onSubmit="return progress();">
<input type="hidden" name="wires" value="23645988ewCoIcXbPLLn">
<input type="hidden" name="agentid" value="buc">
<input type="hidden" name="selectedticket" value="ETICKET">
<input type="hidden" name="meta_go" value="*">
<input type="hidden" name="path" value="add/Progress">
<input type="hidden" name="CGI_NAME" value="airsearch">
<table border=0 cellspacing=0 cellpadding=0 width='90%'><tr><td bgcolor='#FF1AAF'><table border=0 cellspacing=1 cellpadding=3 width='100%'>
<tr>
<td colspan="2" bgcolor="#6BFF01">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000066'><B>Flight Preferences</B></FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33" width="259">
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<b>Trip Type</b><br>
<select name="triptype" OnChange="evalTrip()">
<option value="ONEWAY">One Way
<option selected value="ROUNDTRIP">Round Trip
<option value="MULTIPLE">Multiple Leg Trip
</select>
</FONT>
</td>
<td>& &</td>
<td nowrap>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<b>Class of Service</b><br>
<select name="serviceclass">
<option value="Any">Any
<option value="Coach"selected>Economy
<option value="Business">Business
<option value="First">First
</select>
</FONT>
</td>
</tr>
</table>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
Select One Way, Round Trip, Multiple Leg Trip and Class of Service
</FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<table width="100%" cellspacing="0" cellpadding="0" border="0">
<tr>
<td width="40%" nowrap><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Depart from</b></FONT></td>
<td width="60%"><input type="text" size="15" class="border" name="fromcity" maxlength="64" >
</td>
</tr>
<tr>
<td width="40%" nowrap><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Arrive at</b></FONT></td>
<td width="60%"><input type="text" SIZE="15" class="border" name="tocity" MAXLENGTH="128" >
</td>
</tr>
</table>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
City name or city/airport code (e.g. Atlanta or ATL).
</FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<table border="0" cellspacing="0" cellpadding="0" width="80%">
<tr>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Departure</b></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Date</b></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Time</b></FONT></td>
</tr>
<tr>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="outmonth"><option value=0>January<option value=1>February<option value=2>March<option value=3>April<option value=4>May<option value=5>June<option value=6>July<option value=7>August<option selected value=8>September<option value=9>October<option value=10>November<option value=11>December</select></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="outday"><option value=1>1<option selected value=2>2<option value=3>3<option value=4>4<option value=5>5<option value=6>6<option value=7>7<option value=8>8<option value=9>9<option value=10>10<option value=11>11<option value=12>12<option value=13>13<option value=14>14<option value=15>15<option value=16>16<option value=17>17<option value=18>18<option value=19>19<option value=20>20<option value=21>21<option value=22>22<option value=23>23<option value=24>24<option value=25>25<option value=26>26<option value=27>27<option value=28>28<option value=29>29<option value=30>30<option value=31>31</select></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="outhour"><option value=0>00<option value=1>01<option value=2>02<option value=3>03<option value=4>04<option value=5>05<option value=6>06<option value=7>07<option value=8>08<option selected value=9>09<option value=10>10<option value=11>11<option value=12>12<option value=13>13<option value=14>14<option value=15>15<option value=16>16<option value=17>17<option value=18>18<option value=19>19<option value=20>20<option value=21>21<option value=22>22<option value=23>23</select></FONT></td>
<td></td>
<td align="right"><a href="javascript:calendarShow('out')"><img src="/homes/basicagency/images/calendar.gif" border="0"></a></td>
</tr>
</table>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<FONT SIZE='2' COLOR='#000000'>
<FONT COLOR='#990000'><B>Note:</B></FONT><br>
Departure date should be at least 2 days from now.
</FONT>
</FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<table border="0" cellspacing="0" cellpadding="0" width="80%">
<tr>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Return</b></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Date</b></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><b>Time</b></FONT></td>
</tr>
<tr>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="retmonth"><option value=0>January<option value=1>February<option value=2>March<option value=3>April<option value=4>May<option value=5>June<option value=6>July<option value=7>August<option selected value=8>September<option value=9>October<option value=10>November<option value=11>December</select></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="retday"><option value=1>1<option selected value=2>2<option value=3>3<option value=4>4<option value=5>5<option value=6>6<option value=7>7<option value=8>8<option value=9>9<option value=10>10<option value=11>11<option value=12>12<option value=13>13<option value=14>14<option value=15>15<option value=16>16<option value=17>17<option value=18>18<option value=19>19<option value=20>20<option value=21>21<option value=22>22<option value=23>23<option value=24>24<option value=25>25<option value=26>26<option value=27>27<option value=28>28<option value=29>29<option value=30>30<option value=31>31</select></FONT></td>
<td><FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><select name="rethour"><option value=0>00<option value=1>01<option value=2>02<option value=3>03<option value=4>04<option value=5>05<option value=6>06<option value=7>07<option value=8>08<option selected value=9>09<option value=10>10<option value=11>11<option value=12>12<option value=13>13<option value=14>14<option value=15>15<option value=16>16<option value=17>17<option value=18>18<option value=19>19<option value=20>20<option value=21>21<option value=22>22<option value=23>23</select></FONT></td>
<td></td>
<td align="right"><a href="javascript:calendarShow('ret')"><img src="/homes/basicagency/images/calendar.gif" border="0"></a></td>
</tr>
</table>
</td>
<td bgcolor="#FFFF33">
&
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<b>Type and Number of Passengers</b><br>
</FONT>
<table cellpadding="1" cellspacing="0" border="0">
<tr>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="ptc1">
<option value="ADT" selected>Adult
<option value="CNN">Accompanied Child
<option value="UNN">Unaccompanied Child
<option value="INF">Infant Without Seat
<option value="INS">Infant With Seat
<option value="SRC">Senior Citizen
<option value="STU">Student
<option value="SEA">Seaman
<option value="YTH">Youth
</select>
</FONT>
</td>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="numptc1">
<option value="0">0
<option value="1" selected>1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
</select>
</FONT>
</td>
</tr>
<tr>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="ptc2">
<option value="ADT">Adult
<option value="CNN" selected>Accompanied Child
<option value="UNN">Unaccompanied Child
<option value="INF">Infant Without Seat
<option value="INS">Infant With Seat
<option value="SRC">Senior Citizen
<option value="STU">Student
<option value="SEA">Seaman
<option value="YTH">Youth
</select>
</FONT>
</td>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="numptc2">
<option value="0" selected>0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
</select>
</FONT>
</td>
</tr>
<tr>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="ptc3">
<option value="ADT">Adult
<option value="CNN">Accompanied Child
<option value="UNN">Unaccompanied Child
<option value="INF" selected>Infant Without Seat
<option value="INS">Infant With Seat
<option value="SRC">Senior Citizen
<option value="STU">Student
<option value="SEA">Seaman
<option value="YTH">Youth
</select>
</FONT>
</td>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="numptc3">
<option value="0" selected>0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
</select>
</FONT>
</td>
</tr>
<tr>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="ptc4">
<option value="ADT">Adult
<option value="CNN">Accompanied Child
<option value="UNN">Unaccompanied Child
<option value="INF">Infant Without Seat
<option value="INS">Infant With Seat
<option value="SRC" selected>Senior Citizen
<option value="STU">Student
<option value="SEA">Seaman
<option value="YTH">Youth
</select>
</FONT>
</td>
<td>
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<select name="numptc4">
<option value="0" selected>0
<option value="1">1
<option value="2">2
<option value="3">3
<option value="4">4
<option value="5">5
<option value="6">6
<option value="7">7
<option value="8">8
<option value="9">9
</select>
</FONT>
</td>
</tr>
</table>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
The maximum number of passengers per reservation is 9.<br>
Infant applies to children under 2.<br>
Child applies to ages 2 through 12.<br>
Youth applies to ages 12 through 25.<br>
Senior Citizens applies to over-62s.<br>
</FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<b><input type="checkbox" name="directflight" value="Y" > Search for direct flights only</b>
</FONT>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
When you check this option our system will show you only direct flights.
</FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
Select up to 3 <b>Airlines</b> (optional)<br>
<select name="carriercodes" size="5" multiple>
<option value="XX">Any/All carriers
<option value="EI">Aer Lingus
<option value="AC">Air Canada
<option value="AF">Air France
<option value="FL">AirTran Airways
<option value="AS">Alaska Air
<option value="AZ">Alitalia
<option value="HP">America West
<option value="AA">American Airlines
<option value="TZ">American Trans Air
<option value="OS">Austrian Airlines
<option value="BA">British Airways
<option value="BD">British Midland
<option value="CO">Continental
<option value="OK">Czech Airlines
<option value="DL">Delta
<option value="F9">Frontier Airlines
<option value="HA">Hawaiian Airlines
<option value="IB">Iberia
<option value="JL">Japan Airlines
<option value="KL">KLM
<option value="LO">LOT-Polish Airlines
<option value="LH">Lufthansa
<option value="MA">Malev
<option value="MX">Mexicana
<option value="JI">Midway Airlines
<option value="YX">Midwest Express
<option value="N7">National Airlines
<option value="NW">Northwest
<option value="OA">Olympic Airways
<option value="QF">Qantas Airways
<option value="SK">SAS
<option value="LX">Swiss
<option value="UA">United Airlines
<option value="US">US Airways
<option value="NJ">Vanguard
<option value="VS">Virgin Atlantic
</select>
</FONT>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
You may select up to 3 carriers
. Default is "Any/All" airlines.
</FONT></FONT>
</td>
</tr>
<tr>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
Search by:<br>
<input type="radio" name="meta_do" value="do_power" CHECKED> <b>Availability</b><br>
<input type="radio" name="meta_do" value="do_fares"> <b>Fares</b>
<input type=hidden name="maxfaresshown" value="30">
<br>
<input type="radio" name="meta_do" value="do_flights"> <b>Schedules</b>
<input type="hidden" name="maxflightsshown" value="10">
<br>
</FONT>
</td>
<td bgcolor="#FFFF33">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'><FONT SIZE='2' COLOR='#000000'>
<br>
<b>Availability</b> - search for the lowest fares with seats available.<br><br>
<b>Fares</b> - search to find least expensive fares for the date selected and then check for availability.<br><br>
<b>Schedules</b> - search to identify available flight schedules closest to the desired departure/arrival times.
</FONT></FONT>
</td>
</tr>
<tr>
<td colspan="2" bgcolor="#FFFF33">
<input type=hidden name="loccurrency" value ="USD">
<input type=hidden name="loccountry" value ="US">
<FONT FACE='Verdana,Arial,Helvetica' SIZE='2' COLOR='#000000'>
<input class="border" type="submit" name="meta_go" value="Continue">
</FONT>
</td>
</tr>
</table></td></tr></table>
</form>
<script language="javascript" type="text/javascript">
<!--
function bbb() {
var outday=document.afpForm.outday.selectedIndex;
var outmonth=document.afpForm.outmonth.selectedIndex;
var calendar=new Date();
var advpurchase=2+1;
calendar.setDate(calendar.getDate()+advpurchase);
document.afpForm.outday.selectedIndex=calendar.get Date()-1;
document.afpForm.outmonth.selectedIndex=calendar.g etMonth();
calendar.setDate(calendar.getDate()+7);
document.afpForm.retday.selectedIndex=calendar.get Date()-1;
document.afpForm.retmonth.selectedIndex=calendar.g etMonth();
}
// Following is to fix Netscape 6's strange behaviour
setTimeout('bbb()',100);
if ((document.preforma)&&(document.preforma.loccurrency)&&(document.preforma.loccountry)){
change_parameters(document.preforma.loccurrency);
change_parameters(document.preforma.loccountry);
}
// -->
</script>
<script language="javascript" type="text/javascript">
<!--
if (parent.pframe) {
parent.location.replace(self.docume

michael_s
09-02-2003, 10:42 AM
Were all just getting over a holiday weekend.... It should feel like a ghost-town. :)

The reason I have not answered your question is because I dont know the answer. Perhaps someone else has experience using javascript in this manner, but unfortunately I do not.

If I get some time later, I will see if I can hack it in a bit...

neil
09-13-2003, 03:51 AM
Bushman,
The code is incomplete :?:
Maybe save it as a text file, zip it up and repost it.

bushman
09-16-2003, 10:12 AM
Sorry 4 the delay...been busy translating site into other languages.

Anyway, here's the java code in a zip file.

When I try to copy/paste it into Category description the preview looks excellent but the "update" button doesn't respond.


see what you can do.