[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Konquorer online banking date - Part 2
From:       Anthony M Farrell <afarrell () slingshot ! co ! nz>
Date:       2002-03-31 4:51:02
[Download RAW message or body]

Attached is the second part of my online banking problem. The transfer date, 
day, drop down list does not work in Konqueror.

Regards

Tony Farrell
afarrell@slingshot.co.nz
["konquerormgXl1a.html" (text/html)]

<HTML>
<!-- Lotus-Domino (Release 5.0a (Intl) - 4 May 1999 on Windows NT/Intel) -->
<HEAD>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"><META HTTP-EQUIV="Expires" \
CONTENT="0"><META HTTP-EQUIV="Cache-Control" CONTENT="must-revalidate"><META \
HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> <META http-equiv="PICS-Label" \
content='(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l gen true comment "RSACi \
North America Server" by "common_questions@westpactrust.co.nz" for \
"https://sec.westpactrust.co.nz" on "2000.05.10T23:34-0800" ratings (n 0 s 0 v 0 l \
0))'><script><!-- // Hide javascript code


function timeoutAlert() {

  if (confirm("hi...just checking, there has been no activity for some time, \nso \
click 'OK' if you wish to continue, \nor click 'Cancel' to log out.  \nFor your \
security if you have been unable to respond\nto this message we will automatically \
log you out...sorry"))

  {

    self.location.reload();

  } else {

    self.location="/servlet/Banking?xtr=Logoff";

  }

}


function resetTimeout() {

  setTimeout('timeoutAlert()', parseInt('540000'))

}


// --></script>

<SCRIPT language = "javascript">

/*

These scripts control the dates displayed on the date select boxes so that only

valid dates are displayed up to 180 days in advance.


The current date is passed from the server, as is the date to which the calendar \
should default


*/



//This function determines a date 180 days in advance of today's date and returns it \
as an array 

//object with elements 0 = day, 1 = month, 2 = year

function sixMonths(day, month, year) {

	

	var theYear = year;

	var theMonth = 0;

	var theDay = 0;

	var count = 0;

	var daysInYear = 0;

	var daysSoFar = 0;

	var sixMonthsDate = new Array();	//stores day, month, year


	var monthCount = new Array(0,31,28,31,30,31,30,31,31,30,31,30,31)

		

	if(year%4==0) {

	monthCount[2]=29;

	}

	

	for(i=1;i<13;i++) {

		daysInYear = daysInYear + monthCount[i];

	}

	

	for(i=month;i>0;i--) {

		daysSoFar = daysSoFar + monthCount[i];

	}

	

	daysSoFar = daysSoFar + day;	//Today's day as a number

	var sixMonthsFuture = daysSoFar + 180;	//6 months in future

	

	if(sixMonthsFuture > daysInYear) {

		sixMonthsFuture = sixMonthsFuture - daysInYear;

		theYear = year + 1;

	}

	

	//Determine month and day of 6 months in advance

	if (theYear%4==0) {

		monthCount[2] = 29;

	} else {

		monthCount[2] = 28;

	}

	

	var k=1;

	while ((sixMonthsFuture > count)&&(k<13)) {

		count = count + monthCount[k];

		k++	

	}

	

	theMonth = k-1;

	theDay = sixMonthsFuture - (count - monthCount[k-1])-1;


	//If theDay is zero then must have value equal to last day of previous month

	//and theMonth is one less.

	//If theMonth is also zero then must have a value equal to last month of previous \
year

	//and theYear is one less

	if (theDay == 0) {

		theMonth = theMonth - 1;

		if (theMonth == 0) {	

			theMonth = 12;	//December

			theYear = theYear - 1;

		}

		theDay = monthCount[theMonth];

	}


	

	sixMonthsDate[0] =	theDay;		//Day

	sixMonthsDate[1] =	theMonth;	//Month

	sixMonthsDate[2] = theYear;		//Year

	

	return sixMonthsDate;

}

//This function initialises the dates in the select boxes to the required date

//The default date is the date supplied by the server, not necessarily today's date

