var currItem, 
currItem=-1

var quote=new Array(17)
quote[0]="1. A cultivator cultivates the hallmark of no-self. If you are free of the hallmark of self, you can endure everything. When states manifest, your mind will not be influenced. You will see yourself as if the same as empty space."
quote[1]="2. To become a Buddha is not so easy! If you don't cut off your sexual desire yet still want to become a Buddha -- that is absolutely impossible. There's no such principle in this world. Nowadays, most people are greedy for lucky breaks and shortcuts. We get attracted easily to the mysterious and miraculous. Then we become confused and fall into the demon\'s trap."
quote[2]="3. Why do people lie? Because to do so will put them at an advantage; they don\'t want to come up with the short end of the stick."
quote[3]="4. If one breaks the precept against sexual misconduct, then it's easy for him to break the precept against killing, stealing and lying. Therefore, breaking the precept that prohibits sexual misconduct also includes the breaking of the precepts against killing, stealing, and lying."
quote[4]="5. By upholding the Five Precepts and practicing the Ten Good Deeds, you will be born into the human and the deva (heaven) realms. If you have an attitude of greed, hatred and stupidity, then you may fall into the three evil paths."
quote[5]="6. If you understand the precepts, then you can penetrate the entire Buddha-dharma. If you don\'t understand the precepts, then you're like a cloud floating in the sky, you lack any foundation."
quote[6]="7. There's only one basis for the precepts and that lies in not being selfish."
quote[7]="8. You should vigorously uphold precepts in places where people can\'t see. You should not only make progress in front of people, or uphold precepts in front of people. Instead, you should forge ahead vigorously and uphold precepts when you are all by yourself as well."
quote[8]="9. Studying the Buddha-dharma is learning not to irritate others or to bring others harm. Therefore, Buddhists must eat vegetarian food because eating meat harms other lives."
quote[9]="10. Eating a vegetarian diet requires that you suffer a loss when you are still alive, because you cannot satisfy your palate. But if you are not a vegetarian and eat a lot of meat, after your death you will have to settle your accounts before the Kings of Hell."
quote[10]="11. If someone who studies Buddha-dharma does not uphold precepts, that person is like a bottle with a hole in the bottom. The water leaks out as soon as it is filled. If one can uphold precepts, one will gradually obtain a state free of outflows (Anasrava)."
quote[11]="12. No matter what Dharma-door you practice, as long as you have patience, you will get some achievement. If you don\'t have patience, then you can't cultivate any Dharma doors to success."
quote[12]="13. What Way do the left-home people cultivate? They cultivate the Way of patience."
quote[13]="14. Patience is a priceless gem,\nWhich few know how to mine,\nBut once you've truly mastered it,\nThen everything works out fine."
quote[14]="15. A cultivator has to endure the things that others cannot bear, renounce the matters that others cannot give up, eat the foods that others cannot swallow, and wear the garments that others cannot put on. In brief, a cultivator ought to bear what others cannot bear."
quote[15]="16. In cultivating the Way, the most important thing is not to fight. We should not fight with anyone, not quarrel over people\'s good points and short-comings, nor gossip about people\'s rights and wrongs."
quote[16]="17. Do not be greedy for anything at all. Know contentment and be patient. This is the unsurpassed wonderful Dharma, that is, alas, neglected by all. By not fighting and not being greedy one will have boundless blessings and a long life. If you contend, are greedy, and are always inviting trouble, then you will incur many karmic offenses. Even if you wanted to leave the Triple Realm there would be no way for you to do so."

function ShowItem(itemNo) {
	switch(itemNo) {
		case -2:
			currItem = 0;
			break;
		case -1:
			currItem = currItem - 1;
			if (currItem < 0)
				currItem = 0;
			break;
		case 1:
			currItem = currItem + 1;
			if (currItem > quote.length-1)
				currItem = quote.length-1;
			break;
		case 2:
			currItem = quote.length-1;
			break;
		default:
			break;
	}
	document.quote.text.value=quote[currItem]
}

