";
if (comment) newContent += "";
newContent += htmlEnd;
// newWindow.document.open();
newWindow.document.write(newContent);
newWindow.document.close();
}
//A HTML oldal elkeszitese kepsorozat eseten
function movieScript(sourceURL, comment, newAsOld) {
var firstPic = comment.substring(0,comment.lastIndexOf("z"));
var prevPic = parseInt(firstPic,10) - 1;
var nextPic = parseInt(firstPic,10) + 1;
if (prevPic < 10) prevPic = "0"+prevPic;
if (nextPic < 10) nextPic = "0"+nextPic;
var lastPic = comment.substring(comment.lastIndexOf("z")+1,comment.length);
var fileName = sourceURL.substring(0,sourceURL.lastIndexOf(".")) +"."+ firstPic + ".jpg";
var linkStart = "\"javascript:void goToPic('"+sourceURL+"','";
var linkEnd = lastPic+"','1')\""
var linkName1 = linkStart+prevPic+"z"+linkEnd;
var linkName2 = linkStart+nextPic+"z"+linkEnd;
var linkText1 = "Elõzõ ("+prevPic+"/"+lastPic+")";
var linkText2 = "Következõ ("+nextPic+"/"+lastPic+")";
// var linkName = linkName2;
// if (lastPic == firstPic) linkName = linkStart+"01z"+lastPic+linkEnd;
//linkText = sourceURL.substring(0,sourceURL.lastIndexOf(".")) +"."+ firstPic + ".jpg";
var newContent;
newContent = htmlStart;
newContent += ""+sourceURL.substring(sourceURL.lastIndexOf("/")+1,sourceURL.lastIndexOf("."))+"";
newContent += htmlHeader+" height=410 colspan=2>";
newContent += " ";
newContent += " |