function pagenam(dispfrom) {
	finval=(dispfrom-1) / 50;
g=Math.floor(finval)+1;

thepage="newdvds"+und(g)+".htm?"+dispfrom.toString()+"nodisplay=10";
return thepage;
}

function pagename(dispfrom) {
	finval=(dispfrom-1) / 50;
g=Math.floor(finval)+1;
thepage="newdvds"+und(g)+".htm?";
return thepage;
}

nodvds=454;
function latest() {
many2=(nodvds%nppage)-1;
froma=nodvds-many2;
//value=pagenam(froma)+"nodisplay="+many2
value=pagenam(451);
location=value;
}

function gothere() {
 sel = window.document.seldvd.pick;
 value = sel.options[sel.selectedIndex].value;
 urltext=pagename(value);
  if (value>0) {value=urltext+value+"nodisplay=1"}
 else {value=urltext+"1nodisplay=10"}
location=value;
}

function lupdate() {
document.write('<div class="descr">Last updated on 20th October 2006</div><p>This is a page of reviews of the ');
}

function rtime(runtimev) {
	
	if (runtimev=="n/a") {
	return "";
}
else
	{
		return runtimev+" mins.";
}
}

function displayDVD(num)
{
document.write("<p><table class='t3'><tr><td><img src='"+cover[num]+"' width=150 height=216></td><td width=80%>");
document.write("<u><b>"+DVDtitle[num]+"</b></u> "+rtime(runtime[num])+"<img src='region"+region[num]+".gif'><p>");
document.write("<b>Company</b> : "+company[num]+"<br><b>Picture Format</b> : "+pictureformat[num]+"<br/><b>Sound</b> : "+sound[num]+"<br>");
document.write("<b>Features</b> : "+features[num]+"</p><p>");
document.write(descript[num]+"</p></td></tr></table><br/>");
}

function showpage(start,how)
{
end=start+how;

for(lo=start;lo<end;lo++) {
if (lo<nodvds) displayDVD(lo);
}
}

function pagemenu(start) {
nop=Math.ceil(nodvds/10);
stpage=start;

if (stpage==1) {stpage=2;}
enpage=stpage+8;
if ((enpage-1)>nop) {enpage=nop;}
document.write(pageref(1));

for(lo=stpage;lo<enpage;lo++) {
document.write(pageref(lo));
}
document.write(pageref(46));
}

function pageref(pagenumber) {
quot=String.fromCharCode(34);
pdi=(pagenumber*10)-9;
theline="<a href="+quot+pagenam(pdi)+quot+">"+und(pagenumber)+"</a>";
return theline;
}

	function und(amount) {
    if (amount<10) {
    return '0'+amount ;
  }
  else {
  	return amount;
  }
}

function intro() {
	quot=String.fromCharCode(34);
	document.write(nodvds-1);
	document.write(" DVD discs that I or other people have seen. If there is an easter egg at the end of the review you can click on it to find ");
	document.write("details of the hidden features on the disc. You can see the <a href="+quot+"javascript:latest();"+quot+"><b>latest additions</b></a> ");
	document.write("to this list, or for more information on this format, <b><a href="+quot+"dvdinfo.htm"+quot+">click here</a></b>.");
	document.write("Check out the <a href="+quot+"dvdcred.htm"+quot+"><b>credits</b></a> for the reviews and supply of DVDs, and also for details on ");
	document.write("how to send your reviews to be included on this list.  If you just want to view the easter eggs, there is now a ");
	document.write("<a href="+quot+"eeggs.htm"+quot+"><b>seperate page</b></a> for that.");
}