Ordering cells, when the empty subsequent cell has to follow...

First off I would like to apologize, as my english might not be very good.
What I am trying to do in Numbers is to organize the first coloumn of cells but keep the following "attached". The problem is that, below the first argument there is an empty cell with other cells on the same line that I would like to keep attached.
A graphical example might be the following:
--------(separation line) black bottom border-----------------
243 description company name date date
german descr. insurance
---------separation line (black bottom border)------------------
21 description company name date date
german description insurance
--------------separation line --------------------------------
I want to sort them by number. Every word I wrote is in a different cell. I cannot merge all cells because some are formatted as text, other as numbers and others as dates.
How is the best way to proceed?
I hope I was able to explain what I mean.
Message was edited by: iMat77

Thank you very much for the input and the explanation. (and, of course, also a much better picture than what I was able to write in my post).
What I wanted to do is actually, in your scheme, to order items by color (assuming color is a number, so it needs to be ascending or descending) but keeping the "definition" (fruit or vegetable) underneath the name of the item.
To solve this, since I handle with numbers, I decided to "copy" the number (color in your diagram) also in the cell below. This allowed me to order ALL cells in ascending or descending order, without having empty cells that would then be put at the very bottom of the document.
I know it is not an elegant solution, but it nevertheless solved my problem.
I suggest Apple takes into consideration an idea that is currently applied to images: the "group" feature. Being able to "group" cells without merging them would solve these and many other sorting problems, creating groups of cells that, when sorted, "stay together".
Anyways, I would like to thank you a lot for the time, patience and detailed explanation.
Take care

