
/*
 * Creativyst(R) Quote Catcher (v1.0d)
 *
 *  (C) Copyright 2002-2005, Creativyst, Inc.
 *           ALL RIGHTS RESERVED
 *
 * You may not copy, distribute, or produce
 * derivative works of the following code
 * without the expressed, written permission
 * of Creativyst, Inc.
 *
 * Parts of this code were automatically
 * generated and may contain copyrighted
 * content from other sources as well.
 * Such content may not be used without
 * permission from its respective sources.
 *
 *
 *
*/

function cqc_JSMsg() {
  this.ListPosition = 24;

this.Type = Array([this.ShortListSize]);
this.Desc = Array([this.ShortListSize]);
this.Body = Array([this.ShortListSize]);
this.Attrib = Array([this.ShortListSize]);


 this.ShortListSize = 24;
 this.BeenLoaded = 0;
 this.dispNumb;

 this.Msg = function(msgPart, msgOffset)
 {
    document.write( this.Get(msgPart, msgOffset) );
 }

 this.MsgDay = function(msgPart)
 {
    document.write( this.GetDay(msgPart) );
 }

 this.MsgN = function(msgPart, msgNumber)
 {
    document.write( this.GetN(msgPart, msgNumber) );
 }


 this.Get = function(msgPart, msgOffset)
 {
    if(!msgOffset) {
        msgOffset = 0;
    }
    if(!this.BeenLoaded) {
        this.BeenLoaded = 1;
        dispNumb = 
           this.getRandInt(this.ShortListSize);
    }
    return( this.GetN(msgPart, (dispNumb + msgOffset)) );
 }

 this.GetDay = function(msgPart)
 {
    var d = new Date();
    var x = d.getDate();
    return( this.GetN(msgPart, x) );
 }



 this.GetN = function(msgPart, msgNumber)
 {
    return( this.ChkShowroom( this.GetNCore(msgPart, msgNumber) ) );
 }

 this.GetNCore = function(msgPart, msgNumber)
 {
    var myTmp;

    if(!msgPart) {
        msgPart = "Body";
    }
    if(!msgNumber) {
        msgNumber = 0;
    }

    if(msgNumber >= this.ShortListSize) {
        msgNumber = msgNumber % this.ShortListSize;
    }

    if(  this.ok(msgPart,"Type") ) {
        return(this.Type[msgNumber]);
    }
    if(  this.ok(msgPart,"Title") ) {
        return(this.Title[msgNumber]);
    }
    if(  this.ok(msgPart, "Desc Description Content") ) {
        return(this.Desc[msgNumber]);
    }
    if(  this.ok(msgPart,"Body") ) {
        return(this.Body[msgNumber]);
    }
    if(  this.ok(msgPart, "Attrib Attribute Source") ) {
        return(this.Attrib[msgNumber]);
    }
    if(  this.ok(msgPart, "Author") ) {
        if(!this.Author[msgNumber]) {
            return(this.Attrib[msgNumber]);
        }
        return(this.Author[msgNumber]);
    }

    if(  this.ok(msgPart,"DayN Day2N Day") ) {
        myTmp = this.DateN[msgNumber];
        if(myTmp.length) { 
          myTmp = myTmp.substr(6,2);
          if(  this.ok(msgPart,"Day2N") ) {
            return(myTmp);
          }
          if(myTmp.charAt(0) == "0") {
            return(myTmp.substr(1,1))
          }
          return(myTmp);
        }
    }
    if(  this.ok(msgPart, "MonthN Month2N") ) {
        myTmp = this.DateN[msgNumber];
        if(myTmp.length) {
          myTmp = myTmp.substr(4,2)
          if(  this.ok(msgPart,"Month2N") ) {
            return(myTmp);
          }
          if(myTmp.charAt(0) == "0") {
            return(myTmp.substr(1,1))
          }
          return(myTmp);
        }
    }
    if(  this.ok(msgPart, "Year2N Year4N YearN Year") ) {
        if(this.DateN[msgNumber].length) {
          if(  this.ok(msgPart,"Year4N") ) {
            return(this.DateN[msgNumber].substr(0,4));
          }
          return(this.DateN[msgNumber].substr(0,4));
        }
    }

    if(  this.ok(msgPart,"Link") ) {
        return(this.Link[msgNumber]);
    }
    if( this.ok(msgPart,"LinkTitle") ) {
        if(this.MetaMsg(msgPart,"Link") && this.MetaMsg(msgPart,"Title") ) {
          if( !this.Link[msgNumber] ) {
              return(this.Title[msgNumber]);
          }

          if( !this.Title[msgNumber] ) {
            this.Title[msgNumber] =  this.Link[msgNumber];              
          }
          myTmp = '<A TARGET="_blank" \n'; 
          myTmp = myTmp + 'HREF="' + this.Link[msgNumber] + '">\n';
          myTmp = myTmp + this.Title[msgNumber] + '</A>\n';

          return(myTmp);

        }
        if( this.MetaMsg(msgPart,"Title") ) {
          return(this.Title[msgNumber]);
        }
        if( this.MetaMsg(msgPart,"Link") ) {
          if( this.Link[msgNumber] ) {
            myTmp = "<A TARGET=\"_blank\" \n"; 
            myTmp = myTmp + "HREF=\"" + this.Link[msgNumber] + "\">\n";
            myTmp = myTmp + this.Link[msgNumber] + "</A>\n";
            return(myTmp);
          }
        }
        return("");
    }
    if( this.ok(msgPart,"Cat Category Subject") ) {
        return(this.Cat[msgNumber]);
    }
    if( this.ok(msgPart,"Thumb") ) {
        return(this.Thumb[msgNumber]);
    }
    if( this.ok(msgPart,"Alt") ) {
        return(this.Alt[msgNumber]);
    }

    return("");
 }




 this.getRandInt = function(RandSz)
 {
    var t, t2, t3;

    t = 0;
    while(t < .000001) {
        t = Math.random();
        t = Math.abs(t);
    }
    t2 = t * 1000000;
    t2 = Math.round(t2);
    t3 = t2 % RandSz;
    return(t3);
 }



 this.ok = function(a, b)
 {
    var t, t2;

    if(!this.is(a,b)) {
        return(0);
    }
    return(this.MetaMsg(a));
 }

 this.is = function(a, b)
 {
    var t, t2;

    t = a + " ";
    t2 = b + " ";
    t2 = t2.toUpperCase();
    t = t.toUpperCase();

    if(t2.indexOf(t) == -1) {
        return(0);
    }
    return(1);
 }


 this.MetaMsg = function(msgCmd)
 {
    if( this.is(msgCmd, "Type Desc Description Body Attrib Source ") ) {
         return(1);

    }
    else if( this.is(msgCmd, "MetaCount") ) {
        return(30);
    }
    else {
        return(0);
    }
 }


 this.ChkShowroom = function(insideMsg)
 {
    var rv;

    

    return(insideMsg);

 }


}

