var currItem, 
currItem=-1

var quote=new Array(20)
quote[0]="1. Being impartial and unselfish is proper Dharma, whereas being selfish and self-benefiting is devious Dharma."
quote[1]="2. How can one be free from anger caused by ignorance? One must cultivate the Dharma Door of patience (The Paramita of patience). The critical point is not to lose one's temper. If one can refrain from losing one's temper, one will have wisdom."
quote[2]="3. People in the Dharma Ending Age tend to make a common mistake: they shoot for the moon and stumble over their own feet. They trade their eyes for ears, take hearsay for fact and go pursue it."
quote[3]="4. People who believe in Buddhism should not be superstitious; instead, we should eradicate and eliminate superstition. What is superstition? It is simply to believe things without question, believing whatever others say and thus becoming confused."
quote[4]="5. Why are living beings upside-down? They put ignorance in charge as their master, and thereby expel wisdom. Ignorance then gives the commands: claiming right things to be wrong, and wrong things to be right."
quote[5]="6. Wisdom comes from the Dhyana Samadhi of purifying one's mind and reducing one's desires."
quote[6]="7. Those who easily lose their temper are mostly ignorant. Their heavy ignorance prevents them from nurturing their capacity for kindness."
quote[7]="8. A false thought is an untrue and unreal thought. If one constantly has false, upside-down thoughts, one clearly knows something is wrong but does it anyway, and defends oneself by saying it was right."
quote[8]="9. If you constantly return the light to reflect upon yourself and observe your nature, you will bring forth the Paramita of Wisdom. These acts establish your merit. Apply the Paramita of Wisdom widely at all times and in all places, and transform it ceaselessly. Don't be defiled by or attached to anything. Refrain from doing any profane and immoral thing. This is virtue."
quote[9]="10. In fact, there is no distinction between the Paramita of Wisdom of an ignorant person and a wise person. What sets them apart is that one knows how to apply it, the other does not."
quote[10]="11. If you can be free from attachments within and without, you can come and go as you please. You can know where you came from, and where you are going. \"Come\" means to return - return to your body and mind. \"Go\" -- to go to the Dharma Realm."
quote[11]="12. If you are bound to the \"coming and going\" (death and rebirth), you are not free. You are encumbered and impeded."
quote[12]="13. If you have intelligence, you are like the sun. With wisdom, you will be like the moon."
quote[13]="14. The hope of becoming enlightened; the hope of becoming a Buddha -- even these are false thoughts. Everyone should remember this point: we should seek only to truly cultivate and abandon vain hopes."
quote[14]="15. If Bodhisattvas do not openly share their insights and spiritual penetratioins, then what is the use of having them? Teaching and transforming living beings through spiritual penetrations fortifies their faith: thus a double effect is achieved. This is the Dharma door of expedient skill-in-means."
quote[15]="16. Attention, everyone! Demons also manifest spiritual penetrations. Those who crave spiritual penetrations and lack Samadhi power will fall into the demons\' trap. They will lose their way and join the demons\' retinue. Pay special attention here for we cannot afford to be negligent."
quote[16]="17. Whoever wants to have psychic powers should first set everything else aside, and concentrate his mind on meditation. He will gain psychic powers when his work and his accomplishment becomes proficient. Psychic powers cannot be sought externally, they are attained from within."
quote[17]="18. \"See through; let go; be at ease.\" Seeing through is understanding; letting go is liberation; only when you have attained liberation can you be truly at ease."
quote[18]="19. In studying the Buddha-dharma, you should use your wisdom and not emotion. If you utilize wisdom in your pursuit of the Buddha-dharma, then that is the Proper Dharma. If you utilize emotion in your quest of Buddha-dharma, then that's the dharma of the Dharma Ending Age."
quote[19]="20. Many people think that life is full of happiness. But the reality is that this form of happiness is illusory. Genuine happiness should spring from our inherent nature; it is not to be sought from outside."

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]
}