function initialise(f) {


	var thisDay = parseInt(f.serverDay.value,10);

	var thisMonth = parseInt(f.serverMonth.value,10);

	var thisYear = parseInt(f.serverYear.value);

	var defaultDay = parseInt(f.serverDayDefault.value-1,10);

	var defaultMonth = parseInt(f.serverMonthDefault.value,10);

	var defaultYear = parseInt(f.serverYearDefault.value);

	var status;

	

	var sixMonthsTime = new Array(); 	//Array storing the date in 6 months time (day, \
month, year)

	var totalElements=f.elements.length; //All the elements in the form

	var currentMonth = 0;				//thisMonth;

	var currentDay = 0;

	

	

	//Check whether default date is same as today's date

	if ((thisDay==defaultDay+1)&&(thisMonth==defaultMonth)&&(thisYear==defaultYear)) {

		status=0;	//Same

	} else {

		status=1;	//Different

	}

	

	

	sixMonthsTime = sixMonths(thisDay, thisMonth, thisYear)

	


	//Populate the date elements in the form

	for(var i=0;i<totalElements;i++) {

		if(f.elements[i].name=="startYear") {

			populateYear(f, thisYear, f.elements[i], sixMonthsTime[2], defaultYear, status);

		}

		if(f.elements[i].name=="startMonth")

			populateMonth(f, thisMonth, f.elements[i], sixMonthsTime[1], sixMonthsTime[2], \
currentMonth, defaultMonth, status);

			

		if(f.elements[i].name=="startDay")

			populateDay(f, thisDay, thisMonth, thisYear, f.elements[i], sixMonthsTime[0], \
sixMonthsTime[1], currentDay, sixMonthsTime[2], defaultDay, status);

	}

}

//This function builds a string declaration for an option list

function optBuild(x,y,optList) {


	s1 = new String ("var option" + x)

	s2 = new String (" = new Option")

	s3 = new String(optList[y])

	s4 = new String(s1 + s2 + s3)

	s5 = s4.valueOf()

	return s5

}


function setIndexToZero(theDayElement) {

	theDayElement.options.selectedIndex = 0;

}

//This function populates options in the Day selection box option list

function populateDay(f, todayDay, todayMonth, todayYear, theDayElement, dayMax, \
monthMax, currentDay, yearMax, dayDef, status) {


	var daysInMonth=0;

	var j=0;

	var selY = f.startYear.options.selectedIndex

	var selM = f.startMonth.options.selectedIndex

	var selD = f.startDay.options.selectedIndex; 

	var currentYear = parseInt(f.startYear.options[selY].text);

	var currentMonth = parseInt(f.startMonth.options[selM].value);

	

	

	//Check for April, June, September, November

	if(currentMonth==3||currentMonth==5||currentMonth==8||currentMonth==10) {

		daysInMonth=30;

	} else if ((currentMonth==1) && (currentYear%4 != 0)) { //February not on a leap \
year

		daysInMonth=28; 

	} else if ((currentMonth==1) && (currentYear%4 == 0)) { //February on a leap year

		daysInMonth=29;

	} else {	//All other months

		daysInMonth=31;

	}

	

	//Build up the array of options

	var optionList = new Array()

	for (var i=0;i<31;i++) {

		optionList[i] = "('" + (i+1) +"', '" + (i+1) + "')"

	}


	theDayElement.options.length=0; //Reset option list to blank


	//Check if current month is displayed, display only current date and future days

	if ((monthMax<7)&&(currentYear < yearMax)) {	//Next 6 months goes into next year

		if (currentMonth==todayMonth) {	//Today's month selected

			j = todayDay-1;

		} else {

			j = 0;

		}

			

	} else {	//Next six months is within this year

		if (currentMonth==todayMonth) {	//Today's month is selected

			j = todayDay-1;

		}

	}

	

	//Test whether the user has selected the 6th month in advance, restrict no. of days \
in that month

	if (currentMonth==(monthMax-1)) {

		daysInMonth = dayMax;

	}

	var n = 0;

	var m = 0;

	

	//Add options to the option list

	theDayElement.options.length = 0;


   	for (i=j; i < daysInMonth; i++) {


		eval(optBuild(n,i,optionList));

		eval("theDayElement.options[n]=option" + n) 

		if (status==0) {


			if (n==parseInt(currentDay)) {

				m = n;

			}

		} else {

			if (n==parseInt(dayDef-j)) {

				m = n;

			}

		}

		n++

	}

	theDayElement.options.selectedIndex = m;


	//Select an option if none selected above...

	

	//If user selects today's month when a VALID day for the month is displayed

	if (status==0) {

		if ((parseInt(currentDay) > j)&&(currentMonth == \
todayMonth)&&(daysInMonth>=currentDay+1)) {

			theDayElement.options[currentDay-j].selected = true;

		}

	}

//If user selects today's month and the current day is before today's day 

	//OR the current day is more than days in the selected month


	if (status==0) {


		if (((parseInt(currentDay) <= j)&&(currentMonth==todayMonth))||(currentDay+1 > \
daysInMonth)) {

			if (navigator.appName == 'Netscape') {

				setTimeout(setIndexToZero,100,theDayElement);	//put in 100 millisecond delay

			        }

			else {

				theDayElement.options.selectedIndex = 0;	//Select the first valid day in the \
month

			}

		}

	}

}