cqc = new cqc_JSMsg();

/* how slow is the with statement */

with( cqc ) {
Type[0] = "Quote";
Body[0]="The reason people say good things about your company is because it true. I have never had a bad experience with anyone at Midwest Mailing. All repairs are done promptly; the staff is courteous, and knowledgeable.";
Attrib[0] = "";

Type[1] = "Quote";
Body[1]="Just wanted to let you know that we had some issues with our inserter and a service technician was here to service it. While here he did a great job making sure we were up and running correctly, and although it was late in the day, he took the time to make sure it was completely fixed and went further to check all aspects of it while he was here. Your service dept has done a good job keeping us going. I have even in the past called the service manager and asked questions not related to service and he has always been ready and willing to help me. Thanks.";
Attrib[1] = "";

Type[2] = "Quote";
Body[2]="We've been very pleased with the service we've received from your company, so it was easy to give a good recommendation to your new client. He seemed displeased with the quote he got from Pitney Bowes, and the \"only game in town\" mentality they seem to bring to the business. We're glad you provided us with an alternative to them, and that you back up everything you say with the high level of satisfactory service you provide. You can't do any better than that in my opinion, and I will gladly tell anyone the same.";
Attrib[2] = "";

Type[3] = "Quote";
Body[3]="We placed a service call yesterday afternoon late and I felt compelled to share this information with you. Our SI76 was asking for technical service and wouldn't allow me to reset the machine. Even after turning if off (the standard action if a machine will not respond!), the error remained. I called and asked for service for this morning. Sure enough, a service technician arrived bright and early. We had a wiring problem in a top sensor. He fixed that and noticed that our exit sensor was not aligned properly. This frequently gives us exit sensor errors. He fixed that as well. Your service technician always does a first-rate job. He is prompt, friendly and thorough. Many times he finds a potential problem before we actually have to place a service call. We appreciate his excellent service and wanted to let you know!";
Attrib[3] = "";

Type[4] = "Quote";
Body[4]="Just wanted to let you know that our staff really liked the service technician who visited our office yesterday and worked on the folder/inserter. They felt like he really knew what he was doing and was very helpful.";
Attrib[4] = "";

Type[5] = "Quote";
Body[5]="I recently met with two individuals to discuss their envelope inventory. One absolutely raved about the end of the year tax information and the speed of the inserting process. She mentioned that they were inserting at an unbelievable speed, and they will never use another envelope. It is extremely rewarding to hear and see another happy customer.";
Attrib[5] = "";

Type[6] = "Quote";
Body[6]="To the best of my knowledge, all is well with the folder/inserter. Not only does the staff utilize it on a routine basis, they were able to show the Communications Dept how to use it for a couple of their mailings. They were impressed with its ease of use . . . and they are a really tough group to impress. Training and installation was great. The service manager has been very responsive to the few minor requests we have had.";
Attrib[6] = "";

Type[7] = "Quote";
Body[7]="Just wanted to say thank you for all your help. We have one machine in our corporate office, which I will say needs little or no maintenance. We had an ink gunk issue a week or two ago and the service technician came out and took care of us. The best thing is that he explained the issue and showed my staff what they could do to help prevent the problem from reoccurring. I understand we are changing our branch postage machines from that other company to Midwest Mailing. I was glad to hear that. Thanks again for your fast and professional service. We do appreciate it.";
Attrib[7] = "";

Type[8] = "Quote";
Body[8]="We appreciate the great customer service we get from Midwest Mailing & Shipping. The service technicians are FABULOUS!!!!";
Attrib[8] = "";

Type[9] = "Quote";
Body[9]="A service technician came in and provided the service requested on our Neopost. I heard it was nothing more than a loose screw. Wanted to pass along to you and the service manager your appreciation for keeping us running through the weekend. We have a large volume of tax forms to get out and had scheduled staff to run throughout the weekend. Your repair help will keep us going. Thank you!";
Attrib[9] = "";

Type[10] = "Quote";
Body[10]="We are very happy with the machine, and the service has been great.";
Attrib[10] = "";

Type[11] = "Quote";
Body[11]="Just a quick note to comment on our new Neopost folder/inserter. Our employee is very pleased with it and its ease of operation, especially the return envelope inserter. The delivery/setup person was very courteous and showed her how to use the machine. We are glad we did the deal.";
Attrib[11] = "";

Type[12] = "Quote";
Body[12]="I'm just writing a little note to let you know how nice my new 26K printer is. I've only had a couple of problems with it and when I did I made a service call. One point I want to make is the promptness of the service manager getting here the day I had a 33,000 piece mailing and my feeder stopped working. I thought it was a broken belt and it turned out that the service manager just needed to shut the printer off. Duh! Wish I would have done that. But he was here within a half an hour on a last minute notice. Even the boss said something about how fast he got here. I have never had to wait very long after a service call before one of your people get here. Thanks and keep up the good work.";
Attrib[12] = "";

Type[13] = "Quote";
Body[13]="I AM HAPPY TO SAY WE ARE FIRING PITNEY AND WANT YOUR PRODUCT. WE NEED IT BY THE END OF THE MONTH. I INTEND TO SIGN UP FOR 36 MONTHS! ";
Attrib[13] = "";

Type[14] = "Quote";
Body[14]="We would like to put in a word of commendation for the work that your service technician does for us on the repair of our folding/inserting equipment. He handles himself very professionally when making a service call. He is well prepared to handle the problem and does so with care and concern. Communication is a strong suit for him: He explains the problem and what the fix will be and the approximate repair time. Service/repair professionals have a difficult job. He does his job extremely well. We thank him for that. ";
Attrib[14] = "";

Type[15] = "Quote";
Body[15]="I just wanted to let you know how wonderful it is to hear a friendly voice in today’s hectic business world. Every time your receptionist answers your phone I just can't help but smile. She is always upbeat. If she doesn't have the information I need it isn't long until my phone is ringing and there is her cheerful voice with the answers to all questions. I wish all my business calls could be so pleasant. Thank you.";
Attrib[15] = "";

Type[16] = "Quote";
Body[16]="Midwest’s sales presentations and demonstrations have been great. We couldn’t ask for better service. The service manager and the service technicians always call back, arrive promptly and get us back in service in no time. We would highly recommend your companies products and services to anyone. ";
Attrib[16] = "";

Type[17] = "Quote";
Body[17]="We have been very, very please with the machines we purchased from Midwest Mailing. We purchased IJ65's & IJ75's from the sales manager. The first thing we noticed is how much quieter these machines are than the older Pitney Bowes machines. The new machines are very user friendly also. On the occasional jam the machine can be accessed very easily to remove the envelope. There is no ink reservoir to fill and the labels are self-sticking. We are getting all of these features and at a lower cost than purchasing new Pitney Bowes machines. If these comments don't convince you to go with Midwest then please give me a call and I can answer any other questions you may have.";
Attrib[17] = "";

Type[18] = "Quote";
Body[18]="I would just like to take a minute and tell you how pleased I am with all the help I have received from your staff at Midwest Mailing and Shipping. The receptionist is always very friendly and can usually make me laugh when I am stressed out from a problem. The service manager has been able to talk me through many problems over the phone, so that I may move on with my job, instead of waiting for a service call. This is a great help when I am on a time limit. The service manager and service technicians have always made the service calls to us very quickly. Most of the time they are able to come that very day. They are very friendly and helpful to all my questions. I do appreciate all of their help!";
Attrib[18] = "";

Type[19] = "Quote";
Body[19]="I would like to thank you for allowing the service technician to remain with us for the great part of the day, fixing and fine tuning our machine. Because of his good work, we finished about 5000 pieces of mail in less than a half a day. We appreciate all of his help and hard work.";
Attrib[19] = "";

Type[20] = "Quote";
Body[20]="We have happily worked with the folks at Midwest Mailing and Shipping Systems, Inc. for the last 10 years. They have provided both mail machine and folding equipment to our organization. The relationship began back in the mid 1990's when we were looking to upgrade mailing equipment and asked Midwest along with a few other companies for equipment demonstrations. At that time, we chose the Neopost mail equipment from Midwest, and have continued to purchase various equipment from them. From day one the staff from Midwest has presented themselves in a professional manner and with extensive product knowledge. The sales manager and his staff have proven to be a quality operation with customer satisfaction in mind. They have provided excellent service to our equipment over the years, and have very prompt and knowledgeable technicians. We have been very satisfied with our relationship with Midwest Mailing and Shipping.";
Attrib[20] = "";

Type[21] = "Quote";
Body[21]="Good morning, yesterday I put in a service call for my IJ105 digital franking system. I placed the call about 9:30 AM and by 10:30 the service technician arrived to repair it. I was very impressed with his knowledge of the machinery and the extra effort he made to make sure that it was in the best possible working order. While he was here a small gear on my SI 76 folder/inserter went out. He had a spare gear in his truck and fixed it within 15 minutes. I am very happy with the service I received and would highly recommend Midwest Mailing to any other business. About the machinery. What can I say, we had a Pitney Bowes folder/inserter prior to last January which was time consuming and frustrating to operate as it would continually jam or tare documents. Although it was a little faster in actual speed than the Neopost SI 76, because of continually clearing jams and having to re-run documents that it destroyed the overall length of time to complete a job was much greater. The SI 76 it hasn't jammed one time nor has it ever torn a single document. The IJ 105 digital franking system is a fast running, accurate system that I highly recommend. Both machines are easy to operate and are of the highest quality.";
Attrib[21] = "";

Type[22] = "Quote";
Body[22]="I just wanted to let you know how much I appreciated your call the other day to remind us that one of our branch contracts was up for renewal this month. It’s nice to have someone behind the scene looking out for us. As you know we have more than 20 branches that at one time were all using Pitney Bowes equipment and after years of being over-charged and under-serviced, it’s nice to have a business partner that goes above and beyond for us. Our Neopost folder/inserter and mailing machines are easy to use and very reliable. We wouldn’t even consider going back to Pitney Bowes. I also wanted to let you know that your service department is top notch. Your service manager and technicians are very friendly and pleasant. They are very professional, very knowledgeable and are able to get any issues resolved quickly. Again, we are very glad that we chose Midwest Mailing & Shipping Systems, Inc. as a business partner and please do not hesitate to share my contact information with any of your prospective clients.";
Attrib[22] = "";

Type[23] = "Quote";
Body[23]="I wanted to let you know how much I appreciate the service that you and your organization have provided to us over the years. We have just purchased and installed our second Neopost mailing machine and the process went so well I just had to say 'thank you'. As you know we were a Pitney Bowes customer several years ago and at that time I had never even heard of Neopost. Well, I will never change from Neopost now. The equipment we have purchased from you (mailing machine and the folder/inserter) has worked great for us. The new machine is even better and the employees in our mailing area can't believe how easy it is to use. Admittedly the primary reason I will never leave Neopost is because of your organization. Your service manager and support staff have been so helpful to us over the years. From the moment we call in to your company you treat us like we are the only customer you have. So willing to try to help over the phone, if possible, or come out and fix our problems the same day we call. It just feels like we are working with friends instead of a vendor-client relationship. Please extend my thanks to everyone over there at Midwest Mailing and Shipping and do not hesitate to share my contact information with any of your prospective clients that may not be aware of the excellent service you and your organization provide.";
Attrib[23] = "";

} // end with block


