
/*
 * -------
 * :ATTRIBUTION NOTICE BEGINS
 *
 * The following JSMsg functions are:
 * 
 *    (C) Copyright 2002 - 2006, Creativyst, Inc.
 *               ALL RIGHTS RESERVED
 * 
 * For more information go to:
 *   http://www.Creativyst.com/Doc/Std/JSMsg/JSMsg.htm
 * or email:
 *            Support@Creativyst.com
 * 
 * Licensed under the Open Software License version 1.1
 *
 * END ATTRIBUTION NOTICE:
 * -------
 *
 * The following version token is 
 * required by aggregators
 * -------
 * JSMsgVersion:1.0a
 * -------
 *
 * Made by: JSMFeed.pl v1.0f
*/
/* JSCpragma:StartCompress
*/
/* These functions are free software; you can redistribute 
 * them and/or modify them under the terms of the Open 
 * Software License (OSL) version 1.1 as published by
 * the Open Source Initiative;
 * 
 * This program is distributed in the hope that it will 
 * be useful, but WITHOUT ANY WARRANTY; without even the 
 * implied warranty of MERCHANTABILITY or FITNESS FOR A 
 * PARTICULAR PURPOSE. See the Open Software License
 * version 1.1 for more details.
 * 
 * For the complete details of the Open Software License
 * please visit the Open Source Initiative website.
 *
 * 
 * These functions are part of a shared convention.
 * called JSMsg.  Please see the JSMsg document
 * for more details.
 *
 * www.creativyst.com/Doc/Std/JSMsg/JSMsg.htm
 *
 * -------------------------------------------
 * Parts of this code were automatically
 * generated and may contain copyrighted
 * content from other sources as well.
 * Such content may not be used without
 * first obtaining explicit permissions
 * from their sources.
 *
 *
*/

function np_JSMsg() {

this.Title = Array([this.ShortListSize]);
this.Desc = Array([this.ShortListSize]);
this.Link = Array([this.ShortListSize]);
this.DateN = Array([this.ShortListSize]);

this.MetaKeys = Array([5]);
this.MetaVals = Array([5]);



 this.ShortListSize = 20;
 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.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,"Year2N") ) {
            return(this.DateN[msgNumber].substr(2,2));
          }
          return(this.DateN[msgNumber].substr(0,4));
        }
    }

    if(  this.ok(msgPart,"Time") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(8,6));
    }
    if(  this.ok(msgPart,"Hour2N") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(8,2));
    }
    if(  this.ok(msgPart,"Minute2N") ) {
      myTmp = this.DateN[msgNumber];
      return(myTmp.substr(10,2));
    }

    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)
 {
    var i,l;

    if( this.is(msgCmd, "Title LinkTitle Desc Description Link LinkTitle DayN Day2N MonthN Month2N Year2N Year4N YearN Year Time Hour2N Minute2N ") ) {
         return(1);

    }
    else if( this.is(msgCmd, "MetaCount") ) {
        return(20);
    }
    else {
        if(this.MetaKeys) {
            l = this.MetaKeys.length;
            for(i = 0;i < l;i++) {
                if(this.MetaKeys[i] == msgCmd) {
                    return(this.MetaVals[i]);
                }
            }
        }
        return(0);
    }
 }

     

}

np = new np_JSMsg();

/* how slow is the with statement */