//This function populates the Month select box option list

function populateMonth(f, todayMonth, theMonthElement, monthMax, yearMax, \
currentMonth, monthDef, status) {


	var selD = f.startDay.options.selectedIndex; 

	var selM = f.startMonth.options.selectedIndex;

	var selY = f.startYear.options.selectedIndex;

	

	var optionList = new Array()

	optionList[0] = "('Jan', '0')"

	optionList[1] = "('Feb', '1')" 

	optionList[2] = "('Mar', '2')"

	optionList[3] = "('Apr', '3')" 

	optionList[4] = "('May', '4')" 

	optionList[5] = "('Jun', '5')" 

	optionList[6] = "('Jul', '6')" 

	optionList[7] = "('Aug', '7')" 

	optionList[8] = "('Sep', '8')" 

	optionList[9] = "('Oct', '9')" 

	optionList[10] = "('Nov', '10')" 

	optionList[11] = "('Dec', '11')" 


	//Next 6 months carries onto a new year AND current year is selected

	if ((monthMax<7)&&(f.startYear.options[selY].value < yearMax)) {


		//Populate months to end of year

		for (i=todayMonth; i < 12; i++) {

			var n = parseInt(i-todayMonth); 

			eval(optBuild(n,i,optionList));

			eval("theMonthElement.options[n]=option" + n) 

			

			if (status==0) {

				if (n==currentMonth) {

					theMonthElement.options.selectedIndex = n;      

				}

			} else {

				if (n==monthDef-todayMonth) {

					theMonthElement.options.selectedIndex = n;      

				}

			}

		} 

	} else {	//Populate rest of months if the next year is selected


		theMonthElement.options.length = 0;

		for (var j=0; j < monthMax; j++) {

			var n = parseInt(j-todayMonth); 

			eval(optBuild(j,j,optionList));

			eval("theMonthElement.options[j]=option" + j)

			if (status==0) {

				if (j==currentMonth) {

					theMonthElement.options.selectedIndex = j;

				}

			} else {

				if (j==monthDef) {

					theMonthElement.options.selectedIndex = j;

				}

			}

		}			

	}


	if (monthMax > 6) {	//Next 6 months within same year

		theMonthElement.options.length=0;

		for (var i=todayMonth; i < monthMax; i++) { 

			var n = parseInt(i-todayMonth); 

			eval(optBuild(n,i,optionList));

			eval("theMonthElement.options[n]=option" + n)      


			if (status==0) {

				if (n==currentMonth) {         

					theMonthElement.options.selectedIndex = n;      

				}

			} else {

				if (n==monthDef-todayMonth) {         

					theMonthElement.options.selectedIndex = n;      

				}

			}	  

		}

	}


	//Test whether user selected previous year

	if (f.startYear.options[selY].value < yearMax) {

		theMonthElement.options.length = 0;


		for (var i=todayMonth; i < 12; i++) {

			var n = parseInt(i-todayMonth); 

			eval(optBuild(n,i,optionList));

			eval("theMonthElement.options[n]=option" + n) 

			

			if (status==0) {

				if (n==currentMonth) {

					theMonthElement.options.selectedIndex = n;      

				}

			} else {

				if (n==monthDef-todayMonth) {

					theMonthElement.options.selectedIndex = n;      

				}

			}

		}

	}

}

//This function populates the Year select box option list

