function rand(x) {

return Math.floor((Math.random() * x) + 1);

}

function tipOfTheDay() {

var tips = new Array();

tips[0] = "Group similar icons on your desktop and place in a folder so your desktop loads quicker and is not cluttered with lots of unorganized icons.";
tips[1] = "Always have antivirus and spyware protection software installed on your computer to ensure it is protected.  Free antivirus and spyware protection software can be downloaded from my Links page.";
tips[2] = "Install and use Mozilla Firefox as your web browser.  It is more powerful, secure, and works on more operating systems than Internet Explorer and other web browsers.  Also it allows for lots of customization via add-ons, extensions, and themes.";
tips[3] = "Buy a 4, 8, or 16 GB USB 2.0 Flash Drive and keep with you or your computer at all times.  These USB flash drives are great for storing and transporting data, and can even be used for backing up important files before working on your computer.";
tips[4] = "When in doubt about how to do something with your computer or what an error message means, etc. try using Google search to get you on track or diagnose your problem.";
tips[5] = "Run disk clean-up and disk defragmenter monthly to ensure your hard drive(s) are organized and free of unnecessary files.";
tips[6] = "Search my Links page or the web for tutorials on software you would like to learn.  Often times there are good, free tutorials available for a wide range of software and applications that may interest you.";
tips[7] = "Seek a second opinion from a computer consultant or knowledgeable friend or family member before spending a lot of money on a computer, accessories, software, or repairs.  Big businesses will often push you to buy or replace things you don't need for much more than you should be spending.";
tips[8] = "Don't give out personal information online unless you are sure of the site and the security of your information.";
tips[9] = "Set aside time periodically to organize your files.  It helps to create folders and group similar files such as Word documents, mp3's, etc. so that it is easy and intuitive to locate files.";
tips[10] = "Avoid installing lots of software and games you don't plan on using often as it will only slow your computer down and take up more hard drive space.";
tips[11] = "Always password protect important accounts and only save passwords on your computer for quicker log on if you are positive you are the only person with access to the computer account.  If you leave your computer and keep it running when others may have access to it, be sure to lock your account or log out so no one may access your files or information.";

return tips[rand(12)-1];

}