with( np ) {
/* Meta values
*/
MetaKeys[0] = "MetaTitle";
MetaVals[0] = "Free Survey Today";
MetaKeys[1] = "MetaLink";
MetaVals[1] = "http://freesurveytoday.com/go";
MetaKeys[2] = "MetaLinkTitle";
MetaVals[2] = "<A HREF=\"http://freesurveytoday.com/go\" CLASS=\"JSMsg\">Free Survey Today</A>";
MetaKeys[3] = "MetaUpdateDate";
MetaVals[3] = "20100825000000";
MetaKeys[4] = "MetaDesc";
MetaVals[4] = "Free Survey Today";


/* content vaues:
*/
Title[0] = "CZ Logistics, s.r.o. - Customer Rewiews 2010";
Desc[0] = "";
Link[0] = "http://freesurveytoday.com/go/index.php?sid=79656&lang=en";
DateN[0] = "20100825000000";

Title[1] = "CZ Logistics, s.r.o. - Hodnocení zákazníků 2010";
Desc[1] = "";
Link[1] = "http://freesurveytoday.com/go/index.php?sid=79656&lang=cs";
DateN[1] = "20100825000000";

Title[2] = "Testujeme FreeSurveyToday.com";
Desc[2] = "Popis, uvidime co to dokaze<br />";
Link[2] = "http://freesurveytoday.com/go/index.php?sid=48654&lang=sk";
DateN[2] = "20100819000000";

Title[3] = "Relação das marcas com os públicos nos festivais de música em Portugal";
Desc[3] = "Este inqu&eacute;rito tem como objectivo aprofundar os conhecimentos relativos &agrave; promo&ccedil;&atilde;o de marcas e produtos em contextos que apelam &agrave; emo&ccedil;&atilde;o e &agrave; experi&ecirc;ncia, associados a eventos marcantes para p&uacute;blicos definidos pela sua faixa et&aacute;ria e lifestyle, nomeadamente Festivais de M&uacute;sica.<br />";
Link[3] = "http://freesurveytoday.com/go/index.php?sid=42658&lang=pt";
DateN[3] = "20100812000000";

Title[4] = "Áhrif sólgoss á tíðahringinn";
Desc[4] = "Tilgangur &thorn;essarar k&ouml;nnunar er a&eth; komast a&eth; &thorn;v&iacute; hvort t&iacute;&eth;ahringur kvenna hafi breyst &iacute; &aacute;g&uacute;stm&aacute;nu&eth;i 2010, eftir s&oacute;lgosi&eth; sem var&eth;&nbsp;1. &aacute;g&uacute;st og segulstorm &iacute; kj&ouml;lfar &thorn;ess.";
Link[4] = "http://freesurveytoday.com/go/index.php?sid=42615&lang=en";
DateN[4] = "20100815000000";

Title[5] = "Itellas ārkārtas izbraukuma sanāksmes anketa";
Desc[5] = "Itellas ārkārtas izbraukuma sanāksmes anketa";
Link[5] = "http://freesurveytoday.com/go/index.php?sid=34115&lang=en";
DateN[5] = "20100816000000";

Title[6] = "Γλώσσες προγραμματισμού";
Desc[6] = "";
Link[6] = "http://freesurveytoday.com/go/index.php?sid=15772&lang=el";
DateN[6] = "20100724000000";

Title[7] = "\"Estudo dos Estilos de Vida dos Consumidores Portugueses\"";
Desc[7] = "<div style=\"text-align: center;\"><img src=\"/go/upload/surveys/28238/logoiscte-iul.png\" style=\"width: 397px; height: 65px;\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF%7E1/AppData/Local/Temp/moz-screenshot-16.png\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF%7E1/AppData/Local/Temp/moz-screenshot-17.png\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF~1/AppData/Local/Temp/moz-screenshot-18.png\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF~1/AppData/Local/Temp/moz-screenshot-19.png\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF~1/AppData/Local/Temp/moz-screenshot-24.png\" alt=\"\" /><img src=\"file:///C:/Users/RODOLF~1/AppData/Local/Temp/moz-screenshot-20.png\" alt=\"\" /></div>";
Link[7] = "http://freesurveytoday.com/go/index.php?sid=28238&lang=pt";
DateN[7] = "20100703000000";

Title[8] = "teste 2";
Desc[8] = "<div>Partilhar o que &eacute; nosso</div>\n\n<div>Saber ao certo o que quero</div>\n\n<div>Que os outros recebam insosso</div>\n\n<div>O que de mim melhor espero.</div>";
Link[8] = "http://freesurveytoday.com/go/index.php?sid=88265&lang=pt-BR";
DateN[8] = "20100621000000";

Title[9] = "Eleições Corpos Sociais EST\'eS La Tuna Feminina";
Desc[9] = "&nbsp;";
Link[9] = "http://freesurveytoday.com/go/index.php?sid=69149&lang=pt";
DateN[9] = "20100617000000";

Title[10] = "Uso de herramientas web 2.0";
Desc[10] = "Encuesta sobre el uso de herramientas web 2.0";
Link[10] = "http://freesurveytoday.com/go/index.php?sid=39448&lang=es-MX";
DateN[10] = "20100609000000";

Title[11] = "";
Desc[11] = "";
Link[11] = "http://freesurveytoday.com/go/index.php?sid=23532&lang=ro";
DateN[11] = "20100606000000";

Title[12] = "Chestionar";
Desc[12] = "<span class=\"instructions\">Pe o scal? de la 1 la 5 v? rug?m s? v?  exprima?i acordul sau dezacordul &icirc;n legatur? cu urmatoarele afirma?ii</span><br />";
Link[12] = "http://freesurveytoday.com/go/index.php?sid=23532&lang=en";
DateN[12] = "20100606000000";

Title[13] = "ANKETA RADIO KIM - KFOS 2010, za rucni unos štampanih upitnika";
Desc[13] = "";
Link[13] = "http://freesurveytoday.com/go/index.php?sid=69581&lang=hr";
DateN[13] = "20090513000000";

Title[14] = "SpreeCo Survey";
Desc[14] = "&Epsilon;&rho;&epsilon;&upsilon;&nu;&alpha; &Alpha;&gamma;&omicron;&rho;&alpha;&sigmaf; &pi;&rho;&omicron;&iota;&omicron;&nu;&tau;&omega;&nu; &tau;&eta;&sigmaf; SPREECO, &pi;&omicron;&upsilon; &pi;&epsilon;&rho;&iota;&lambda;&alpha;&mu;&beta;&alpha;&nu;&omicron;&upsilon;&nu; &sigma;&tau;&alpha; &sigma;&upsilon;&sigma;&tau;&alpha;&tau;&iota;&kappa;&alpha; &tau;&omicron;&upsilon;&sigmaf;, &Sigma;&pi;&iota;&rho;&omicron;&upsilon;&lambda;&iota;&nu;&alpha;, &eta;\' &Chi;&lambda;&omega;&rho;&epsilon;&lambda;&alpha;, &eta;\' &Iota;&pi;&pi;&omicron;&phi;&alpha;&epsilon;&sigmaf;, &eta;\' &sigma;&upsilon;&nu;&delta;&iota;&alpha;&sigma;&mu;&omicron; &alpha;&upsilon;&tau;&omega;&nu; &mu;&epsilon;&tau;&alpha;&xi;&upsilon; &tau;&omicron;&upsilon;&sigmaf;<br />";
Link[14] = "http://freesurveytoday.com/go/index.php?sid=46382&lang=el";
DateN[14] = "20100512000000";

Title[15] = "Survey: Internet Search";
Desc[15] = "This survey was designed by Fabian Janik, Christiane Stoll, Barbara  Wagner and David Uhde. Its results will be used for a project conducted in a course at the University of Mannheim.<br />";
Link[15] = "http://freesurveytoday.com/go/index.php?sid=93448&lang=en";
DateN[15] = "20100515000000";

Title[16] = "Umfrage: Suchen im Internet";
Desc[16] = "Die Umfrage wurde von Fabian Janik, Christiane Stoll, Barbara Wagner und David Uhde entworfen. Die Ergebnisse der Studie werden ausschlie&szlig;lich f&uuml;r unser Forschungsprojekt in einem Kurs an der Universit&auml;t Mannheim verwendet. Die Befragung erfolgt vollkommen anonym.<br />";
Link[16] = "http://freesurveytoday.com/go/index.php?sid=93448&lang=de";
DateN[16] = "20100515000000";

Title[17] = "Redbull";
Desc[17] = "&nbsp;";
Link[17] = "http://freesurveytoday.com/go/index.php?sid=93423&lang=en";
DateN[17] = "20100504000000";

Title[18] = "May June Ushers";
Desc[18] = "<p>Sign up to Volunteer Usher during May and June.</p>";
Link[18] = "http://freesurveytoday.com/go/index.php?sid=38726&lang=en";
DateN[18] = "20100504000000";

Title[19] = "";
Desc[19] = "";
Link[19] = "http://freesurveytoday.com/go/index.php?sid=72223&lang=el";
DateN[19] = "20100422000000";

} // end with block