function populateYear(f, todayYear, theYearElement, yearMax, yearDef, status) {

	var optionList = new Array()

	optionList[0] = "('2000', '2000')"

	optionList[1] = "('2001', '2001')" 

	optionList[2] = "('2002', '2002')"

	optionList[3] = "('2003', '2003')" 

	optionList[4] = "('2004', '2004')" 

	optionList[5] = "('2005', '2005')" 

	optionList[6] = "('2006', '2006')" 

	optionList[7] = "('2007', '2007')" 

	optionList[8] = "('2008', '2008')" 

	optionList[9] = "('2009', '2009')" 


	theYearElement.options.length = 0;

	var j = 0;

	todayYearString = todayYear.toString()

	var x = todayYearString.substring(3,4)	//Valid up to 2009 only

	

	//Test whether the next year should also displayed

	if (todayYear!=yearMax) {

		j=2;

	} else {

		j=1;

	}

	

	//Populate the Year option boxes

	var n = 0;

	var m = 0;

   	for (i=0; i < j; i++) {

   		x = parseInt(x)

		eval(optBuild(n,x,optionList));

		eval("theYearElement.options[n]=option" + n)

		if (status==0) { 

			if (parseInt(theYearElement.options[n].value)==todayYear) {

				m = i;

			}

		} else {

			if (parseInt(theYearElement.options[n].value)==yearDef) {

				m = i;

			}

		}

		n++  

		x++

	}

	theYearElement.options.selectedIndex = m;

}

//This function is used to repopulate the date select box option lists when the year \
is changed

function repopulate(f, obj) {


	var thisDay=parseInt(f.serverDay.value,10);

	var thisMonth=parseInt(f.serverMonth.value,10);

	var thisYear=parseInt(f.serverYear.value);

	var sixMonthsTime = new Array(); 	//Array storing the date in 6 months time (day, \
month, year)

	var totalElements=f.elements.length; //All the elements in the form

	var selD = f.startDay.options.selectedIndex; 

	var selY = f.startYear.options.selectedIndex


	sixMonthsTime = sixMonths(thisDay, thisMonth, thisYear)

	

	for(var i=0;i<totalElements;i++) {

		//Only repopulate the days for the selected month

		if((f.elements[i].name=="startDay")) {

			

			var day=f.elements[i].selectedIndex+1;

			var month=f.elements[i-1].selectedIndex;

			var year=f.elements[i-2].selectedIndex;

			var currentMonth = month;

			var currentDay = parseInt(f.startDay.options[selD].value-1)

			

			if (obj.name == "startYear") {

				//Test whether the user selects the previous year 

				if (parseInt(f.elements[i-2].options[selY].value)<sixMonthsTime[2]) {

					month = thisMonth;

					day = thisDay;

					currentMonth = 0;

				} else {

					currentMonth = 0;

				}

			} else {	//obj.name == "startMonth"

				//Test whether the user selects the previous year OR all months fall within same \
year

				if ((parseInt(f.elements[i-2].options[selY].value) < \
sixMonthsTime[2])||(sixMonthsTime[1]>5)) {

					month = thisMonth;

					day = thisDay;

				}

			}

			

			if (obj.name == "startMonth") {

			month = thisMonth;

			day = thisDay;


			populateDay(f, day, month, year, f.elements[i], sixMonthsTime[0], \
sixMonthsTime[1], currentDay, 				sixMonthsTime[2],0,0);

			}

			else {			

			populateMonth(f, month, f.elements[i-1], sixMonthsTime[1], \
sixMonthsTime[2],currentMonth,0,0);

			month = thisMonth;

			day = thisDay;

			populateDay(f, day, month, year, f.elements[i], sixMonthsTime[0], \
sixMonthsTime[1], currentDay, 				sixMonthsTime[2],0,0);

			}			

			//populateMonth(f, month, f.elements[i-1], sixMonthsTime[1], sixMonthsTime[2], \
currentMonth,0,0);

			//month = thisMonth;

			//populateDay(f, day, month, year, f.elements[i], sixMonthsTime[0], \
sixMonthsTime[1], currentDay, 				sixMonthsTime[2],0,0);

		}

	}

}


</SCRIPT><script><!-- // hide javascript code


function setfocus() {


  var donefocus = false;

  var numforms = document.forms.length;


  // loop through all forms in document

  for (f = 0; f < numforms && !donefocus; f++) {

    numelements = document.forms[f].elements.length;

    // loop through all elements in form

    for (e = 0; e < numelements && !donefocus; e++) {

      if (!document.forms[f].elements[e].disabled

                 && !document.forms[f].elements[e].readOnly) {

        switch (document.forms[f].elements[e].type) {

          case ("text"):

          case ("textarea"):

          case ("password"):

          document.forms[f].elements[e].focus();

          donefocus = true;

          break;

        }

      }

    }

  }

}