Similar Messages

  • Recently I downloaded photos from an sd card. When the download was complete all photos were loaded in a random fashion completely out of order.This is the first time it has ever happened this way. downloaded same card to iPhoto and all photos were in ord

    Recently I downloaded photos from an sd card. When the download was complete all photos were loaded in a random fashion completely out of order.This is the first time it has ever happened this way. downloaded same card to iPhoto and all photos were in order. Help needed. Am working on a job that needs immediate attention and HDR images out of order are impossible to deal with.

    Thanks for your help. The out of numerical order comes before the actual import begins. It happens when first uploaded to Lightroom and prior selection of of photos to imported to the catalog.

  • When i run Time Machine to back up my computer onto an external hard drive, i have no way of knowing when the back up process has been completed. I don't know when it is safe to disconnect the external hard drive - which is store in a separate location.

    When i run Time Machine to back up my computer on to an external hard drive, i have no way of knowing when the back up process has been completed.  This is necessary to know because i don't leave my external hard drive connected to the computer.  I routinely disconnect it after backing up the hard drive, and then i store the external hard drive in a different location from the computer.  So, knowing when the back up process has been completed would be a very helpful thing to have the computer specify. 

    Just enable Time Machine's menu extra (System Preferences -> Time Machine -> Show Time Machine in menu bar.
    This will add a little Time Machine icon to your menubar. When Time Machine is actively backing up your data, the icon will spin as a visual indicator. You can also click the menu icon to see the backup status, including how much data is left to back up.

  • How to stop the prodution order creating when the product is not valued?

    Hi guyes:
    How to stop the prodution order creating when the product is not valued using CO01?
    I hope that when i create the production order,the system will check the product is valued or not,if not
    the system will show an error or warning message!
    How to config for this?
    Thank you!

    Dear Zhao Gang,
    Check with this user Exits mentioned in this link,
    Prevent Production Order from "Release" if there is no Cost Estimate
    Re: User Exit at Production Order Release
    Check and revert back.
    Regards
    Mangalraj.S

  • I accidentally hit the stop (x) button when the "empty secure trash" process was going on. Have I screwed up my computer? Can I continue the "Empty Secure Trash" later?

    I was cleaning my caches which was taking forever to clean up. (more than 4 hours). I accidentally hit the stop (x) button when the "empty secure trash" process was going on. Have I screwed up my computer? Can I continue the "Empty Secure Trash" later?

    Just restart your computer.   Then go to Finder menu and change 'Secure empty trash' to Empty trash.  
    Unless you work with state secrets you really don't need secure empty trash which takes seven times longer to do its job.    Empty trash is fine for all but the afore-mentioned secret files.

  • HT201263 Hi, my iPhone 5s was disabled because i forgot my passcode. I was relying to 3 finger prints that I was saving before. I didn't know that passcode is required when the phone restarted. So I follow every single steps to recover

    Hi, my iPhone 5s was disabled because i forgot my passcode. I was relying to 3 finger prints that I was saving before. I didn't know that passcode is required when the phone restarted. So I follow every single steps to recover my iPhone using i tunes.
    Suddenly an iTunes pop up a message "that I must respond to iTunes on my phone, so that the computer could have access to the phone".
    HOW COULD I RESPOND ON MY PHONE WHEN I WAS DISABLED ALREADY?
    IS THERE ANY BUTTON TO BE PRESS AS CODE COMBINATION THAT STANDS AS MY RESPOND TO ITUNES?
    <Edited by Host>

    Disabled
    Place the iOS device in Recovery Mode and then connect to your computer and restore via iTunes. The iPod will be erased.
    iOS: Forgot passcode or device disabled
    If recovery mode does not work try DFU mode.                        
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings        
    For how to restore:                                                             
    iTunes: Restoring iOS software
    To restore from backup see:
    iOS: Back up and restore your iOS device with iCloud or iTunes       
    If you restore from iCloud backup the apps will be automatically downloaded. If you restore from iTunes backup the apps and music have to be in the iTunes library since synced media like apps and music are not included in the backup of the iOS device that iTunes makes.
    You can redownload most iTunes purchases by:           
    Downloading past purchases from the App Store, iBookstore, and iTunes Store        
    If problem what happens or does not happen and when in the instructions? When you successfully get the iPod in recovery mode and connect to computer iTunes should say it found an iPod in recovery mode.
    If you previously synced to the computer then you may be able to recover use of the iPod without erasing the iPod by following the instructions here:
    Disabled Recovery-must use syncing computer.
    For the future, this is the iPod touch forum

  • Credit card charged when I order or when the phone is shipped?

    Will my credit card be charged when the phone is ordered (3 am on 2/3) or when the phone is shipped?  sorry if this has been asked.  i promise I searched first.

    ja1234 wrote:
    whiteyanderson wrote:
    The official VZW iPhone FAQ gives us very little useful info but, it does state that orders will not be charged until the phone ships. 
    yeah that is the way I read it. and I hope that is the case...on the last two phones I bought they cahrged me the day the order was processed...the X I ordered at 12:03  am on the 15th and it was processed at 2pm on the 15th the charge showed up on my account at the bank at that time( my wife works for our bank  and called to let me know it went through)  I tried to order a Dinc   and my order got messed up when the screens ran out. My order got canceled and it took 6 days for them to credit my refund back... so I hope I read it right this time!
    i'm guessing that may be in part why they have changed it. i doubt many people complained in the past when they would be charged and the product shipped within a few days.....but that htc incredible debacle was a joke. thousands of customers were charged for the price of a phone for a phone that they got a month later. i'm sure is was a customer service nightmare because if you've ever tried to cancel an order with verizon then you know you can forget about that. once the order was placed, they would charge your card. if you wanted to cancel it, you had to wait and refuse delivery, or take delivery and send it back. THEN you could get your $ back. i seriously called to cancel an order 2 hours after ordering a phone for my wife on the 800#. it couldn't be done.

  • Sales Order Updation when the delivery changed

    Hello Experts,
                           I am working an object where I need to update the sales order when the delivery changed.
                             Actually when the remote system rejected the delivery an IDOC will come to R/3
    Sooner the delivery changed in R/3 I need to update few fields in sales order.
              When I am trying to code in the exit in the FM attached to the IDOC it is first updating the sales order and calling ws_update_delivery  next.
    Even if I am trying in mv45afz1 also same thing is happening.
              Can anyone let me know how to solve this problem.

    Hi,
    you can see the work center capacity situation for manufacturing an item in the salesorder. But it needs Assemble to Order strategy. Anyway u can see the material details in the sales order.
    Kiran.

  • The next screen's audio starts playing when the current screens audio has finished

    So I've added audio to a few screens and on the first couple it works fine. I have added a mute button and that's all, I just want the audio to play to the end then stop on each screen. It does that perfectly on the first few screens and then at a certain point, when the audio for that screen has finished, it plays the audio for the next screen, and the next, and so on even though I haven't moved on. I can't work out why it's doing this! Sure someone can explain what I've done wrong. Using Captivate 8.0.1...

    I adjusted them on one screen and it      worked - you've solved my problem again -  Thank you!
    Is there a way I can make my audio files load up like this automatically?

  • What does it mean when the Page in Dreamweaver has a blue background?

    Good Day.  I am having a problem with one of my pages, and I'm not sure what the issue is.  Currently the only thing I can see different about it, is that when I load it into Dreamweaver, each section has a light blue background as though it was selected for something or has a special feature attached to it.  None of my other pages look this way when I load them.  Can someone help me understand what this is?  I have attached a screen shot so that you can see what I am talking about.  Thank you in advance for your assistance.

    Hey Nancy O, Nope that didn't fix it either. I thought it might be something like that, but I didn't know how to find that item. I'm sure it is still something like that. I have pasted the code here....it's very spaghetti-ish, so please forgive me. Also, there are several includes that are also included in the other pages that work fine. Now again, I'm sort of fishing here. I'm having a problem with this page not displaying the CSS information correctly and so far this blue "selection" is the only thing I can find different. I feel so stupid...But I do greatly appreciate everyone’s help.  Um...If I was supposed to import this or display it differently, please let me know....I'm not fully up on the forums etiquette
    <%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*,java.util.Calendar,java.util.Date,java.text.DateFormat,java.text.Simpl eDateFormat" errorPage="" %>
    <%@ include file="Connections/bormit.jsp" %>
    <%@ include file="MethodFormatPhoneNumber.jsp" %>
    <%@ include file="MethodFormatDollars.jsp" %>
    <%@ include file="MethodCalculateAge.jsp" %>
    <%@ include file="bormitShareCode.jsp" %>
    <%
    Date curDate = new Date();
    Calendar cal1 = Calendar.getInstance();
    cal1.setTime(curDate);
    long curTime = cal1.getTimeInMillis();
    String txtPrevPage = "" + request.getParameter("txtFromPage");
    String setFieldFocus = "";
    String regFirstName = "";
    String regMiddleName = "";
    String regLastName = "";
    String regSuffix = "";
    String regBirthday = "";
    String regHomePhone = "";
    String regWorkPhone = "";
    String regMobilePhone = "";
    String regEmailAddress = "";
    String regAddress1 = "";
    String regAddress2 = "";
    String regAddress3 = "";
    String regCity = "";
    String regStateId = "";
    String regZipCode = "";
    String regCountryId = "";
    String regNumChildren = "";
    String regMarried = "";
    String regServicePlan = "";
    String regEducation = "";
    String regOccupation = "";
    String regCurrentJob = "";
    String regEyeColor = "";
    String regHairColor = "";
    String regGender = "";
    String regHeightFeet = "";
    String regHeightInches = "";
    String regWeight = "";
    String regMeasureType = "";
    String regBloodType = "";
    String regPicture = "";
    String regStatus = "Pending";
    String regSSN = "";
    if(txtPrevPage.equals("/RegisterAccount.jsp")) {
    session.setAttribute("sesLoginId",request.getParameter("txtUserId"));
    regFirstName = "" + request.getParameter("txtFirstName");
    regMiddleName = "" + request.getParameter("txtMiddleName");
    regLastName = "" + request.getParameter("txtLastName");
    regBirthday = "" + request.getParameter("txtBirthday");
        setFieldFocus = "document.forms.createPerson.selectServicePlans.focus()"; 
    } else
    if(txtPrevPage.equals("/WBPersonInfo.jsp")) {
    regFirstName = "" + request.getParameter("txtFirstName");
    regMiddleName = "" + request.getParameter("txtMiddleName");
    regLastName = "" + request.getParameter("txtLastName");
    regSuffix = "" + request.getParameter("selectSuffix");
    String newBirthday = "" + request.getParameter("txtBirthday");
        regBirthday = newBirthday.replaceAll("/", "-");
    regHomePhone = "" + request.getParameter("txtHomePhone");
    regWorkPhone = "" + request.getParameter("txtWorkPhone");
    regMobilePhone = "" + request.getParameter("txtMobilePhone");
    regEmailAddress = "" + request.getParameter("txtEmailAddress");
    regAddress1 = "" + request.getParameter("txtAddressLine1");
    regAddress2 = "" + request.getParameter("txtAddressLine2");
    regAddress3 = "" + request.getParameter("txtAddressLine3");
    regCity = "" + request.getParameter("txtCity");
    regStateId = "" + request.getParameter("drpdwnState");
    regZipCode = "" + request.getParameter("txtZipCode");
    regCountryId = "" + request.getParameter("selectCountry");
    regNumChildren = "" + request.getParameter("txtNumChildren");
    regMarried = "" + request.getParameter("txtMarriage");
    regServicePlan = "" + request.getParameter("selectServicePlans");
    regEducation = "" + request.getParameter("selectEducation");
    regOccupation = "" + request.getParameter("selectOccupation");
    regCurrentJob = "" + request.getParameter("txtCurrentJob");
    regEyeColor = "" + request.getParameter("selectEyeColor");
    regHairColor = "" + request.getParameter("selectHairColor");
    regGender = "" + request.getParameter("selectGender");
    regHeightFeet = "" + request.getParameter("txtHeightFeet");
    regHeightInches = "" + request.getParameter("txtHeightInches");
    regWeight = "" + request.getParameter("txtWeight");
    regMeasureType = "" + request.getParameter("txtWeightType");
    regBloodType = "" + request.getParameter("selectBloodType");
    regPicture = "" + request.getParameter("txtPicture");
    regStatus = "" + request.getParameter("txtStatus");
    regSSN = "" + request.getParameter("txtSSN");
        setFieldFocus = "document.forms.createPerson.txtFirstName.focus()";  
    } else {
    txtPrevPage = "" + bormitServerPage;
        setFieldFocus = "document.forms.createPerson.txtFirstName.focus()";
    %>
    <%
    String getAcctAddress__MMCol_PersonsId = "0";
    if (session.getAttribute("sesPersonsId")  !=null) {getAcctAddress__MMCol_PersonsId = (String)session.getAttribute("sesPersonsId") ;}
    %>
    <%
    Driver DrivergetAcctAddress = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAcctAddress = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAcctAddress = ConngetAcctAddress.prepareStatement("SELECT addr_address_line1,        addr_address_line2,        addr_address_line3,        addr_city,        addr_state_id,        (SELECT stae_state_abbr           FROM states          WHERE stae_id = addr_state_id)           AS stateAbbr,        (SELECT zipc_zipcode           FROM zipcodes          WHERE zipc_id = addr_zip_code_id)           AS zipCode,        addr_zip_plus4,        addr_foreign_zip   FROM addressrefxr, addresses  WHERE     adxr_reference_id = ?        AND adxr_address_id = addr_id        AND addr_status = 1        AND adxr_status = 1        AND addressrefxr.adxr_table_name = 'persons'        AND adxr_type = (SELECT adty_id                           FROM addresstypes                          WHERE adty_desc = 'Home')");
    StatementgetAcctAddress.setObject(1, getAcctAddress__MMCol_PersonsId);
    ResultSet getAcctAddress = StatementgetAcctAddress.executeQuery();
    boolean getAcctAddress_isEmpty = !getAcctAddress.next();
    boolean getAcctAddress_hasData = !getAcctAddress_isEmpty;
    Object getAcctAddress_data;
    int getAcctAddress_numRows = 0;
    %>
    <% String MM_Response_Msg = "Add Personal Information from Page=" + txtPrevPage;
       String MM_Response_Error = " ";
       if(!getAcctAddress_hasData && (!txtPrevPage.equals("/RegisterAccount.jsp") && !txtPrevPage.equals("/WBCart.jsp") && !txtPrevPage.equals("/WBPersonInfo.jsp"))) {
          MM_Response_Msg = "Error Selecting Data. PrevPage=" + txtPrevPage;
       MM_Response_Error = "Address Information could not found in database. Personsid=" + getAcctAddress__MMCol_PersonsId;
    %>
    <%
    String WriteLogRecs__param_login_id = "0";
    if(session.getAttribute("sesLoginId") != null){ WriteLogRecs__param_login_id = (String)session.getAttribute("sesLoginId");}
    String WriteLogRecs__param_persons_id = "0";
    if(session.getAttribute("sesPersonsId") != null){ WriteLogRecs__param_persons_id = (String)session.getAttribute("sesPersonsId");}
    String WriteLogRecs__param_accounts_id = "0";
    if(session.getAttribute("sesAccountId") != null){ WriteLogRecs__param_accounts_id = (String)session.getAttribute("sesAccountId");}
    String WriteLogRecs__param_ip_address = "";
    if(request.getRemoteAddr() != null){ WriteLogRecs__param_ip_address = (String)request.getRemoteAddr();}
    String WriteLogRecs__param_serial_num = "0";
    if(request.getParameter("0") != null){ WriteLogRecs__param_serial_num = (String)request.getParameter("0");}
    String WriteLogRecs__param_module_name = "";
    if(bormitServerPage != null){ WriteLogRecs__param_module_name = (String)bormitServerPage;}
    String WriteLogRecs__param_msg = "";
    if(MM_Response_Msg != null){ WriteLogRecs__param_msg = (String)MM_Response_Msg;}
    String WriteLogRecs__param_error = "";
    if(MM_Response_Error != null){ WriteLogRecs__param_error = (String)MM_Response_Error;}
    String WriteLogRecs__param_mobile_module = "";
    %>
    <%
    Driver DrivergetMeasureTypes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetMeasureTypes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetMeasureTypes = ConngetMeasureTypes.prepareStatement("SELECT msty_id, msty_short_desc, msty_status, msty_abbr FROM bormit.measuretypes WHERE msty_status = 1 AND msty_isweight = 1");
    ResultSet getMeasureTypes = StatementgetMeasureTypes.executeQuery();
    boolean getMeasureTypes_isEmpty = !getMeasureTypes.next();
    boolean getMeasureTypes_hasData = !getMeasureTypes_isEmpty;
    Object getMeasureTypes_data;
    int getMeasureTypes_numRows = 0;
    %>
    <%
    Driver DrivergetHairColor = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetHairColor = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetHairColor = ConngetHairColor.prepareStatement("SELECT colr_color, colr_id FROM colors WHERE colr_ishaircolor is TRUE ORDER BY colr_color");
    ResultSet getHairColor = StatementgetHairColor.executeQuery();
    boolean getHairColor_isEmpty = !getHairColor.next();
    boolean getHairColor_hasData = !getHairColor_isEmpty;
    Object getHairColor_data;
    int getHairColor_numRows = 0;
    %>
    <%
    Driver DrivergetEyeColors = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetEyeColors = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetEyeColors = ConngetEyeColors.prepareStatement("SELECT colr_color, colr_id FROM colors WHERE colr_iseyecolor is TRUE ORDER BY colr_color");
    ResultSet getEyeColors = StatementgetEyeColors.executeQuery();
    boolean getEyeColors_isEmpty = !getEyeColors.next();
    boolean getEyeColors_hasData = !getEyeColors_isEmpty;
    Object getEyeColors_data;
    int getEyeColors_numRows = 0;
    %>
    <%
    Driver DrivergetEducation = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetEducation = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetEducation = ConngetEducation.prepareStatement("SELECT edlv_level, edlv_id FROM educationlevels");
    ResultSet getEducation = StatementgetEducation.executeQuery();
    boolean getEducation_isEmpty = !getEducation.next();
    boolean getEducation_hasData = !getEducation_isEmpty;
    Object getEducation_data;
    int getEducation_numRows = 0;
    %>
    <%
    Driver DrivergetStates = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetStates = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetStates = ConngetStates.prepareStatement("SELECT stae_state_abbr, stae_id, stae_majority FROM states ORDER BY stae_state_abbr");
    ResultSet getStates = StatementgetStates.executeQuery();
    boolean getStates_isEmpty = !getStates.next();
    boolean getStates_hasData = !getStates_isEmpty;
    Object getStates_data;
    int getStates_numRows = 0;
    %>
    <%
    Driver DrivergetOccupations = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetOccupations = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetOccupations = ConngetOccupations.prepareStatement("SELECT occp_short_desc, occp_id FROM bormit.occupations ORDER BY occp_short_desc");
    ResultSet getOccupations = StatementgetOccupations.executeQuery();
    boolean getOccupations_isEmpty = !getOccupations.next();
    boolean getOccupations_hasData = !getOccupations_isEmpty;
    Object getOccupations_data;
    int getOccupations_numRows = 0;
    %>
    <%
    Driver DrivergetServicePlans = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetServicePlans = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetServicePlans = ConngetServicePlans.prepareStatement("SELECT srpl_short_desc, srpl_amount, srpl_id FROM serviceplans WHERE srpl_status = 1  AND srpl_ispersonrate_plan is true ORDER BY srpl_short_desc");
    ResultSet getServicePlans = StatementgetServicePlans.executeQuery();
    boolean getServicePlans_isEmpty = !getServicePlans.next();
    boolean getServicePlans_hasData = !getServicePlans_isEmpty;
    Object getServicePlans_data;
    int getServicePlans_numRows = 0;
    %>
    <%
    String getAcctState__MM_Acct_State = "0";
    if (request.getParameter("drpdwnState") !=null) {getAcctState__MM_Acct_State = (String)request.getParameter("drpdwnState");}
    %>
    <%
    Driver DrivergetAcctState = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAcctState = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAcctState = ConngetAcctState.prepareStatement("SELECT stae_id, stae_state_abbr FROM bormit.states WHERE stae_id = ?");
    StatementgetAcctState.setObject(1, getAcctState__MM_Acct_State);
    ResultSet getAcctState = StatementgetAcctState.executeQuery();
    boolean getAcctState_isEmpty = !getAcctState.next();
    boolean getAcctState_hasData = !getAcctState_isEmpty;
    Object getAcctState_data;
    int getAcctState_numRows = 0;
    %>
    <%
    Driver DrivergetBloodTypes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetBloodTypes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetBloodTypes = ConngetBloodTypes.prepareStatement("SELECT blty_id, blty_short_desc FROM bormit.bloodtypes");
    ResultSet getBloodTypes = StatementgetBloodTypes.executeQuery();
    boolean getBloodTypes_isEmpty = !getBloodTypes.next();
    boolean getBloodTypes_hasData = !getBloodTypes_isEmpty;
    Object getBloodTypes_data;
    int getBloodTypes_numRows = 0;
    %>
    <%
    Driver DrivergetSuffixes = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetSuffixes = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetSuffixes = ConngetSuffixes.prepareStatement("SELECT sufx_id, sufx_desc FROM bormit.suffixes WHERE sufx_status = 1");
    ResultSet getSuffixes = StatementgetSuffixes.executeQuery();
    boolean getSuffixes_isEmpty = !getSuffixes.next();
    boolean getSuffixes_hasData = !getSuffixes_isEmpty;
    Object getSuffixes_data;
    int getSuffixes_numRows = 0;
    %>
    <%
    Driver DrivergetCountries = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetCountries = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetCountries = ConngetCountries.prepareStatement("SELECT cnty_id, cnty_name FROM bormit.countries WHERE cnty_status = 1 ORDER BY cnty_name");
    ResultSet getCountries = StatementgetCountries.executeQuery();
    boolean getCountries_isEmpty = !getCountries.next();
    boolean getCountries_hasData = !getCountries_isEmpty;
    Object getCountries_data;
    int getCountries_numRows = 0;
    %>
    <%
    String getAccountCountry__MM_Acct_Country = "648";
    if (request.getParameter("drpdwnCntry")  !=null) {getAccountCountry__MM_Acct_Country = (String)request.getParameter("drpdwnCntry") ;}
    %>
    <%
    Driver DrivergetAccountCountry = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetAccountCountry = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetAccountCountry = ConngetAccountCountry.prepareStatement("SELECT cnty_id, cnty_name FROM bormit.countries WHERE cnty_id = ?");
    StatementgetAccountCountry.setObject(1, getAccountCountry__MM_Acct_Country);
    ResultSet getAccountCountry = StatementgetAccountCountry.executeQuery();
    boolean getAccountCountry_isEmpty = !getAccountCountry.next();
    boolean getAccountCountry_hasData = !getAccountCountry_isEmpty;
    Object getAccountCountry_data;
    int getAccountCountry_numRows = 0;
    %>
    <%
    String getWrkAddress__MMWONumber = "0";
    if (session.getAttribute("sesWONumber") !=null) {getWrkAddress__MMWONumber = (String)session.getAttribute("sesWONumber");}
    %>
    <%
    Driver DrivergetWrkAddress = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetWrkAddress = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetWrkAddress = ConngetWrkAddress.prepareStatement("SELECT wkad_id,        wkad_wo_number,        wkad_address_line1,        wkad_address_line2,        wkad_address_line3,        wkad_city,        wkad_state_id,        (SELECT stae_state_abbr           FROM states          WHERE stae_id = wkad_state_id)           AS stateAbbr, wkad_zip_code_id,        (SELECT zipc_zipcode           FROM zipcodes          WHERE zipc_id = wkad_zip_code_id)           AS zipCode,               wkad_foreign_zip,        wkad_country_id FROM bormit.wrkaddresses WHERE wkad_wo_number = ?");
    StatementgetWrkAddress.setObject(1, getWrkAddress__MMWONumber);
    ResultSet getWrkAddress = StatementgetWrkAddress.executeQuery();
    boolean getWrkAddress_isEmpty = !getWrkAddress.next();
    boolean getWrkAddress_hasData = !getWrkAddress_isEmpty;
    Object getWrkAddress_data;
    int getWrkAddress_numRows = 0;
    %>
    <%
       if(!getWrkAddress_hasData && txtPrevPage.equals("/WBCart.jsp")) {
          MM_Response_Msg = "Error Selecting Data. PrevPage=" + txtPrevPage;
       MM_Response_Error = "Wrk Address Information could not found in database. WONumber=" + getWrkAddress__MMWONumber;
    %>
    <%
    Driver DriverWriteLogRecs = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConnWriteLogRecs = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    CallableStatement WriteLogRecs = ConnWriteLogRecs.prepareCall("{call bormit.writeLogRec(?,?,?,?,?,?,?,?,?)}");
    Object WriteLogRecs_data;
    WriteLogRecs.setString(1,WriteLogRecs__param_login_id);
    WriteLogRecs.setString(2,WriteLogRecs__param_persons_id);
    WriteLogRecs.setString(3,WriteLogRecs__param_accounts_id);
    WriteLogRecs.setString(4,WriteLogRecs__param_ip_address);
    WriteLogRecs.setString(5,WriteLogRecs__param_serial_num);
    WriteLogRecs.setString(6,WriteLogRecs__param_module_name);
    WriteLogRecs.setString(7,WriteLogRecs__param_msg);
    WriteLogRecs.setString(8,WriteLogRecs__param_error);
    WriteLogRecs.setString(9,WriteLogRecs__param_mobile_module);
    WriteLogRecs.execute();
    %>
    <%
    String getLoginName__MMLoginId = "0";
    if (session.getAttribute("sesLoginId") !=null) {getLoginName__MMLoginId = (String)session.getAttribute("sesLoginId");}
    %>
    <%
    Driver DrivergetLoginName = (Driver)Class.forName(MM_bormit_DRIVER).newInstance();
    Connection ConngetLoginName = DriverManager.getConnection(MM_bormit_STRING,MM_bormit_USERNAME,MM_bormit_PASSWORD);
    PreparedStatement StatementgetLoginName = ConngetLoginName.prepareStatement("SELECT lpxr_logins_id, lpxr_persons_id, lpxr_status,pers_first_name, pers_middle_name, pers_last_name FROM bormit.loginspersonsxr,      persons WHERE lpxr_logins_id = ?  AND lpxr_persons_id = pers_id");
    StatementgetLoginName.setObject(1, getLoginName__MMLoginId);
    ResultSet getLoginName = StatementgetLoginName.executeQuery();
    boolean getLoginName_isEmpty = !getLoginName.next();
    boolean getLoginName_hasData = !getLoginName_isEmpty;
    Object getLoginName_data;
    int getLoginName_numRows = 0;
    %>
    <%
    int Repeat1__numRows = -1;
    int Repeat1__index = 0;
    getHairColor_numRows += Repeat1__numRows;
    %>
    <%
    int Repeat2__numRows = -1;
    int Repeat2__index = 0;
    getEducation_numRows += Repeat2__numRows;
    %>
    <%
    int Repeat3__numRows = -1;
    int Repeat3__index = 0;
    getEyeColors_numRows += Repeat3__numRows;
    %>
    <%
    int Repeat4__numRows = -1;
    int Repeat4__index = 0;
    getStates_numRows += Repeat4__numRows;
    %>
    <%
    int Repeat5__numRows = -1;
    int Repeat5__index = 0;
    getOccupations_numRows += Repeat5__numRows;
    %>
    <%
    int Repeat6__numRows = -1;
    int Repeat6__index = 0;
    getServicePlans_numRows += Repeat6__numRows;
    %>
    <%
    int Repeat7__numRows = -1;
    int Repeat7__index = 0;
    getBloodTypes_numRows += Repeat7__numRows;
    %>
    <%
    int Repeat8__numRows = -1;
    int Repeat8__index = 0;
    getCountries_numRows += Repeat8__numRows;
    %>
    <%
    int Repeat9__numRows = -1;
    int Repeat9__index = 0;
    getSuffixes_numRows += Repeat9__numRows;
    %>
    <%
    int Repeat10__numRows = -1;
    int Repeat10__index = 0;
    getMeasureTypes_numRows += Repeat10__numRows;
    %>
    <!-- Code to build the address output -->
    <%
    String inAddressLine1 = "";
    String inAddressLine2 = "";
    String inAddressLine3 = "";
    String inCity = "";
    String inStateId = "";
    String inState = "";
    String inZipCodeId = "";
    String inZipCode = "";
    String inCountryId = "";
    String inCountry = "";
    if(txtPrevPage.equals("/RegisterAccount.jsp")) {
       inAddressLine1 = "" + request.getParameter("txtAddressLine1");
       inAddressLine2 = "" + request.getParameter("txtAddressLine2");
       inAddressLine3 = "" + request.getParameter("txtAddressLine3");
       inCity = "" + request.getParameter("txtCity");
       inZipCode = "" + request.getParameter("txtZipCode");
       inCountry = "" + (((getAccountCountry_data = getAccountCountry.getObject("cnty_name"))==null || getAccountCountry.wasNull())?"":getAccountCountry_data);
       inStateId = "" + getAcctState__MM_Acct_State;
       inState = "" + (((getAcctState_data = getAcctState.getObject("stae_state_abbr"))==null || getAcctState.wasNull())?"":getAcctState_data);
       inCountryId = "" + getAccountCountry__MM_Acct_Country;
    } else
    if(txtPrevPage.equals("/WBCart.jsp")) {
       inAddressLine1 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line1"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inAddressLine2 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line2"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inAddressLine3 = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_address_line3"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCity = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_city"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inZipCode = "" + (((getWrkAddress_data = getWrkAddress.getObject("zipCode"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCountry = "" + (((getAccountCountry_data = getAccountCountry.getObject("cnty_name"))==null || getAccountCountry.wasNull())?"":getAccountCountry_data);
       inStateId = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_state_id"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inState = "" + (((getWrkAddress_data = getWrkAddress.getObject("stateAbbr"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
       inCountryId = "" + (((getWrkAddress_data = getWrkAddress.getObject("wkad_country_id"))==null || getWrkAddress.wasNull())?"":getWrkAddress_data);
    } else {
       inAddressLine1 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line1"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inAddressLine2 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line2"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inAddressLine3 = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_address_line3"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inCity = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_city"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inStateId = "" + (((getAcctAddress_data = getAcctAddress.getObject("addr_state_id"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inState = "" + (((getAcctAddress_data = getAcctAddress.getObject("stateAbbr"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inZipCode = "" + (((getAcctAddress_data = getAcctAddress.getObject("zipCode"))==null || getAcctAddress.wasNull())?"":getAcctAddress_data);
       inCountryId = "" + getAccountCountry__MM_Acct_Country;
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    <title>Create Person Entry</title>
    <link type='text/css' href='/Spry-UI-1.7/css/Menu/basic/SpryMenuBasic.css' rel='stylesheet'>
    <link rel="stylesheet" type="text/css" href="bormit.css">
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryDOMUtils.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryDOMEffects.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryWidget.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/SpryMenu.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarKeyNavigationPlugin.js'></script>
    <script type='text/javascript' src='/Spry-UI-1.7/includes/plugins/MenuBar2/SpryMenuBarIEWorkaroundsPlugin.js'></script>
    <script type="text/javascript">
    function FillinAddress()
    var jsAddressLine1 = "<%=inAddressLine1%>";
    var jsAddressLine2 = "<%=inAddressLine2%>";
    var jsAddressLine3 = "<%=inAddressLine3%>";
    var jsCity = "<%=inCity%>";
    var jsZipCode = "<%=inZipCode%>";
    var stateId = '<%=inStateId%>';
    var countryId = '<%=inCountryId%>';
    var countryName;
    if(document.createPerson.cbKeepAddress.checked == true) {
       document.createPerson.txtAddressLine1.value = jsAddressLine1;
       document.createPerson.txtAddressLine2.value = jsAddressLine2;
       document.createPerson.txtAddressLine3.value = jsAddressLine3;
       document.createPerson.txtCity.value = jsCity;
       document.createPerson.txtZipCode.value = jsZipCode;   
       for (i=0; i<document.createPerson.selectCountry.length; i++){
           if (document.createPerson.selectCountry[i].value==countryId)
                  document.createPerson.selectCountry[i].selected  = true;
         countryName = document.createPerson.selectCountry[i].text;
       if(countryName == "United States") {
           for (i=0; i<document.createPerson.selectState.length; i++){
            var dashOffset = document.createPerson.selectState[i].value.indexOf('-');
                if (document.createPerson.selectState[i].value.substring(0,dashOffset)==stateId)
                     document.createPerson.selectState[i].selected  = true;
       } else {
        document.createPerson.selectState.disabled = true;
    } else {
           document.createPerson.txtAddressLine1.value = '';
           document.createPerson.txtAddressLine2.value = '';
           document.createPerson.txtAddressLine3.value = '';
           document.createPerson.txtCity.value = '';
           document.createPerson.txtZipCode.value = '';
    // Check the Users Age for Logins
    function checkUserAge()
    // We are expecting the input date to be in the format MM-DD-YYYY.
    var jsBirthday = document.createPerson.txtBirthday.value;
    var jsEmailAddress = document.getElementById("txtEmailAddress").value;
    var jsYear = "";
    var jsMonth = "";
    var jsDay = "";
    var jsIndex1 = jsBirthday.indexOf("-");
    var jsIndex2 = jsBirthday.indexOf("-", jsIndex1 + 1);
    var jsAge = "";
    var stateId = "";
    var stateMajority = 0;
    var returnValue = "true";
    if(jsIndex1 == 0) {
    alert("The Birthdate Entered is invalid.  Please try again");
    returnValue = false;
    } else {
       jsMonth = jsBirthday.substring(0, jsIndex1);
       jsDay = jsBirthday.substring(jsIndex1 + 1,jsIndex2);
       jsYear = jsBirthday.substring(jsIndex2 + 1);  
    if(jsMonth < 1 || jsMonth > 12) {
    alert("Birthday Month is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    } else
    if(jsDay < 1 || jsDay > 31) {
    alert("Birthday Day is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    } else
    if(jsYear.length != 4) {
    alert("Birthday Year is invalid.  Please reenter");
    document.createPerson.txtBirthday.focus();
    returnValue = "false";
    for(var i = 0; i < document.createPerson.selectState.length; i++) {
    if(document.createPerson.selectState[i].selected) {
      stateId = document.createPerson.selectState[i].value;
      var dashIndex = stateId.indexOf("-");
      stateMajority = stateId.substring(dashIndex + 1);
    if(stateMajority == null || stateMajority == "") {
    stateMajority = 18;
    jsAge = calculate_age(jsMonth, jsDay, jsYear);
    //alert("Birthday Year=" + jsYear + " Month=" + jsMonth + " Day=" + jsDay + " age=" + jsAge);
    if(jsAge > (stateMajority - 1)) {
        if(document.pressed != "Add" && (jsEmailAddress == null || (jsEmailAddress.length == 0 || jsEmailAddress.length == -1))) {
         document.getElementById("emailRequired").style.visibility='visible'; //show other options
         document.getElementById("txtSendEmail").value = '1';  // Set the Send email flag to yes.
         alert("This persons age is over the age of the Majority.  Therefore, they will have to decide if they will allow others to view their information.  Please enter an email address so that we may contact them.");
    } else
    if(jsEmailAddress == null || (jsEmailAddress.length == 0 || jsEmailAddress.length == -1)) {
         document.getElementById("emailRequired").style.visibility='visible'; //show other options
         document.getElementById("txtSendEmail").value = '1';  // Set the Send email flag to yes.
         alert("This persons age is over the age of the Majority.  Therefore, they will have to decide if they will allow others to view their information.  Please enter an email address so that we may contact them.");
      returnValue = "false";
    } else {
      //alert("document.pressed was Add and txtEmailAddress.length=" + document.getElementById("txtEmailAddress").length);
    } else {
    document.getElementById("emailRequired").style.visibility='hidden'; //show other options
    document.getElementById("txtSendEmail").value = '0'; // set the Send Email Flag to NO.
    return returnValue;
    // Function to Calculate Age
    function calculate_age(birth_month,birth_day,birth_year)
        today_date = new Date();
        today_year = today_date.getFullYear();
        today_month = today_date.getMonth();
        today_day = today_date.getDate();
        age = today_year - birth_year;
        if ( today_month < (birth_month - 1))
          age--;
        if (((birth_month - 1) == today_month) && (today_day < birth_day))
          age--;
      return age;
    </script>
    <SCRIPT TYPE="text/javascript">
    function SubmitDataCheck()
    var txtFirstName = document.createPerson.txtFirstName.value;
    var txtMiddleName = document.createPerson.txtMiddleName.value;
    var txtLastName = document.createPerson.txtLastName.value;
    var txtBirthday = document.createPerson.txtBirthday.value;
    var txtSSN = document.createPerson.txtSSN.value;
    var newSSN = "";
    var stateSelected = document.createPerson.selectState.selectedIndex;
    var srvPlanSelected = document.createPerson.selectServicePlans.selectedIndex;
    var country = document.createPerson.selectCountry.selectedIndex;
    var countrySel = document.getElementById("selectCountry");
    var countryText = countrySel.options[countrySel.selectedIndex].text;
    var returnval = false;
    var txtEmail=document.createPerson.txtEmailAddress.value;
    var atpos=txtEmail.indexOf("@");
    var dotpos=txtEmail.lastIndexOf(".");
    <%
    if(txtPrevPage.equals("/RegisterAccount.jsp") || txtPrevPage.equals("/WBCart.jsp") ){
    %>var returnToAcct = "yes";
    <%} else
    if(txtPrevPage.equals("/WBPersonInfo.jsp") ){
        %>var returnToAcct = "edit";
    <%} else {
    %>var returnToAcct = "no";
    <% } %>
    if(document.pressed == "  Cancel  ")
       var r=confirm("Are you sure you wish to exit?");
       if (r==true)
       { if(returnToAcct == "yes" )
             document.createPerson.action ="/LogOff.jsp";
             return true;
      } else
         if(returnToAcct == "edit" )
             document.createPerson.action ="/WBPersonInfo.jsp";
             return true;
          } else {
             document.createPerson.action ="/WBAccountInfo.jsp";
             return true;
       } else
           return false;
    if (txtEmail.length > 0 && (atpos<1 || dotpos<atpos+2 || dotpos+2>=txtEmail.length))
       alert("You have entered an invalid format for an e-mail address.  Please correct the e-mail address before continuing.");
       document.createPerson.txtEmailAddress.focus();
       return false;
    } else
    if (txtEmail.length == 0 && document.getElementById("txtSendEmail").value == 1) {
    alert("Because this persons is over the age of majority for the Country and State to which they live, the Email address is required.  Please enter an Email address before clicking the Add Button.");
    document.createPerson.txtEmailAddress.focus();
    return false;
    if(txtSSN.length == 0) {
    alert("The SSN must be entered.  Please reenter the last 4 characters of your SSN before proceeding.");
        document.forms.createPerson.txtSSN.focus()       
        return false;
    } else
    if(txtSSN.length > 0) {
    if(txtSSN.length > 8) {
      var asterickSSN = txtSSN.substring(0, 7);;
      if(asterickSSN == "***-**-") {
       // bypass this SSN Check.
      } else {
          var index1 = txtSSN.indexOf("-");
          if(index1 == -1) {
           newSSN = txtSSN;
        if(newSSN.length != 9) {
              alert("The SSN must be 9 characters long without editing.  If edited it should be 11 characters.  Please reenter a correct SSN before proceeding.");
                         document.forms.createPerson.txtSSN.focus()     
          return false;
                } else {
           // SSN Good to go....
       } else {
        var ssn1 = txtSSN.substring(0,index1);
        var index2 = txtSSN.indexOf("-", index1 + 1);
        var ssn2 = txtSSN.substring(index1 + 1, index2);
        var ssn3 = txtSSN.substring(index2 + 1);
        newSSN = ssn1 + ssn2 + ssn3;
        if(ssn1.length != 3 || ssn2.length != 2 || ssn3.length != 4) {
          alert("The SSN must be 9 characters long without editing.  If edited it should be 11 characters.  Please reenter a correct SSN before proceeding.");
                         document.forms.createPerson.txtSSN.focus()           
          return false;
    } else
        if(txtSSN.length < 4) {
      alert("The SSN must be 4 characters long.  Please reenter the last 4 characters of your SSN before proceeding.");
            document.forms.createPerson.txtSSN.focus()       
      return false;
    var returnvalue = checkUserAge();
    if(returnvalue == "false") {
    return false;
    if ( (txtFirstName != "") && (txtMiddleName != "") && (txtLastName != "")  && (txtSSN != "")
    &&  (country != "0")    &&  (txtBirthday != "")   && (srvPlanSelected != "0")
    && (countryText.equals("United States") && stateSelected != "0")
        //document.createPerson.action ="/MBWriteWrkPerson.jsp";
        return true;
    } else
       alert("All required fields must be entered before clicking on the Add Button");
       return false;
    // -->
    </SCRIPT>
    <script type="text/javascript">
    // Popup window code
    function newPopup(url) {
    popupWindow = window.open(
      url,'popUpWindow','height=500,width=500,left=250,top=150,resizable=yes,scrollbars=yes,too lbar=yes,menubar=no,location=no,directories=no,status=yes')
    </script>
    <script language="javascript" type="text/javascript" src="datetimepicker.js">
    //Date Time Picker script- by TengYong Ng of http://www.rainforestnet.com
    //Script featured on JavaScript Kit (http://www.javascriptkit.com)
    //For this script, visit http://www.javascriptkit.com
    </script>
    </head>
    <body onLoad="<%=setFieldFocus%>" >
    <div align="center">
    <%@include file="bormitHeadersTop.shtml" %>
    <%
    String disAddrLine1 = "";
    String disAddrLine2 = "";
    String disAddrLine3 = "";
    String disAddrLine4 = "";
    String disAddrLine5 = "";
    String disAddrLine6 = "";
    String holdAddrLine1 = inAddressLine1;
    String holdAddrLine2 = inAddressLine2;
    String holdAddrLine3 = inAddressLine3;
    String holdAddrLine4 = inCity;
    String holdAddrLine5 = inState + ", " + inZipCode;
    String holdAddrLine6 = inCountry;
    if(holdAddrLine1.equals("") || holdAddrLine1.equals(" ") ){
    if(holdAddrLine2.equals("") || holdAddrLine2.equals(" ")) {
      if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ") ){
       disAddrLine1 = holdAddrLine4;
       disAddrLine2 = holdAddrLine5;
       disAddrLine3 = holdAddrLine6;
      } else {
       disAddrLine1 = holdAddrLine3;
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine4 = holdAddrLine6;
    } else {
            disAddrLine1 = holdAddrLine2;
         if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ")) {
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine3 = holdAddrLine6;
      } else { 
          disAddrLine2 = holdAddrLine3;
          disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
    } else {
    disAddrLine1 = holdAddrLine1;
    if(holdAddrLine2.equals("") || holdAddrLine2.equals(" ")) {
      if(holdAddrLine3.equals("") || holdAddrLine3.equals(" ")) {
       disAddrLine2 = holdAddrLine4;
       disAddrLine3 = holdAddrLine5;
       disAddrLine4 = holdAddrLine6;
      } else {
       disAddrLine2 = holdAddrLine3;
       disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
    } else {
            disAddrLine2 = holdAddrLine2;
         if(holdAddrLine3.equals("") || holdAddrLine3.equals("")) {
       disAddrLine3 = holdAddrLine4;
       disAddrLine4 = holdAddrLine5;
       disAddrLine5 = holdAddrLine6;
      } else { 
          disAddrLine3 = holdAddrLine3;
          disAddrLine4 = holdAddrLine4;
       disAddrLine5 = holdAddrLine5;
       disAddrLine6 = holdAddrLine6;
    %>
      <table width="1233" height="508" border="0" bordercolor="#0066CC" cellpadding="1" cellspacing="0" >
        <!--DWLayoutDefaultTable-->
        <tr>
          <td width="200" rowspan="7" valign="top" class="txtLabel">
          <table width="200" border="0" bordercolor="#99CC00" cellspacing="0" cellpadding="0" >
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
            <tr valign="middle">
              <td> </td>
              <td > </td>
            </tr>
            <tr valign="middle">
              <td width="40"> </td>
              <td width="154"> </td>
            </tr>
            <tr>
              <td bgcolor="#FFFFFF" > </td>
              <td bgcolor="#FFFFFF" align="left"><font color="#000000">Account Address:</font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine1%></font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine2%></font></td>
            </tr>
            <tr>
              <td> </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine3%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine4%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td align="left"><font color="#FFFFFF"><%=disAddrLine5%></font></td>
            </tr>
            <tr>
              <td > </td>
              <td > </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
            </tr>
            <tr>
              <td> </td>
              <td> </td>
            </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
          <tr>
          <td><img src="<%=session.getAttribute("sesFillerImage")%>" width="37" height="34"></td>
          <td></td>
          </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="PatientRecs.png" width="37" height="34" alt="Enter Item"></td>
              <td align="left"><a href="/WBAccountInfo.jsp">Account Information</a></td>
    <% } %>
            </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="LoginImage.png" width="37" height="34" alt="Member List"></td>
              <td align="left"><a href="/WBLoginInfo.jsp">Member List</a></td>
    <% } %>
            </tr>
            <tr>
    <% if(txtPrevPage.equals((("/RegisterAccount.jsp"))) ) { %>
    <td> </td>
    <% } else { %>
              <td><img src="LogOff.png" width="37" height="34" alt="Log Off"></td>
              <td align="left"><a href="/LogOff.jsp">Log Off</a></td>
    <% } %>
            </tr>
          </table>
       <p> </p>
       <p> </p></td>
          <td width="45" height="250" ><input type="hidden" name="forspacing" value="English"></td>
          <td width="100%" rowspan="2" valign="top" align="left"> 
       <p><strong>Add Persons Information:</strong></p>
       <table width="100%" border="0" bordercolor="#CC3300" cellspacing="0" cellpadding="0">
       <tr>
         <td valign="top">
           <table width="100%" border="0" bordercolor="#00FF00" cellspacing="0" cellpadding="0">
           <tr>
             <td height="407">
                      <table width="837" border="0"  bordercolor="#FFFF33" cellspacing="0" cellpadding="0">
               <tr>
                 <td width="150" height="377" valign="top">
                          <%
            if(regPicture.equals("")) {
             %>
                          <img src="ImageNotAvail_CreatePerson.png" width="150" height="160" alt="Persons Pic"> 
                               <%
            } else {
             %>
                          <img src="<%=regPicture%>?<%=curTime%>" width="150" height="160" alt="Persons Pic"> 
                               <%
            %>
                          </td>
                          <td width="837" valign="top">
    <%
    String setProtected = "";
    String setTextColor = "width:100%";
    if(txtPrevPage.equals("/RegisterAccount.jsp") ) {
         setProtected = "READONLY";
      setTextColor = "width:100%;color:#999";
    // This can be used to reload the image after the user uploads a new one:
    // <INPUT TYPE="button" onClick="history.go(0)" VALUE="Refresh">
    if(txtPrevPage.equals("/WBPersonInfo.jsp") ) {
       %>
        <form name="createPerson" method="post" action="/MBUpdatePerson.jsp" onSubmit="return SubmitDataCheck()">
        <%
    } else {
        %>
        <form name="createPerson" method="post" action="/MBWritePerson.jsp" onSubmit="return SubmitDataCheck()">
    <%
    %>
                    <table width="837" height="100%" border="0" bordercolor="#0000CC" cellspacing="1" cellpadding="1">
                     <tr>
                       <td width="1%" height="19"><input type="hidden" name="txtFromPage" value="<%=txtPrevPage%>"><input type="hidden" name="txtServicePic" value="<%=regPicture%>"></td>
                       <td width="15%" height="19">First Name<font color="#FF0000">*</font>:</td>
                              <td width="29%" height="19">
                         <input <%=setProtected%> type="text" style="<%=setTextColor%>" name="txtFirstName" id="txtFirstName" tabindex=1 value="<%=regFirstName%>">
                        </td>
                       <td width="6%"> </td>
                       <td width="15%">Status:</td>
                       <td width="29%"><%=regStatus%></td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Middle Name<font color="#FF0000">*</font>:</td>
                       <td height="19">
                         <input <%=setProtected%>  type="text" style="<%=setTextColor%>" name="txtMiddleName" id="txtMiddleName" tabindex=2 value="<%=regMiddleName%>">
                       </td>
                       <td height="19"> </td>
                       <td height="19">Married Status:</td>
                       <td height="19">
                                  <%
             String selectedValue0 = "";
             String selectedValue1 = "";
             String selectedValue2 = "";
             String selectedValue3 = "";
             if(regMarried.equals("0")) {
              selectedValue0 = "selected";
             } else
             if(regMarried.equals("1")) {
              selectedValue1 = "selected";
             } else
             if(regMarried.equals("2")) {
              selectedValue2 = "selected";
             } else
             if(regMarried.equals("3")) {
              selectedValue3 = "selected";
             %>
                           <select name="selectMarriage" style="width:100%" id="selectMarriage" class="selectitems" tabindex=20>
                    <option>--Select Item--</option>
                   <option value="0" <%=selectedValue0%>>Single</option>
                   <option value="1" <%=selectedValue1%>>Married</option>
                   <option value="2" <%=selectedValue2%>>Divorced</option>
                   <option value="3" <%=selectedValue3%>>Live In Partner</option>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Last Name<font color="#FF0000">*</font>:</td>
                       <td height="19">
                         <label for="txtLastName"></label>
                         <input <%=setProtected%> type="text" style="<%=setTextColor%>"name="txtLastName" id="txtLastName" tabindex=3 value="<%=regLastName%>">
                       </td>
                       <td height="19"> </td>
                       <td height="19">Children(#):</td>
                       <td height="19">
                         <input type="text" name="txtNumChildren" style="width:99%" id="txtNumChildren" value="<%=regNumChildren%>" tabindex=21>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Suffix:</td>
                       <td height="19">
                                <select name="selectSuffix" id="selectSuffix" style="width:100%" class="selectitems" tabindex=4>  
                                <option>--Select Item--</option>
           <% while ((getSuffixes_hasData)&&(Repeat9__numRows-- != 0)) {
           String tableValue = "" + (((getSuffixes_data = getSuffixes.getObject("sufx_id"))==null || getSuffixes.wasNull())?"":getSuffixes_data);
           String sufSelected = "";
           if(tableValue.equals(regSuffix)) {
            sufSelected = "selected";
           } else {
            sufSelected = "";
           %>
                                <option value="<%=(((getSuffixes_data = getSuffixes.getObject("sufx_id"))==null || getSuffixes.wasNull())?"":getSuffixes_data)%>" <%=sufSelected%> ><%=(((getSuffixes_data = getSuffixes.getObject("sufx_desc"))==null || getSuffixes.wasNull())?"":getSuffixes_data)%> </option>
              <%
      Repeat9__index++;
      getSuffixes_hasData = getSuffixes.next();
    %>
                             </select></td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Keep Address<font color="#FF0000">**</font>:</td>
                       <td height="19">
                         <label for="txtAddressLine1">
                           <input type="checkbox" name="cbKeepAddress" id="cbKeepAddress" onClick="FillinAddress()" tabindex=5>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Education:</td>
                       <td height="19">
                           <label for="selectEducation"></label>
                           <select name="selectEducation" id="selectEducation" style="width:100%" class="selectitems" tabindex=22>  
                                    <option>--Select Item--</option>
       <% while ((getEducation_hasData)&&(Repeat2__numRows-- != 0)) {
       String tableValue = "" + (((getEducation_data = getEducation.getObject("edlv_id"))==null || getEducation.wasNull())?"":getEducation_data);
       String eduSelected = "";
       if(tableValue.equals(regEducation)) {
        eduSelected = "selected";
       } else {
        eduSelected = "";
       %>
                <option value="<%=(((getEducation_data = getEducation.getObject("edlv_id"))==null || getEducation.wasNull())?"":getEducation_data)%>" <%=eduSelected%>><%=(((getEducation_data = getEducation.getObject("edlv_level"))==null || getEducation.wasNull())?"":getEducation_data)%></option>
              <%
      Repeat2__index++;
      getEducation_hasData = getEducation.next();
    %>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 1<font color="#FF0000">**</font>:</td>
                       <td height="19">
                         <label for="txtAddressLine2">
                           <input type="text" name="txtAddressLine1" style="width:100%" id="txtAddressLine1" value="<%=regAddress1%>" tabindex=6>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Occupation:</td>
                       <td height="19">
                           <label for="selectOccupation"></label>
                           <select name="selectOccupation" id="selectOccupation" style="width:100%" class="selectitems" tabindex=23> 
                                    <option>--Select Item--</option>
        <% while ((getOccupations_hasData)&&(Repeat5__numRows-- != 0)) {
    String tableValue = "" + (((getOccupations_data = getOccupations.getObject("occp_id"))==null || getOccupations.wasNull())?"":getOccupations_data);
    String occSelected = "";
    if(tableValue.equals(regOccupation)) {
      occSelected = "selected";
    } else {
      occSelected = "";
    %>
        <option value="<%=(((getOccupations_data = getOccupations.getObject("occp_id"))==null || getOccupations.wasNull())?"":getOccupations_data)%>" <%=occSelected%>><%=(((getOccupations_data = getOccupations.getObject("occp_short_desc"))==null || getOccupations.wasNull())?"":getOccupations_data)%></option>
                <%
      Repeat5__index++;
      getOccupations_hasData = getOccupations.next();
    %>
                             </select>
                         </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 2:</td>
                       <td height="19">
                         <label for="txtAddressLine3">
                           <input type="text" name="txtAddressLine2" style="width:100%" id="txtAddressLine2" value="<%=regAddress2%>" tabindex=7>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19">Current Job:</td>
                       <td height="19">
                         <label for="txtCurrentJob"></label>
                         <input type="text" name="txtCurrentJob" style="width:99%" id="txtCurrentJob" value="<%=regCurrentJob%>" tabindex=24>
                       </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">Address Line 3:</td>
                       <td height="19">
                         <label for="txtCity">
                           <input type="text" name="txtAddressLine3" style="width:100%" id="txtAddressLine3" value="<%=regAddress3%>" tabindex=8>
                         </label></td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       <td height="19"> </td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">City:</td>
                       <td height="19"><input type="text" name="txtCity" style="width:100%" id="txtCity" value="<%=regCity%>" tabindex=9>
                                </td>
                       <td height="19"> </td>
                       <td height="19">Eye Color:</td>
                       <td height="19"> <select name="selectEyeColor" id="selectEyeColor"  style="width:100%" class="selectitems" tabindex=25>
                         <option>--Select Item--</option>
                         <% while ((getEyeColors_hasData)&&(Repeat3__numRows-- != 0)) {
             String tableValue = "" + (((getEyeColors_data = getEyeColors.getObject("colr_id"))==null || getEyeColors.wasNull())?"":getEyeColors_data);
             String eyeSelected = "";
             if(tableValue.equals(regEyeColor)) {
              eyeSelected = "selected";
             } else {
              eyeSelected = "";
             %>
                         <option value="<%=(((getEyeColors_data = getEyeColors.getObject("colr_id"))==null || getEyeColors.wasNull())?"":getEyeColors_data)%>" <%=eyeSelected%>> <%=(((getEyeColors_data = getEyeColors.getObject("colr_color"))==null || getEyeColors.wasNull())?"":getEyeColors_data)%></option>
                         <%
      Repeat3__index++;
      getEyeColors_hasData = getEyeColors.next();
    %>
                         </select></td>
                       </tr>
                     <tr>
                       <td> </td>
                       <td height="19">State:</td>
          

  • When using my new nano 7 with nike , my music stops after the 30 minute voice alert even though I have set my run for over 30 minutes.It cancels/deletes my run/workout when the music stops.This has happened several times.How can I keep this from happening

    When using my new nano 7 with nike+, my music stops after the 30 minute voice alert even though I have set my run/workout for over 30 minutes.  It also cancels/deletes that run/workout.  This has happened several times.  How can I keep this from happening?

    If possible I would arrange for a good service center to go over it. Hopefully they have a variety of parts in stock. They can test and verify all is working. The previous attempts are based on guesses by the person at the other end of the phone without diagnostic tests to assess the culprit. It is extremely unlikely for a webcam to fail & for it & a Mic to fail together should be an indicator to a good technician it is something else. EG Motherboard
    Take it to a servicing dealer and wait for it.
    T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
    Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
    Windows 7 Home Prem - 64bit w/8GB DDR3

  • How do I download a pre-ordered album, when the status says 'perchased'?

    I pre-orded the Midnight Memories EP by One Direction when there was first the option to pre-order it. I recieved an email today saying that it was avaliable/ out today. I went into itunes on my phone but it said 'perchased', there was no option to download it. I then checked on my laptop to see if i could download it on there but it still said perchased. What can I do to download it? thank you to whoever can answer this

    iTunes Store>More>Purchased>Music>Not on This Phone...should be listed here, just download it.

  • How to get siri to recognize another contact name, when the contact name she has does not exist.

    Siri could not understand me when I asked it to call my husband, (he has a name I have a hard time pronouncing) so I put in a middle name for siri to understand.  I then deleted the middle name from his contact, however, siri still tries to text/call that contact when prompted even though it does not exist.

    Hi Romano & Detlev ,
    Thanks for the reply .
    This is what I was looking
    Detlev:
    About the NPE ... in the above code I am not getting that.
    Thats my mistake
    Earlier I tried with
    IResource rsrPublished  = (IResource)event.getParameter();
    String rid = rsrPublished.getRID().toString();
    In the second line of code I was getting the NPE
    after that I used to if condition to debug it
    Sorry for the confusion...
    One more thing
    which is the event triggered for approval or how to capture the Approval Event when a content is approved by the Approver
    thanks
    pk

  • HP Envy 17, Win 7 64 Bit - How do I re-install windows when the old hard disk has failed?

    The laptop wont start up and the hard disk fails the diagnostic start-up tests. Restore doesn't work and taking the hard disk out the laptop & connecting to my desktop I can't access the recovery partition. The laptop is out of warranty.
     I have a replacement disk drive but as I have no install disks and the recovery partition can't be accessed how do I reinstall the OEM win 7 on the new hard disk?
    Any help would be appreciated.
    This question was solved.
    View Solution.

    If the complete 25 character windows activation key is visible on the Microsoft Windows COA on your notebook, you can download an identical iso file from here and install Windows.
    Download the drivers from the HP web support portal for your notebook. Put them on a usb flashdisk (thumbdrive) for ease of installation.
    Use the Microsoft Windows  7 USD\DVD download tool and a 4GB usb flashdisk (thumbdrive) for the fastest and most reliable means of installing Windows.
    This way you can have your laptop in a useable state while you wait for your ordered recovery disk set. 
    Best regards,
    erico
    ****Please click on Accept As Solution if a suggestion solves your problem. It helps others facing the same problem to find a solution easily****
    2015 Microsoft MVP - Windows Experience Consumer

  • Whatdoes it mean when the project I open has a red screen with different languages,media off line?

    I finished my movied. and then tried to move everything into a new file labeled TAJE files.  Now when I try to open the last version of the movie, I get nothing but 2 of the title clips and then every clip is a red one with different languages saying something about media off line?  I deleted old copies but thought that was ok?
    Pam

    Yes, if you have a completed DVD and just want to copy it then use disk burning software, not PRE. I use Nero and ImgBurn as my main burning applications - Nero is commercial, ImgBurn is free.
    If you want to make extra copies over time you would be better to copy the VIDEO_TS folder from your DVD to your Hard Disk and then point ImgBurn at the folder.
    For new projects requiring multiple DVDs to be burnt you would be better during Share to burn it to disk. Again, once it's there you can just point ImgBurn at it.
    Cheers,
    Neale
    Insanity is hereditary, you get it from your children

Maybe you are looking for

  • .RW2 File "Cannot open because it is the wrong type of file" - P.E. 9

    I just got the new Panesonic Lumix DMC-G3 and took some pictures with it today and found that Photoshop Elements couldn't open the pictures because they were the "wrong type of file".  Now the file format is a  Raw .RW2 and I have opened many of them

  • How do I rotate shapes in pages

    If I add a shape from the shapes tool bar is there a way to rotate it ? Many Thanks

  • Privilege to view Package DDL only

    Hello Friends, I need your help on GRANTS. Oracle version: Oracle 11G R2 OS: AIX I have three users in a database. Among these three users, two users, say USR1 and USER2 are having all database objects which is needed for my application and poses all

  • Event for Vendor invoice.

    Hi, I want to trigger the workflow when the vendor invoice gets parked. The vendor invoice comes in as an idoc, I want to trigger another workflow, if the vendor invoice doesnot get parked too. What object is best suited. Thanks in advance. Sathish.

  • Oracle Sequence not incrementing Properly

    I created a sequence in Oracle with increment by one. But after 700 it is jumping to 736,766................... I dont know why this is jumping like this. plz tell me why it is happening like this.