function G$(TheEl) {
	return window.document.getElementById(TheEl);
}

function StRpt(Who) {
/*
//	G$('P_target').innerHTML='StRpt: '+Who;
//	alert('StRpt :'+Who);


//	var Base='http://www.eye-books.com/';
	var Dt=(new Date());
	var Stamp=escape(Dt.getDate() + '/' + Dt.getMonth() + '/'+(1900+Dt.getYear()) +' at ' + Dt.getHours() + ':' + Dt.getMinutes() + ':' + Dt.getSeconds() + '\n');
	var Recd=escape(G$(Who)['item_option_name_1'].value+'\r\n');

//	if(document.cookie['RFF'] && (document.cookie['RFF'].indexOf('eye-books.com')<0)) {
//		Stamp+=document.cookie['RFF']+'\n';
//	}

	var Str='UI/EyeFunc.php?Fn=GBtRc.txt&StrDt='+Stamp+Recd;	//	'+Base+'
//	alert(Str);
	G$('P_target').src=Str;
*/

}

function ChangeValu(WhichF,TheVal) {
		
	G$(WhichF).item_option_quantity_1.value=TheVal;
	G$(WhichF).item_option_quantity_2.value=TheVal;
	G$(WhichF).item_option_quantity_3.value=TheVal;
		
}
	
function SetOpt(WhichF,PassVal) {
	
	if(PassVal==2) {
		G$(WhichF).item_option_name_2.value+=", Plus " + OfferTitle;
	}
		
}

	
function ShowMe(ShowWot) {

	G$(ShowWot).style.display='block';
	
}



	var TitleDay1="Great Sects";
	var SynopDay1="A terrific compendium for enquiring minds reveals secret beliefs and arcane practices of Kabbalah, Opus Dei, the Druids, the Masons and the Dreamtime, not to mention the Satanists, Jedi Knights and the lesser-known Church of Country Sports. A great gift for the intelligent, and for those who think they are. ";
	
	var TitleDay2="Around the World with 1000 Birds"; 
	var SynopDay2="Russell found a purpose for his mid-life crisis. He'd had enough of 8-6pm and  needed to see more of life. The trip of a lifetime involved more than 1000 birds, a voyage of emotion and experience, with the inspiration that nature provides for those who take the time to see the world around them. A great gift for men teetering towards a mid-life crisis. ";
	
	var TitleDay3="Walking Away";
	var SynopDay3="Charlotte has made award-winning films about Africa which never shy away from controversy. The hardest part for her is walking away and leaving the places she feels so strongly about. In this book, Charlotte tells the stories from behind the lens. A great gift for those with a love and concern for Africa. ";
	
	var TitleDay4="Zohra's Ladder";
	var SynopDay4="Tales of Moroccan sensuality and ritual. Layers of history peel back, revealing intimate insights to the people and culture of the land of Tangier, Casablanca and Marrakesh. A great gift for lovers of the sensual and mysterious.";
	
	var TitleDay5="Lost Lands, Forgotten Stories";
	var SynopDay5="A river journey in the heart of Labrador, Canada with a female British explorer. She travelled with Innu guides and evokes the history and plight of a tribe in danger losing their identity. 'Alexandra is so reckless she scares me and so entrancing that I could not put her book down' Ken McGoogan. A great gift for strong-minded, independent women. ";
	
	var TitleDay6="The Accidental Optimists Guide to Life";
	var SynopDay6="'I wanted to change the world... But I couldn t find a babysitter.' Emily's touching and often hilarious quest for the Meaning of Life took up much of her, 'pre marriage and kids years,' and now she struggled for the time to find out! A great gift for frantically busy carers. ";
	
	var TitleDay7="Death"; 
	var SynopDay7="From the earliest human burial rights to the current price of cryogenic freezing, this is a history of death   both in terms of cause and attitude towards it from all over the world. A great gift for the deep and thoughtful. ";


///////////////////////////////////////////////////////////

if(typeof(RollPoses)!=='undefined'){
		RollPoses();
		ScrptWrt("StretchTextD2T.js");
}

//////////////////////////////////////////////////////////

function submitIt(){
   if(document.frm1.username_.value == '' ){
      alert('Please enter a username')
      return ;
   }
   if(document.frm1.password_.value == '' ){
      alert('Please enter a password')
      return;
   }
   document.frm1.frmAction.value = 'SUBMIT'
   document.frm1.submit()
}

var d=new Date();
DayVar= d.getDay();
		
function LoadOffer() {

		var Titles=new Array(7);
		var Synops=new Array(7);

		Titles[5]="Around the World with 1000 Birds"; 
		Synops[5]="Russell found a purpose for his mid-life crisis. He'd had enough of 8-6pm and  needed to see more of life. The trip of a lifetime involved more than 1000 birds, a voyage of emotion and experience, with the inspiration that nature provides for those who take the time to see the world around them. A great gift for men teetering towards a mid-life crisis. ";
		
		Titles[6]="Walking Away";
		Synops[6]="Charlotte has made award-winning films about Africa which never shy away from controversy. The hardest part for her is walking away and leaving the places she feels so strongly about. In this book, Charlotte tells the stories from behind the lens. A great gift for those with a love and concern for Africa. ";
		
		Titles[0]="Walking Away";
		Synops[0]="Charlotte has made award-winning films about Africa which never shy away from controversy. The hardest part for her is walking away and leaving the places she feels so strongly about. In this book, Charlotte tells the stories from behind the lens. A great gift for those with a love and concern for Africa. ";
		
		Titles[1]="Zohra's Ladder";
		Synops[1]="Tales of Moroccan sensuality and ritual. Layers of history peel back, revealing intimate insights to the people and culture of the land of Tangier, Casablanca and Marrakesh. A great gift for lovers of the sensual and mysterious.";
		
		Titles[2]="Lost Lands, Forgotten Stories";
		Synops[2]="A river journey in the heart of Labrador, Canada with a female British explorer. She travelled with Innu guides and evokes the history and plight of a tribe in danger losing their identity. 'Alexandra is so reckless she scares me and so entrancing that I could not put her book down' Ken McGoogan. A great gift for strong-minded, independent women. ";
		
		Titles[3]="The Accidental Optimists Guide to Life";
		Synops[3]="'I wanted to change the world... But I couldn t find a babysitter.' Emily's touching and often hilarious quest for the Meaning of Life took up much of her, 'pre marriage and kids years,' and now she struggled for the time to find out! A great gift for frantically busy carers. ";
		
		Titles[4]="Death"; 
		Synops[4]="From the earliest human burial rights to the current price of cryogenic freezing, this is a history of death   both in terms of cause and attitude towards it from all over the world. A great gift for the deep and thoughtful. ";

	OfferTitle=(Titles[DayVar]);
	OfferSynop=(Synops[DayVar]);
	
	OfferSynop+="Add this book for only £4.99, by choosing 'Plus Stocking filler' from the pull-down list below. (UK delivery only)";

	for (x=0; x<4; x++) {

		TheTitleGoes="OfferTitle"+x;
		TheTextGoes="OfferBkTxt"+x;
		
		if(G$(TheTitleGoes)) {
			G$(TheTitleGoes).firstChild.nodeValue=OfferTitle;
			G$(TheTextGoes).firstChild.nodeValue=OfferSynop;
		}
	}
}