// --></script><TITLE>WestpacTrust - IOLB: Funds transfer - Steps 1 - \
4</TITLE></HEAD> <body onload="initialise(document.dateForm); resetTimeout(); \
setfocus();" onresize="if(navigator.appName=='Netscape') \
initialise(document.dateForm);" leftMargin=8 marginWidth=8 topMargin=8 marginHeight=8 \
bgColor=#FFFFFF text=#000066 link=#FF0000 alink=#FF0000 vLink=#FF0000 \
background=/images/134_hotere.gif>  <a name="top">
<!-- page header table -->
<table width=780 cellpadding=0 cellspacing=0 border=0>
<tr>
  <td align=left valign=top></td>
</tr>
</table><!-- page body table -->
<table width=770 cellpadding=0 cellspacing=0><tr><!-- nav col -->
<td align=left valign=top width=127><img src="/images/nav_smalllogo.gif" border=0 \
width=120 height=35><P><table width=100% cellspacing=0 cellpadding=0 border=0><tr><td \
valign=top align=left width=100%><a href="/servlet/Banking?xtr=AccountList" ><img \
src="/images/nav_viewaccountbalances.gif" border=0 alt="Welcome / acct \
balances"></a></td></tr></table><table width=100% cellspacing=0 cellpadding=0 \
border=0><tr><td valign=top align=left width=100%><a \
href="/servlet/Banking?xtr=StaticPage&name=XferMoney" ><img \
src="/images/nav_transfermoneyorpaybills_left.gif" border=0 width=120 height=30 \
alt="Transfer money or Pay bills"></a></td></tr></table><table width=100% \
cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=left width=1><img \
src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top align=left \
width=100%><img src="/images/nav_transfermoney_right_hi.gif" border=0 width=126 \
height=20 alt="Transfer money"></td></tr></table><table width=100% cellspacing=0 \
cellpadding=0 border=0><tr><td valign=top align=left width=1><img \
src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top align=left \
width=100%><a href="/servlet/Banking?xtr=StaticPage&name=Nojava" \
onClick="this.href='/servlet/Banking?xtr=BillerAdd'" ><img \
src="/images/nav_payanaccountforthefirsttime_right.gif" border=0 width=120 height=30 \
alt="Pay an account for the first time"></a></td></tr></table><table width=100% \
cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=left width=1><img \
src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top align=left \
width=100%><a href="/servlet/Banking?xtr=StaticPage&name=Nojava" \
onClick="this.href='/servlet/Banking?xtr=BillerPayments'" ><img \
src="/images/nav_makeasubsequentpayment_right.gif" border=0 width=120 height=30 \
alt="Make a subsequent payment"></a></td></tr></table><table width=100% cellspacing=0 \
cellpadding=0 border=0><tr><td valign=top align=left width=1><img \
src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top align=left \
width=100%><a href="/servlet/Banking?xtr=FutureTransactionsList" ><img \
src="/images/nav_viewamendscheduledtransfersandbillpayments_right.gif" border=0 \
width=120 height=40 alt="View / amend planned transfers & bill \
payments"></a></td></tr></table><table width=100% cellspacing=0 cellpadding=0 \
border=0><tr><td valign=top align=left width=1><img src="/images/1pixel.gif" width=1 \
height=1 border=0></td><td valign=top align=left width=100%><a \
href="/servlet/Banking?xtr=StaticPage&name=Nojava" \
onClick="this.href='/servlet/Banking?xtr=BillerModify'" ><img \
src="/images/nav_amendpaymentreferncedetails_right.gif" border=0 width=120 height=30 \
alt="Amend payment reference details"></a></td></tr></table><table width=100% \
cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=left width=1><img \
src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top align=left \
width=100%><a href="/servlet/Banking?xtr=BillersPrint" ><img \
src="/images/nav_printalistofpeopleyoucurrentlypay_right.gif" border=0 width=120 \
height=30 alt="Print a list of people you currently pay"></a></td></tr></table><table \
width=100% cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=left \
width=1><img src="/images/1pixel.gif" width=1 height=1 border=0></td><td valign=top \
align=left width=100%><a href="/servlet/Banking?xtr=StaticPage&name=Nojava" \
onClick="this.href='/servlet/Banking?xtr=BillerRemove'" ><img \
src="/images/nav_removeanaccountyounolongerpay_right.gif" border=0 width=120 \
height=30 alt="Remove an account you no longer pay"></a></td></tr></table><img \
src="/images/nav_dividerline.gif" border=0 width=126 height=10><table width=100% \
cellspacing=0 cellpadding=0 border=0><tr><td valign=top align=left width=100%><a \
href="/servlet/Banking?xtr=StaticPage&name=Nojava" \
onClick="this.href='/servlet/Banking?xtr=PayTaxSelectType'" ><img \
src="/images/nav_paytax_L1.gif" border=0 width=120 height=20 alt="Pay \
tax"></a></td></tr></table><table width=100% cellspacing=0 cellpadding=0 \
border=0><tr><td valign=top align=left width=100%><a \
href="/servlet/Banking?xtr=Logoff" ><img src="/images/nav_logoff_left.gif" border=0 \
width=120 height=20 alt="Log out"></a></td></tr></table></td>

