function linkBannerComment(linkpage, banner, bannercomment, linkcomment){
	document.write("<tr><td width='100' height='35' align='right'><a href='",linkpage,"' target='mainWindow'><img src='images/",banner,"' width='88' height='31' alt='",bannercomment,"' border='0'></a></td>");
	document.write("<td width='390' height='35' align='left'><a href='",linkpage,"' target='mainWindow' class='word10V'>",linkcomment,"</a></td></tr>");
}
function linkBannerCommentImg2(linkpage, banner, bannercomment, linkcomment){
	document.write("<tr><td width='100' height='35' align='right'><a href='",linkpage,"' target='mainWindow'><img src='images2/",banner,"' width='88' height='31' alt='",bannercomment,"' border='0'></a></td>");
	document.write("<td width='390' height='35' align='left'><a href='",linkpage,"' target='mainWindow' class='word10V'>",linkcomment,"</a></td></tr>");
}
function linkBannerCommentImg4(linkpage, banner, bannercomment, linkcomment){
	document.write("<tr><td width='100' height='35' align='right'><a href='",linkpage,"' target='mainWindow'><img src='images4/",banner,"' width='88' height='31' alt='",bannercomment,"' border='0'></a></td>");
	document.write("<td width='390' height='35' align='left'><a href='",linkpage,"' target='mainWindow' class='word10V'>",linkcomment,"</a></td></tr>");
}
function linkBannerComment2(linkpage, banner, bannercomment, linkcomment){
	document.write("<tr><td width='100' height='35' align='right'><a href='http://",linkpage,"' target='_blank'><img src='images/",banner,"' width='88' height='31' alt='",bannercomment,"' border='0'></a></td>");
	document.write("<td width='390' height='35' align='left'><a href='http://",linkpage,"' target='_blank' class='word10V'>",linkcomment,"</a></td></tr>");
}
function linkBannerBlock(link1, link2, link3, link4, link5, banner1, banner2, banner3, banner4, banner5){
	document.write("<tr><td width='100' height='35' align='right'><a href='",link1,"' target='mainWindow'><img src='images3/",banner1,"' width='88' height='31' alt='旅行記' border='0'></a></td>");
	if(link2 != "null"){ document.write("<td width='100' height='35' align='right'><a href='",link2,"' target='mainWindow'><img src='images3/",banner2,"' width='88' height='31' alt='旅行記' border='0'></a></td>"); }
	else{ document.write("<td width='100'></td>"); }
	if(link3 != "null"){ document.write("<td width='100' height='35' align='right'><a href='",link3,"' target='mainWindow'><img src='images3/",banner3,"' width='88' height='31' alt='旅行記' border='0'></a></td>"); }
	else{ document.write("<td width='100'></td>"); }
	if(link4 != "null"){ document.write("<td width='100' height='35' align='right'><a href='",link4,"' target='mainWindow'><img src='images3/",banner4,"' width='88' height='31' alt='旅行記' border='0'></a></td>"); }
	else{ document.write("<td width='100'></td>"); }
	if(link5 != "null"){ document.write("<td width='100' height='35' align='right'><a href='",link5,"' target='mainWindow'><img src='images3/",banner5,"' width='88' height='31' alt='旅行記' border='0'></a></td>"); }
	else{ document.write("<td width='100'></td>"); }
}
function setPhotoFrame(photofile, comment, zoom){
	document.write("<td><table width='210' height='210' border='0' cellspacing='0' cellpadding='0'>");
	if(zoom == "null"){
		document.write("<tr><td colspan='3' width='210' height='14'><img src='images/frameTop.gif' width='210' height='14'></td></tr><tr><td width='29' height='110'><img src='images/frameLtop.gif' width='29' height='110'></td><td width='150' height='110'><img src='photos/",photofile,"' width='150' height='110'></td><td width='31' height='110'><img src='images/frameRtop.gif' width='31' height='110'></td></tr><tr><td width='29' height='76'><img src='images/frameLbtm.gif' width='29' height='76'></td><td width='150' height='76' valign='top' class='word10'>",comment,"</td><td width='31' height='76'><img src='images/frameRbtm.gif' width='31' height='76'></td></tr><tr><td colspan='3' width='210' height='10'><img src='images/frameBtm.gif' width='210' height='10'></td></tr>"); }
	else{
		document.write("<tr><td colspan='3' width='210' height='14'><img src='images/frameTop.gif' width='210' height='14'></td></tr><tr><td width='29' height='110'><img src='images/frameLtop.gif' width='29' height='110'></td><td width='150' height='110'><img src='photos/",photofile,"' width='150' height='110'></td><td width='31' height='110'><img src='images/frameRtop.gif' width='31' height='110'></td></tr><tr><td width='29' height='76'><img src='images/frameLbtm.gif' width='29' height='76'></td><td width='150' height='76' valign='top' class='word10'>",comment,"<br><a href='photos/",zoom,"' target='_blank' class='word10W'>[拡大]</a></td><td width='31' height='76'><img src='images/frameRbtm.gif' width='31' height='76'></td></tr><tr><td colspan='3' width='210' height='10'><img src='images/frameBtm.gif' width='210' height='10'></td></tr>"); }
	document.write("</table></td>");
}
function setPhotoFrame2(photofile, comment, zoom){
	document.write("<td><table width='210' height='210' border='0' cellspacing='0' cellpadding='0'>");
	if(zoom == "null"){
		document.write("<tr><td colspan='3' width='210' height='14'><img src='images/frameTop.gif' width='210' height='14'></td></tr><tr><td width='29' height='110'><img src='images/frameLtop.gif' width='29' height='110'></td><td width='150' height='110'><img src='photos/",photofile,"' width='150' height='110'></td><td width='31' height='110'><img src='images/frameRtop.gif' width='31' height='110'></td></tr><tr><td width='29' height='76'><img src='images/frameLbtm.gif' width='29' height='76'></td><td width='150' height='76' valign='top' class='word10'>",comment,"</td><td width='31' height='76'><img src='images/frameRbtm.gif' width='31' height='76'></td></tr><tr><td colspan='3' width='210' height='10'><img src='images/frameBtm.gif' width='210' height='10'></td></tr>"); }
	else{
		document.write("<tr><td colspan='3' width='210' height='14'><img src='images/frameTop.gif' width='210' height='14'></td></tr><tr><td width='29' height='110'><img src='images/frameLtop.gif' width='29' height='110'></td><td width='150' height='110'><img src='photos/",photofile,"' width='150' height='110'></td><td width='31' height='110'><img src='images/frameRtop.gif' width='31' height='110'></td></tr><tr><td width='29' height='76'><img src='images/frameLbtm.gif' width='29' height='76'></td><td width='150' height='76' valign='top' class='word10'>",comment,"<br><a href='photos2/",zoom,"' target='mainWindow' class='word10W'>[拡大]</a></td><td width='31' height='76'><img src='images/frameRbtm.gif' width='31' height='76'></td></tr><tr><td colspan='3' width='210' height='10'><img src='images/frameBtm.gif' width='210' height='10'></td></tr>"); }
	document.write("</table></td>");
}
function setFooter(back, next){
	document.write("<table width='500' align='center' rules='none' cellspacing='0' border='0'><tr><td height='25'></td></tr>")
	document.write("<tr><td width='500' height='20'><hr size='2' noshade></td></tr>")
	document.write("<tr><td height='20' align='right'>")
	document.write("<a href='top.html' target='mainWindow' class='word10W'>HOME</a>	")
	if (back == "null" && next != "null"){
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>NEXT</a>	"); }
	else if (back != "null" && next == "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>BACK</a>	"); }
	else if (back != "null" && next != "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>BACK</a>	"); 
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>NEXT</a>	"); }
	document.write("</td></tr></table>");
}
function setFooter2(back){
	document.write("<table width='500' align='center' rules='none' cellspacing='0' border='0'><tr><td height='10'></td></tr>")
	document.write("<tr><td width='500' height='20'><hr size='2' noshade></td></tr>")
	document.write("<tr><td height='20' align='right'>")
	document.write("<a href='top.html' target='mainWindow' class='word10W'>HOME</a>	")
	document.write("<a href='",back,"' target='mainWindow' class='word10W'>BACK</a>	");
	document.write("</td></tr></table>");
}
function setFooter3(back, next, keyword1, keyword2){
	document.write("<table width='500' align='center' rules='none' cellspacing='0' border='0'><tr><td height='25'></td></tr>")
	document.write("<tr><td width='500' height='20'><hr size='2' noshade></td></tr>")
	document.write("<tr><td height='20' align='right'>")
	document.write("<a href='top.html' target='mainWindow' class='word10W'>HOME</a>	")
	if (back == "null" && next != "null"){
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>",keyword2,"</a>	"); }
	else if (back != "null" && next == "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>",keyword1,"</a>	"); }
	else if (back != "null" && next != "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>",keyword1,"</a>	"); 
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>",keyword2,"</a>	"); }
	document.write("</td></tr></table>");
}
function setFooter4(back, next, keyword, link){
	document.write("<table width='500' align='center' rules='none' cellspacing='0' border='0'><tr><td height='25'></td></tr>")
	document.write("<tr><td width='500' height='20'><hr size='2' noshade></td></tr>")
	document.write("<tr><td height='20' align='right'>")
	document.write("<a href='top.html' target='mainWindow' class='word10W'>HOME</a>	")
	if (back == "null" && next != "null"){
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>NEXT</a>	"); }
	else if (back != "null" && next == "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>BACK</a>	"); }
	else if (back != "null" && next != "null"){
		document.write("<a href='",back,"' target='mainWindow' class='word10W'>BACK</a>	"); 
		document.write("<a href='",next,"' target='mainWindow' class='word10W'>NEXT</a>	"); }
	document.write("<a href='",link,"' target='mainWindow' class='word10W'>",keyword,"</a> ");
	document.write("</td></tr></table>");
}
