Need help.. can someone look at code..

and tell me what is happening, or rather not happening and
why....
This is a neat clock that shows current time and zulu time
with a disclaimer popup..... Would like to get it working to put on
my site but can not figure it out.
It is made up of two files.... first is the html file:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
<script language-"javascript"
src="clock.js"></script>
<!-- InstanceParam name="onloadVal" type="text"
value="doTime()" -->
<title>Clock</title>
</head>
<body>
<FORM name=Horloge>
<TABLE cellSpacing=0 cellPadding=0 width=756
bgColor=#205670>
<TBODY>
<TR>
<TD height=34><FONT face="Arial, Helvetica,
sans-serif" color=#ffffcc
size=-2>Your time </FONT><font face="Arial,
Helvetica, sans-serif"
color=#ffffcc size=-1>
<input value="Not available" name=HreLocale />
</font></TD>
<TD height=34><FONT face="Arial, Helvetica,
sans-serif" color=#ffffcc
size=-2>UTC time</FONT><font face="Arial,
Helvetica, sans-serif"
color=#ffffcc size=-1>
<input value="Not available" name=HreUTC />
</font></TD>
<TD noWrap width=100 height=34>
<DIV align=center><font color=#ffffcc size=-2>
<input onclick="MM_popupMsg('Reliable clock times are
dependant on two sources:\r1. Your computer`s time\r2. Your
computer`s time zone settings\rPlease verify that both these
settings are correct before relying on the clock.')" type=button
value="Clock Disclaimer" name="Clock Disclaimer" />
</font></DIV></TD>
<TD noWrap width=67 colSpan=4 height=34>
<DIV align=center><FONT face="Arial, Helvetica,
sans-serif" color=#ffffcc
size=-2></FONT></DIV>
<DIV align=center><FONT size=+1><A
href="javascript:seLogger()"><FONT
face="Arial, Helvetica, sans-serif" color=#ffffcc
size=-1>Log
out</FONT></A></FONT></DIV></TD></TR></TBODY></TABLE>
</form>
</body>
</html>
Then there is a seperate .js file:
function format(value) {
if (value < 10) {
return "0" + value;
} else {
return value;
function putFocus() {
// Put the cursor in the first text box available
// or in the specified field with id="init"
// Params: none
var f = 0;
var e = 0;
var fName;
if (document.getElementById &&
document.getElementById('init')) {
if (document.getElementById('init').type != "hidden") {
document.getElementById('init').focus();
} else while (f < document.forms.length &&
document.forms[f].name != "Horloge") {
e = 0;
while (document.forms[f] && e <
document.forms[f].elements.length) {
if (document.forms[f].elements[e].type == "text"
|| document.forms[f].elements[e].type == "password") {
document.forms[f].elements[e].focus();
fName = document.forms[f].name;
e=9999;f=9999;
e++;
f++;
function enterAction(obj) {
// Capture key events at the document level and submit the
form when the enter key is pressed
// by a simulated click on the submit button given as
parameter.
// Function added by Thierry Husson 2006-05
// Sample call: <body
onLoad="enterAction(document.Registered.elements['R-Submit']);">
if (obj && obj.click) {
if (document.layers) document.captureEvents(Event.KEYPRESS);
document.onkeypress = function (evt) {
var key = document.all ? event.keyCode : evt.which ?
evt.which : evt.keyCode;
if (key == 13) {
obj.click();
function doTime() {
months = new Array(12);
months[0] = "Jan";
months[1] = "Feb";
months[2] = "Mar";
months[3] = "Apr";
months[4] = "May";
months[5] = "Jun";
months[6] = "Jul";
months[7] = "Aug";
months[8] = "Sep";
months[9] = "Oct";
months[10] = "Nov";
months[11] = "Dec";
days = new Array(7);
days[0] = "Sun";
days[1] = "Mon";
days[2] = "Tue";
days[3] = "Wed";
days[4] = "Thu";
days[5] = "Fri";
days[6] = "Sat";
strLocalTime = "Your Time: ";
strUTCTime = "UTC Time: ";
local = new Date();
tzOffset = local.getTimezoneOffset()/60;
localMonth = local.getMonth();
localDay = local.getDay();
localDate = local.getDate();
localYear = local.getYear();
localHour = local.getHours();
localMin = local.getMinutes();
localSec = local.getSeconds();
UTCDate = new Date(localYear, localMonth, localDate,
localHour + (tzOffset/1), localMin + ((tzOffset%1)*60), localSec);
if (localYear < 1900) {
localYear = 1900 + localYear;
UTCYear = localYear;
strLocalTime = format(localDate) + " " + months[localMonth]
+ " " + format(localYear) + " " + localHour + ":" +
format(localMin) + ":" + format(localSec);
strUTCTime = format(UTCDate.getDate()) + " " +
months[UTCDate.getMonth()] + " " + format(UTCYear) + " " +
UTCDate.getHours() + ":" + format(UTCDate.getMinutes()) + ":" +
format(UTCDate.getSeconds());
document.Horloge.HreLocale.value = strLocalTime;
document.Horloge.HreUTC.value = strUTCTime;
setTimeout("doTime()", 1000);
//==============================================================
// Fonction doAsepTime est basee sur doTime mais modifiee
pour ne recuperer
// que les champs utiles soit : AAAA MM JJ HH UTC.
// Fonction doAsepTime retourne dans :
// input name="HreAsep value="YYYY MM DD HH" lorsque vide
(anglais)
// input name="HreAsep value="AAAA MM JJ HH" lorsque vide
(francais)
//==============================================================
function doAsepTime() {
// strUTCTime sera retourne a l 'interface (html)
strUTCTime = "UTC Time: ";
local = new Date();
tzOffset = local.getTimezoneOffset()/60;
AsepLocalMonth = local.getMonth();
AsepLocalDate = local.getDate();
AsepLocalYear = local.getYear();
AsepLocalHour = local.getHours();
UTCDate = new Date(AsepLocalYear, AsepLocalMonth,
AsepLocalDate, AsepLocalHour + (tzOffset/1));
if (AsepLocalYear < 1900) {
AsepLocalYear = 1900 + AsepLocalYear;
UTCYear = AsepLocalYear;
strUTCTime = format(UTCYear) + " " +
format(UTCDate.getMonth() + 1) + " " + format(UTCDate.getDate()) +
" " + format(UTCDate.getHours());
document.Produit.HreAsep.value = strUTCTime;
// setTimeout("doAsepTime()", 1000);

Hi. I'm new to Java myself, but I've noticed a few things in your code..you have a bunch of methods inside the braces of your main method, which cannot work. Additional methods must be placed outside the main method, after the ending brace. But actually, if this is a secondary class and these methods will be called from a different class, which it looks to me to be, then you wouldn't need a main method at all. The class variables should go right after the opening brace of the class declaration and then the rest of the methods can be placed after those variables. Try this..
public class Date
     int day;
     int month;
     int year;
     public Date(int day, int month, int year)
          setDay(day);
          setMonth(month);
          setYear(year);
     public void setDay(int myDay)
          day =myDay;
     public void setMonth(int myMonth)
          month =myMonth;
     public void setYear(int myYear)
          year =myYear;
     public int getDay()
          return day;
     public int getMonth()
          return month;
     public int getYear()
          return year;
     public String displayDate()
          return getMonth() + "/" + getDay() + "/" + getYear();
Sorry it that's hard to read, I just copied and pasted it, but all I did was eliminate the declaration of the main method, the opening brace, and the closing brace (second to last one at the bottom).
Hope this helps..Take care.

Similar Messages

  • I'm Still having problems with my contact form, can someone look at it and help me?

    http://www.alpenawebdesigns.com
    when I try and submit my contact form I get a 404 error something about a port 80 (I'm using port 21) I use Godaddy as a host and this contact form works in another program
    http://www.bayviewdropincenter.org
    can someone look at these and tell me what is the problem?
    Also is there a user group in the Alpena Mi area?

    The requested URL /form-to-email.php was not found on this server.  Did you upload the script?
    Also, please take my URL out of your footer code.   Thanks. 
    <div id="footer">
    <p>&copy; 2012 <a href="http://alt-web.com/">Alpena Web Designs</a> all rights reserved.</p>
    </div>
    Finally, validate your code.  You're missing a closing </div> tag for your header.
    http://validator.w3.org/check?verbose=1&uri=http%3A%2F%2Fwww.alpenawebdesigns.com%2Fcontac tus.html
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • Macbook Pro 2009 runs slowly and freezes. Can someone look at this Etrecheck report and tell me what's wrong?

    Macbook Pro 2009 runs slowly and freezes. Can someone look at this Etrecheck report and tell me what's wrong?
    Hardware Information:
              MacBook Pro (13-inch, Mid 2009)
              MacBook Pro - model: MacBookPro5,5
              1 2.26 GHz Intel Core 2 Duo CPU: 2 cores
              4 GB RAM
    Video Information:
              NVIDIA GeForce 9400M - VRAM: 256 MB
    System Software:
              OS X 10.9.1 (13B42) - Uptime: 6 days 16:17:8
    Disk Information:
              FUJITSU MJA2160BH FFS G1 disk0 : (160.04 GB)
                        EFI (disk0s1) <not mounted>: 209.7 MB
                        MacBook HD (disk0s2) /: 159.18 GB (29.38 GB free)
                        Recovery HD (disk0s3) <not mounted>: 650 MB
              HL-DT-ST DVDRW  GS23N 
    USB Information:
              Apple Inc. Built-in iSight
              Apple Internal Memory Card Reader
              Apple Inc. Apple Internal Keyboard / Trackpad
              Apple Computer, Inc. IR Receiver
              Apple Inc. BRCM2046 Hub
                        Apple Inc. Bluetooth USB Host Controller
    FireWire Information:
    Thunderbolt Information:
    Kernel Extensions:
              com.spsys.driver.IOKitDriver          (1.0.0d1)
              com.parallels.kext.usbconnect          (8.0 18615.948847)
              com.parallels.kext.hypervisor          (8.0 18615.948847)
              com.parallels.kext.hidhook          (8.0 18615.948847)
              com.parallels.kext.netbridge          (8.0 18615.948847)
              com.parallels.kext.vnic          (8.0 18615.948847)
              com.parallels.filesystems.prlufs          (2010.12.28)
    Startup Items:
              StartupComponent: Path: /Library/StartupItems/StartupComponent
    Problem System Launch Daemons:
    Problem System Launch Agents:
    Launch Daemons:
              [System] com.adobe.fpsaud.plist 3rd-Party support link
              [System] com.fitbit.galileod.plist 3rd-Party support link
              [System] com.spsecure.daemon.plist 3rd-Party support link
    Launch Agents:
              [System] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [System] com.spsecure.useragent.plist 3rd-Party support link
    User Launch Agents:
              [not loaded] com.adobe.AAM.Updater-1.0.plist 3rd-Party support link
              [not loaded] com.adobe.ARM.[...].plist 3rd-Party support link
              [not loaded] [email protected]
              [not loaded] com.google.keystone.agent.plist 3rd-Party support link
    User Login Items:
              iTunesHelper
              AdobeResourceSynchronizer
              Dropbox
              EvernoteHelper
              Fitbit Connect Menubar Helper
              Google Chrome
    Internet Plug-ins:
              Flip4Mac WMV Plugin: Version: 2.4.4.2 3rd-Party support link
              FlashPlayer-10.6: Version: 11.9.900.170 - SDK 10.6 3rd-Party support link
              Default Browser: Version: 537 - SDK 10.9
              AdobePDFViewerNPAPI: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              AdobePDFViewer: Version: 11.0.06 - SDK 10.6 3rd-Party support link
              Flash Player: Version: 11.9.900.170 - SDK 10.6 Outdated! Update
              QuickTime Plugin: Version: 7.7.3
              OfficeLiveBrowserPlugin: Version: 12.3.6 3rd-Party support link
              AmazonMP3DownloaderPlugin101750: Version: AmazonMP3DownloaderPlugin 1.0.17 - SDK 10.4 3rd-Party support link
              Silverlight: Version: 5.1.20913.0 - SDK 10.6 3rd-Party support link
              iPhotoPhotocast: Version: 7.0
    Audio Plug-ins:
              BluetoothAudioPlugIn: Version: 1.0 - SDK 10.9
              AirPlay: Version: 1.9 - SDK 10.9
              AppleAVBAudio: Version: 2.0.0 - SDK 10.9
              iSightAudio: Version: 7.7.3 - SDK 10.9
    User Internet Plug-ins:
              Move-Media-Player: Version: npmnqmp 071503000004 3rd-Party support link
              fbplugin_1_0_3: Version: (null) 3rd-Party support link
    3rd Party Preference Panes:
              Flash Player  3rd-Party support link
              MacFUSE  3rd-Party support link
    Bad Fonts:
              None
    Old Applications:
              Microsoft AutoUpdate:          Version: 2.3.6 - SDK 10.4 3rd-Party support link
                        /Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app
              /Library/Application Support/Microsoft/MERP2.0
                        Microsoft Error Reporting:          Version: 2.2.9 - SDK 10.4 3rd-Party support link
                        Microsoft Ship Asserts:          Version: 1.1.4 - SDK 10.4 3rd-Party support link
              SLLauncher:          Version: 1.0 - SDK 10.5 3rd-Party support link
                        /Library/Application Support/Microsoft/Silverlight/OutOfBrowser/SLLauncher.app
              Amazon MP3 Downloader:          Version: INFO_PLIST_VERSION - SDK 10.4 3rd-Party support link
    Time Machine:
              Skip System Files: NO
              Auto backup: YES
              Time Machine not configured!
    Top Processes by CPU:
                  37%          prl_vm_app
                  10%          WindowServer
                   9%          Google Chrome
                   1%          hidd
                   1%          Agent
    Top Processes by Memory:
              602 MB          prl_vm_app
              115 MB          Google Chrome
              82 MB          Google Chrome Helper
              82 MB          Mail
              70 MB          Microsoft Word
    Virtual Memory Information:
              137 MB          Free RAM
              782 MB          Active RAM
              718 MB          Inactive RAM
              1.50 GB          Wired RAM
              23.02 GB          Page-ins
              1.21 GB          Page-outs

    Hey greytdogs,
    I would give some of the suggestions in this link a shot:
    OS X Mavericks: If your Mac runs slowly
    http://support.apple.com/kb/PH13895
    Welcome to Apple Support Communities!
    Sincerely,
    Delgadoh

  • Need help or someone to edit .fla file

    Need help or someone to edit .fla file

    The .fla file I want to edit is the flash in header at www.ridinggigistyle.com I want to remove the event button titled Boot Camp. I can send .fla file and request that edited changes be sent back to me. Direct email [email protected]

  • I Need Help to Access The Source Code From A Form to Know the Calculation Formula

    Hi,
    I Need Help to Access The Source Code From A Form to Know the Calculation Formula. The application is a windows form application that is linked to SQL Server 2008. In one of the application forms it generates an invoice and does some calculations. I just
    need to know where behind that form is the code that's doing the calculations to generate the invoice, I just need to get into the formula that's doing these calculations.
    Thank you so much.

    Hi, 
    Thanks for the reply. This is a view and [AmountDue] is supposed to be [CurrentDueAmount] + [PastDueAmount] - [PaidAmount]. The view is not calculating [PaidAmount] right . Below is the complete code of the view. Do you see anything wrong in the code ?
    Thanks. 
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [iff].[FacilityFeeID], [LoanID] = NULL, [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_fee].[SectionType], [Name]
    = [iff].[Name], [ReceivedAmount], [dates].[CurrentDueAmount], 
                          [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply reset to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN 0 ELSE
    [pastdue].[PastDueFeeAmount] END, [PaidAmount] = CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [pastdue].[PastDueFeeAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([pastdue].[PastDueFeeAmount]
    + ISNULL([ReceivedAmount], 0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [pastdue].[PastDueFeeAmount] < 0 THEN - [pastdue].[PastDueFeeAmount]
    ELSE 0 END, [AmountDue] = [unpaid].[UnpaidFeeAmount], [ID] = [iff].[FacilityFeeID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_FacilityFee] iff ON [if].[ID] = [iff].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_fee].[ID],
    [sis_fee].[SectionTypeCode], [SectionType] = [st_fee].[Name], [sis_fee].[INV_FacilityFeeID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_fee JOIN
                   [dbo].[INV_SectionType] st_fee ON [sis_fee].[SectionTypeCode] = [st_fee].[Code]
                                WHERE      [INV_FacilityFeeID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_fee ON [iff].[ID] = [isis_fee].[INV_FacilityFeeID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedFeeAmount]), 
                   [ReceivedAmount] = SUM([iffa].[ReceivedFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_fee].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     *
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [SectionID],
    [PastDueFeeAmount] = SUM([PastDueFeeAmount])
                                FROM      
       [dbo].[INV_FacilityFeeAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = [isis_loan].[SectionType], [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount], [PastDueAmount] = CASE WHEN ISNULL([ReceivedAmount], 
                          0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount],
    0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, 
                          [PaidAmount] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN 0 ELSE CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END END, 
                          [AmountDue] = CASE WHEN [isis_loan].[SectionTypeCode]
    = 'LOAN_PRIN' THEN [CurrentDueAmount] ELSE [unpaid].[AmountDue] END, [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL') isis_loan ON [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[ExpectedPrincipalAmount]), 
                   [ReceivedAmount] = SUM([ReceivedPrincipalAmount])
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID]
                                UNION
                                SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                  [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                  [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidPrincipalAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                UNION
                                SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDuePrincipalAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPrincipalAmortization]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanCashInterestAccrual]
                                GROUP BY [SectionID]
                                UNION
                                SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
      [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]
    UNION
    SELECT     [isi].[InvoiceID], [ii].[DueDate], [SubInvoiceID] = [isi].[ID], [INV_FacilityID] = [if].[ID], [if].[FacilityID],
    [FacilityFeeID] = NULL, [il].[LoanID], [isi].[PortfolioID], [isi].[Portfolio], 
                          [PaymentType] = 'PIK Interest Applied', [Name]
    = [il].[Name], [ReceivedAmount], [CurrentDueAmount] = - [dates].[CurrentDueAmount], 
                          [PastDueAmount] = - CASE WHEN ISNULL([ReceivedAmount],
    0) > 0 THEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN 0 ELSE [PastDueAmount] + ISNULL([ReceivedAmount],
    0) END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN 0 ELSE [PastDueAmount]
    END, [PaidAmount] = - CASE WHEN ISNULL([ReceivedAmount], 0) 
                          < 0 THEN /* We bring past due to zero and
    apply rest to current. */ CASE WHEN [PastDueAmount] + ISNULL([ReceivedAmount], 0) 
                          < 0 THEN - ([PastDueAmount] + ISNULL([ReceivedAmount],
    0)) ELSE 0 END WHEN ISNULL([ReceivedAmount], 0) = 0 AND 
                          [PastDueAmount] < 0 THEN - [PastDueAmount]
    ELSE 0 END, [AmountDue] = - [AmountDue], [ID] = [il].[LoanID]
    FROM         [dbo].[INV_SubInvoice] isi JOIN
                          [dbo].[INV_Invoice] ii ON [isi].[InvoiceID]
    = [ii].[ID] JOIN
                          [dbo].[INV_Facility] [if] ON [isi].[ID] = [if].[SubInvoiceID]
    JOIN
                          [dbo].[INV_Loan] il ON [if].[ID] = [il].[INV_FacilityID]
    JOIN
                              (SELECT     [sis_loan].[ID],
    [sis_loan].[SectionTypeCode], [SectionType] = [st_loan].[Name], [sis_loan].[INV_LoanID]
                                FROM      
       [dbo].[INV_SubInvoiceSection] sis_loan JOIN
                   [dbo].[INV_SectionType] st_loan ON [sis_loan].[SectionTypeCode] = [st_loan].[Code]
                                WHERE      [INV_LoanID]
    IS NOT NULL AND [StatusCode] = 'BILL' AND [sis_loan].[SectionTypeCode] = 'LOAN_INT_PIK') isis_loan ON 
                          [il].[ID] = [isis_loan].[INV_LoanID] JOIN
                              (SELECT     [iffa].[SectionID],
    [AccrualDeterminationDateMax] = MAX([iffa].[AccrualDeterminationDate]), 
                   [AccrualDeterminationDateMin] = MIN([iffa].[AccrualDeterminationDate]), [CurrentDueAmount] = SUM([iffa].[AccruedInterestAmount]), 
                   [ReceivedAmount] = SUM([ReceivedInterestAmount])
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual] iffa
                                GROUP BY [iffa].[SectionID])
    dates ON [isis_loan].[ID] = [dates].[SectionID] LEFT JOIN
                              (SELECT     [AmountDue]
    = [UnpaidInterestAmount], [SectionID], [AccrualDeterminationDate]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]) unpaid ON [dates].[SectionID] = [unpaid].[SectionID] AND 
                          [dates].[AccrualDeterminationDateMax] = [unpaid].[AccrualDeterminationDate]
    LEFT JOIN
                              (SELECT     [PastDueAmount]
    = SUM([PastDueInterestAmount]), [SectionID]
                                FROM      
       [dbo].[INV_LoanPIKInterestAccrual]
                                GROUP BY [SectionID]) pastdue
    ON [dates].[SectionID] = [pastdue].[SectionID]

  • Hello I Download Adobe Photoshop CC 2014 Last Night i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message I Need Help Can You Resolve This Problem i Tried Creative Cloud Sign Out Nd Sign iN But iT DidnT ReSolve My

    Hello I Download Adobe Photoshop CC 2014 Last Night
     i INSTALLED it But it Crashes in 30-40 Sec After i Launch the Product Without Any Error Message
    I Need Help Can You Resolve This Problem

    Lotfi are you receiving any error messages during the installation?  I would recommend reviewing your installation logs for errors.  Please see Troubleshoot install issues with log files | CC - http://helpx.adobe.com/creative-cloud/kb/troubleshoot-install-logs-cc.html for information on how to locate and interpret your installation log files.  You are welcome to post any specific errors you discover to this discussion.

  • HT3775 I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you.The document "IMAG0026.AVI" could not be opened. A required codec isn't available.

    I get the following message when trying to open an .avi downloaded from my video cam, need help, can not find the codec, thank you. This is for Quicktime Player.
    "The document “IMAG0026.AVI” could not be opened. A required codec isn't available."

    Try Perian.
    http://perian.org/

  • Cffunction and how to ? can someone explain the code to me line by line

    Hello i went to get this online and i want to test it.
    the udf is supposed to
    * CSVFormat accepts the name of an existing query and
    converts it to csv format.
    * Updated version of UDF orig. written by Simon Horwith
    my question how to break it down.
    can someone explain the code to me line by line
    thanks

    silviasalsa wrote:
    > thanks
    >
    > but line by line
    >
    > what is
    > if(ArrayLen(Arguments) GTE 2) qualifier = Arguments[2];
    > if(ArrayLen(Arguments) GTE 3 AND Len(Arguments[3]))
    columns = Arguments[3];
    > returnValue[1] = ListQualify(columns, qualifier);
    > ArrayResize(returnValue, query.recordcount + 1);
    > columns = ListToArray(columns);
    > for(i = 1; i LTE query.recordcount; i = i + 1)
    > {
    > rowValue = ArrayNew(1);
    > ArrayResize(rowValue, ArrayLen(columns));
    > for(j = 1; j LTE ArrayLen(columns); j = j + 1)
    > rowValue[j] = qualifier & query[columns[j]]
    & qualifier;
    > returnValue[i + 1] = ArrayToList(rowValue);
    > }
    > returnValue = ArrayToList(returnValue, Chr(13));
    > return returnValue;
    > }
    >
    > thanks
    Apparently this UDF takes two optional parameters so that one
    can define
    (A) a text "qualifier" to use in the CSV file, this is
    usually the
    single quote|tick ['] mark - but sometimes one wants this to
    be a
    different character and (B) what columns to use in the
    output in case
    one does not want to use all the columns in the record set
    in the
    outputted CSV file.
    The if statements are checking for these optional parameters
    and if
    found setting the values in them to internal variables.
    These
    variables are then used in the rest of the logic to create
    the CSV output.
    HTH
    Ian

  • Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.

    also say explorer not reading SWF files and I have to reload them? Not sure what that is either,
    Thanks
    Jim

    Hi Nancy
    Trying to update my site got to make some changes.  Do you work on sites via remote? I am on Cloud.
    : Nancy O. 
    Sent: Monday, September 01, 2014 3:47 PM
    To: James Neidner
    Subject:  Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    Need help " Can't find a valid editor for this file extension" not sure why I am getting and this or what to do.
    created by Nancy O. <https://forums.adobe.com/people/Nancy+O.>  in Dreamweaver support forum - View the full discussion <https://forums.adobe.com/message/6692200#6692200>

  • I jailbroke my ipod and its in recovery mode i cant take it out of it and i cant restore becasue i changes host to sariks sever i need help can any one help me

    i cant take it out of it and i cant restore becasue i changes host to sariks sever i need help can any one help me please please i just got my ipod i realy need help

    Sorry, due to the Terms of Use, problems with jailbroken devices can't be discussed here.

  • NEED HELP: Can't Reset Ipad - Forgot restiction code

    i need help. i want to sell my old ipad 2. i cant do the resetting and deleting of information because i forgot the restriction code.
    is there any way that i have this ipad clear of all data so i can sell it?
    please help me!!!!! thank you

    MsRainQ wrote:
    ... i forgot the restriction code.
    To remove the Restrictions passcode you will need to either...
    Restore the Device as New...
    http://support.apple.com/kb/HT4137
    OR...
    from a Backup created Before the Restrictions Code was set....
    Restore from Backup
    http://support.apple.com/kb/ht1766
    MsRainQ wrote:
    i need help. i want to sell my old ipad 2. ...
    See  Erase your device  Here  >  http://support.apple.com/kb/HT4137
    Go to Settings > General > Reset > Erase all content and settings
    Also... See the wjosten post here...
    https://discussions.apple.com/message/20294697

  • I can access my employers web site, but when i try to access the employees section of the web site it says that i need netscape, can someone help

    Hi, My employer has a web site & as a part of the service to the employees, the employees can access personal details through the web site. I can access my employers web site not a problem, BUT - when i try to access the employees part of the web site it tells me "This browser is not supported.
    You must be running Netscape 7.1 or greater."
    Can someone please help?

    It is possible that the server gets confused by the user agent that is modified by your Ubuntu distribution and adds Ubuntu/10.10 (maverick)
    Mozilla/5.0 (X11; U; Linux i686; en-AU; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13
    You can try to reset the pref general.useragent.extra.* that add that part.<br />
    See [[Web sites or add-ons incorrectly report incompatible browser]]

  • I need help contacting someone that can help me find who the previous owner was who set up my iphone 5s, there is an activation lock and i need to contact the owners. help??? i think the iphone was stolen and then sold to me

    i think my iphone was stolen before being sold to me, i need help finding out who the original owner was to unlock the phone. any ideas on numbers i could ring? im super gutted

    If you are trying to activate an iPad or iPhone and it is asking for a previous owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. You must contact the previous owner to get permission to use the device. If you cannot contact the previous owner return the device to where you bought it and get a refund. You will never be able to activate the device and no one can help you do it.

  • Need help with this Pascal Triangle code....

    Hey everyonr i am totally new to Java... so need your help with this code...
    the function makeRows gives me problems... main is correct ... can someone fix my makeRows... i don't see what's wrong
    public class Pascal {
      /** Return ragged array containing the first nRows rows of Pascal's
       *  triangle.
      public static int[][] makeRows(int nRows) {
            int[][] mpr  = new int[nRows+1][];
            int l=0; int r=0;
            for (int row = 0; row < nRows; row++) {
              mpr[row] = new int[row+1];  //index starts at 0
              if (row==0) {
                mpr[0][0]= 1;
                    if (row==1) {
                mpr[1][0]= 1;
                mpr[1][1]= 1;
              if (row>=2) {
                 for (int j = 0; j <= row; j++) {
                    if (j==0)               {l=0;} else {l=mpr[row-1][j-1];}
                    if (j==mpr[row].length-1) {r=0;} else{r=mpr[row-1][j];}
                    mpr[row][j] = l + r;
            return mpr;
      public static void main(String[] args) {
             if (args.length != 1) {
               System.out.println("usage: java " + Pascal.class.getName() + " N_ROWS");
               System.exit(1);
             int nRows = Integer.parseInt(args[0]);
             if (nRows > 0) {
               int[][] pascal = makeRows(nRows);
               for (int[] row : pascal) {
              for (int v : row) System.out.print(v + " ");
              System.out.println("");
         }this makeRows function should return ragged array containing the first nRows rows of Pascal's triangle
    thanks
    Edited by: magic101 on May 9, 2008 4:03 PM

    magic,
    i think corlettk meant that some people might not know what pascal's triangle is.
    also, you didnt say what was wrong with your code, just that it was wrong.
    asking smart questions is about giving as much information you can to get the
    best answer. i would throw a System.out.print between every line of your
    algorithm. i would also supply us with the values you are getting for each row.
    also, this question is asked all the time here. do a forum search.
    1
    11
    121
    1331
    14641

  • Need help in Understanding synchronization through code

    I read someone that synchronization is suppose to allow only one thread to access a synchronized method or block of code. But then I wrote some code just to test it out.
    import java.util.ArrayList;
    import java.util.Vector;
    public class Testing extends Thread {
         private String someString;
         static Vector<Integer> someVec;
         static ArrayList<Integer> someArrayList;
         public Testing(String value) {
              someString = value;
              someVec = new Vector<Integer>();
              someArrayList = new ArrayList<Integer>();
         public static void main(String args[]) {
              Testing one = new Testing("one");
              Testing two = new Testing("two");
              one.start();
              two.start();
         public void run() {
              if (someString.equals("one")) {
                   for (int i = 0; i < 1000; i++) {
                        try {
                             someVec.add(i);
                        } catch (RuntimeException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
                        System.out.println("adding with " + i);
              } else
                   for (int i = 0; i < someVec.size(); i++)
                        try {
                             System.out.println("getting .. " + someVec.get(i)+ " from "+someVec.size());
                        } catch (RuntimeException e) {
                             // TODO Auto-generated catch block
                             e.printStackTrace();
    }Now my questions
    1. Why the 2nd thread is able to access the someVec ( Vector) when the 1st thread is still adding some values?
    2. When I changed someVec to someArrayList the result is still the same. I wonder why ?
    3. Lastly, Can anyone modify my code so only either a Vector or a Arraylist will make the program run without error ? Because right now I can run them both fine, so I don't see the difference.
    Thank you.
    Regards,
    Mustafa

    Vrijmetse wrote:
    1. Why the 2nd thread is able to access the someVec ( Vector) when the 1st thread is still adding some values?You have not added any synchronization around your Vector operations. Vector's individual methods are synchronized, but that only extends to the execution of those methods. There's no way for that syncing to know that you're doing stuff in a for loop. If you want to complete the for loop without anything else affecting that Vector, then you need a sync block around the body of the loop, and anything else that acceses the Vector must also sync on the same object. The Vector itself is a good candidate for the lock here.
    (There may be other problems as well. I haven't read your code closely. Just noticed the for loop and lack of syncing.)
    2. When I changed someVec to someArrayList the result is still the same. I wonder why ?Same reason.
    3. Lastly, Can anyone modify my code so only either a Vector or a Arraylist will make the program run without error ?No.

Maybe you are looking for

  • I deleted my old work address but it keeps coming up in icloud how can i make sure its deleted for good?

    I have a macbook pro, ipad 2, iphone 4, 4s and desktop that I always try and sync together. I'm afraid they have put some kind of spy ware on it or remote login so they can see everything. How do I disable therse things so its like Im starting from a

  • Ipod problem (turning on/restrore)

    well i been having a problem with my ipod video its barely 3 months old and im having a problem that everytime i turn it off by holding the play key and after turning it on a message asking me to restore my ipod comes on so i usually have to reset th

  • Selection TAB in ODS and Cube

    Hi Friends,                    I see Selection TAB in the manage TAB of ODS and Cube, what is the difference of this TAB in cube and ODS?? Is this selection criteria we give in the Data Selection TAB of Infopackage for that particular data target?? T

  • Sorting Shenanigans

    I'm trying to sort my albums by year. So I make sure that the Albums col is Albums by Year, and then I click the Year col to sort by year. All my albums are in Year order, yet my tracks are the wrong way around. So track 10 of the latest album comes

  • Adobe Premiere Elements failed to return a video frame. Cancelling the operation. (For 3.0)

    This is the message that comes up everytime I try to export my 6 minute 10 seconds film. I have used 2 of the 'Video Effects' and the film is mainly made up of AVI files.Will someone please tell me why this is happening and how I can fix it. Thank yo