<!-- left margin column-->
<td align=left valign=top><img src="/images/1pixel.gif" border=0 width=10 height=1 \
border=0></td><!-- content col --> <td valign=top align=left width=643>

<script language='JavaScript'>
<!-- Hide script from old browsers
function validation(realName, formEltName, eltType, upToSnuff, format) {
  this.realName = realName;
  this.formEltName = formEltName;
  this.eltType = eltType;
  this.upToSnuff = upToSnuff;
  this.format = format;
}var isIE3 = (navigator.appVersion.indexOf('MSIE 3') != -1);
var allAtOnce = false;
var beginRequestAlertForText = "";
var beginRequestAlertGeneric = "";
var endRequestAlert = ".";
var beginInvalidAlert = " is an invalid entry ";
var endInvalidAlert = "";
var beginFormatAlert = "  Use this format: ";var teleid= new validation('a Customer \
Tele ID', 'teleid', 'text', 'isText(str)', null);var amount = new \
validation('"...sorry, but,\n- $ amount must be between 0.00 and 100000000.00\n- must \
not include commas\n- must not include spaces\n -cents must be entered 1.10, not \
1.1"', 'amount', 'text', 'isCurrency(str)', null); var accounts = new \
validation('"sorry, but you need to select another "To" \
account"','accountId','radio','validateAccount(formObj)', null);

var elts = new Array(accounts, amount);function validateAccount(formObj) {
    var fromAccounts = formObj.form.accountId;
    var toAccounts = formObj.form.accountToId;

    fromIdx = fromAccounts.options.selectedIndex;
    toIdx = toAccounts.options.selectedIndex;
    if (fromAccounts.options[fromIdx].value == toAccounts.options[toIdx].value)
        return false;
    else
        return true;
}function isCurrency(str) {
	var theLength = "";
	var currency = "";
	var maxAmount = 99999999.99;
		if (isNaN(str)) { return false; }
		theLength = str.length;
		if (theLength <= 0) { return false; }
		if ((str.indexOf("-") != -1) | (str.indexOf(",") != -1) | (str.indexOf(" ") != -1)) \
{ return false; }  if(str.indexOf(".") >= 0) {
			if ((theLength - str.indexOf(".")) == 3) {
				currency = parseFloat(str);
			} else {
				return false;
			}
		} else {
			if (isNaN(str)) {
				return false;
			} else {
				currency = parseInt(str);
			}
		}
		if ((currency > maxAmount)||(currency == 0)) {
			return false;
		} else {
			return true;
		}
	}function validateForm(form) {
  var formEltName = "";
  var formObj = "";
  var str = "";
  var realName = "";
  var alertText = "";
  var firstMissingElt = null;
  var hardReturn = "\r\n";
  var i = 0;

  if (elts.length == 0) {
	return true;
  } 
 
  for (i=0; i<elts.length; i++) {
    formEltName = elts[i].formEltName;
    formObj = eval("form." + formEltName);
    realName = elts[i].realName;

    if (elts[i].eltType == "text") {
      str = formObj.value;

      if (eval(elts[i].upToSnuff)) continue;

        if (str == "") {
          if (allAtOnce) {
            alertText += beginRequestAlertForText + realName + endRequestAlert + \
hardReturn;  if (firstMissingElt == null) {firstMissingElt = formObj};
          } else {
          	alertText = beginRequestAlertForText + realName + endRequestAlert + \
hardReturn;  alert(alertText);
          }
     	  } else {
          if (allAtOnce) {
            alertText += realName + endInvalidAlert + hardReturn;
          } else {
          	alertText = realName + endInvalidAlert + hardReturn;
          }
          if (elts[i].format != null) {
            alertText += beginFormatAlert + elts[i].format + hardReturn;
          }
          if (allAtOnce) {
            if (firstMissingElt == null) {firstMissingElt = formObj};
          } else {
            alert(alertText);
          }
        }
    	} else {
        if (eval(elts[i].upToSnuff)) continue;
        if (allAtOnce) {
          alertText += beginRequestAlertGeneric + realName + endRequestAlert + \
hardReturn;  if (firstMissingElt == null) {firstMissingElt = formObj};
        } else {
          alertText = beginRequestAlertGeneric + realName + endRequestAlert + \
hardReturn;  alert(alertText);
        }
    	}
    	if (!isIE3) {
        var goToObj = (allAtOnce) ? firstMissingElt : formObj;
        if (goToObj.select) goToObj.select();
        if (goToObj.focus) goToObj.focus();
    	}
    	if (!allAtOnce) {return false};
  	}
  	if (allAtOnce) {
    	  if (alertText != "") {
          alert(alertText);
          return false;
    	  }
  	} 
  // alert("I am valid!"); //remove this line when you use the code
  return true; //change this to return true
}//-->
</script>
<FONT face="Arial,Helvetica,Sans-Serif" SIZE="5" color=#FF0000><B>Transfer money - \
Steps 1 - 4</B></FONT> &nbsp;<BR>
<FORM NAME="dateForm" METHOD="GET" ACTION="/servlet/Banking?xtr=TransferFunds"  \
onSubmit="return validateForm(this)" AUTOCOMPLETE="OFF"> <INPUT TYPE="hidden" \
NAME="xtr" VALUE="TransferFunds"> <INPUT TYPE="hidden" NAME="state" VALUE="1">
<INPUT TYPE="hidden" NAME="transId" VALUE="421559">
<INPUT type="hidden" name="serverDay" value="31">
<INPUT type="hidden" name="serverMonth" value="02">
<INPUT type="hidden" name="serverYear" value="2002"><INPUT type="hidden" \
name="serverDayDefault" value="31"> <INPUT type="hidden" name="serverMonthDefault" \
value="02"> <INPUT type="hidden" name="serverYearDefault" value="2002">
<FONT face="Arial, Helvetica, sans-serif" size="2" color="#FF0000"><B></B></FONT><BR>
<TABLE width="550" border="0" cellspacing="0" cellpadding="0">
<TR>
<TD><IMG WIDTH="12" HEIGHT="1" SRC="/images/1pixel.gif"></TD>
<TD><IMG WIDTH="220" HEIGHT="1" SRC="/images/1pixel.gif"></TD>
<TD><IMG WIDTH="318" HEIGHT="1" SRC="/images/1pixel.gif"></TD>
</TR>
<TR>
<TD valign="baseline"><FONT face="Arial,Helvetica,Sans-Serif" SIZE="5" \
color=#FF0000><B>1</B></FONT>&nbsp;</TD> <TD colspan="2" valign="baseline"><FONT \
face="Arial, Helvetica, sans-serif" size="2" color="#000066"><B>Select an account to \
transfer from -</B></FONT></TD>  </TR>
<TR>
<TD>&nbsp;</TD>
<TD colspan="2">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD height="22" bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>&nbsp;&nbsp;Account</B></FONT></TD> <TD align="right" \
bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>Money available</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></TD> \
</TR> <TR>
<TD colspan="2" height="1"></TD>
</TR>

<TR>
<TD colspan="2"><FONT face="Courier, Sans-Serif" size="2"><SELECT name="accountId" \
style="WIDTH: 538px; font-family: Courier, Sans-serif">

<OPTION value="174656">Encore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 \
0000 0000000 000&nbsp;&nbsp;$0.00</OPTION>

<OPTION value="174657">Bonus \
Saver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 0000 \
0000000 000&nbsp;&nbsp;$0.00</OPTION>

<OPTION value="174658">MasterCard&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000 \
0000 0000 0000&nbsp;&nbsp;$0,000.00</OPTION>

<OPTION value="174659">Encore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 \
0000 0000000 000&nbsp;&nbsp;$0.00</OPTION>

<OPTION value="174660">Bonus \
Saver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 0000 \
0000000 000&nbsp;&nbsp;$0.00</OPTION>

</SELECT></FONT></TD>
</TR>

</TABLE>
</TD>
</TR>
<TR>
<TD height="50">&nbsp;</TD>
<TR>
<TR>
<TD valign="baseline"><FONT face="Arial,Helvetica,Sans-Serif" SIZE="5" \
color=#FF0000><B>2</B></FONT>&nbsp;</TD> <TD colspan="2" valign="baseline"><FONT \
face="Arial, Helvetica, sans-serif" size="2" color="#000066"><B>Enter date to \
transfer & amount -</B></FONT></TD> </TR>
<TR>
<TD>&nbsp;</TD>
<TD height="22" bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>&nbsp;&nbsp;Payment date</B></FONT></TD> <TD align="left" \
bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>&nbsp;Amount&nbsp;</B>( don't include commas )</FONT></TD> </TR>
<TR>
<TD colspan="3" height="5"><IMG src="/images/1pixel.gif"></TD>
</TR>
<TR>
<TD>&nbsp;</TD>
<TD>
<TABLE width="175" border="0" cellpadding="0" cellspacing="0">
<TR>
<TD><SELECT id=selectY name="startYear" size=1 style="WIDTH: 65px" \
onChange="repopulate(document.dateForm,this)"><OPTION>-------</OPTION><OPTION>&nbsp;</OPTION></SELECT></TD>
 <TD><SELECT id=selectM name="startMonth" size=1 style="WIDTH: 65px" \
onChange="repopulate(document.dateForm,this)"><OPTION>------</OPTION><OPTION>&nbsp;</O \
PTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION></SELECT></TD>
 <TD><SELECT id=selectD name="startDay" size=1 style="WIDTH: \
45px"><OPTION>---</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp; \
</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION><OPTION>&nbsp;</OPTION></SELECT></TD>
 </TR>
</TABLE>
</TD>
<TD align="left"><FONT face="MS Courier, Courier, Sans-Serif" \
size="2"><B>$&nbsp;</B><INPUT type="text" name="amount" value=""></FONT></TD> </TR>
<TR>
<TD>&nbsp;</TD>
<TD align="left" colspan="2"><IMG src="/images/1+pixel+line.gif" width="538" \
border="0" height="1"></TD> </TR>
<TR>
<TD height="50">&nbsp;</TD>
</TR>
<TR>
<TD valign="baseline"><FONT face="Arial,Helvetica,Sans-Serif" SIZE="5" \
color=#FF0000><B>3</B></FONT>&nbsp;</TD> <TD colspan="2" valign="baseline"><FONT \
face="Arial, Helvetica, sans-serif" size="2" color="#000066"><B>Select an account to \
transfer to -</B></FONT></TD>  </TR>
<TR>
<TD>&nbsp;</TD>
<TD colspan="2">
<TABLE border="0" cellpadding="0" cellspacing="0">
<TR>
<TD height="22" bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>&nbsp;&nbsp;Account</B></FONT></TD> <TD align="right" \
bgcolor="000066"><FONT face="Arial, Helvetica, sans-serif" size="2" \
color="#FFFFFF"><B>Current balance</B>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT></TD> \
</TR> <TR>
<TD colspan="2" height="1"></TD>
</TR>

<TR>
<TD colspan="2"><FONT face="Courier, Sans-Serif" size="2"><SELECT name="accountToId" \
style="WIDTH: 538px; font-family: Courier, Sans-serif">

<OPTION value="174656">Encore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 \
0000 0000000 000&nbsp;&nbsp;$0.00CR</OPTION>

<OPTION value="174657">Bonus \
Saver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 0000 \
0000000 000&nbsp;&nbsp;$0.00CR</OPTION>

<OPTION value="174658">MasterCard&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0000 \
0000 0000 0000&nbsp;&nbsp;$0,000.00</OPTION>

<OPTION value="174659">Encore&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 \
0000 0000000 000&nbsp;&nbsp;$0.00CR</OPTION>

<OPTION value="174660">Bonus \
Saver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;00 0000 000000 \
000&nbsp;&nbsp;$0.00CR</OPTION>

</SELECT></FONT></TD>
</TR>

</TABLE>
</TD>
</TR>
<TR>
<TD height="50"></td>
</TR>
<TR>
<TD width="12" valign="baseline"><FONT face="Arial,Helvetica,Sans-Serif" SIZE="5" \
color=#FF0000><B>4</B></FONT></TD> <TD>
<A HREF="/servlet/Banking?xtr=AccountList"><IMG \
VALIGN="baseline"src="/images/cb_cancel.gif" border="0"></A>&nbsp; <INPUT \
type="image" border="0" valign="baseline" name="yes" src="/images/cb_nextstep.gif"> \
</TD> </TR>
</TABLE>
</FORM></td></tr></table>
</BODY>
</HTML>


>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic