function SetPuzzlet(PuzzleName, PuzzleId, PuzzleSounds, PuzzlePieces, PuzzleSize, PuzzleLevel, PuzzleTheme, PuzzleDesc, PuzzleSong, Categorie, Auteur, UrlContact) 
{ 

setCookie ('Categorie', Categorie) 
setCookie ('Auteur', Auteur) 
setCookie ('UrlContact', UrlContact) 
setCookie ('PuzzlePieces', PuzzlePieces) 
setCookie ('PuzzleLevel', PuzzleLevel) 
setCookie ('PuzzleSize', PuzzleSize) 
setCookie ('PuzzleTheme', PuzzleTheme) 
setCookie ('PuzzleDesc', PuzzleDesc) 
setCookie ('Song', PuzzleSong) 
setCookie ('PuzzleName', PuzzleName) 
setCookie ('PuzzleSounds', PuzzleSounds) 
setCookie ('PuzzleId', PuzzleId) 
} 

function gotopage(pieces){
setCookie('pieces', ' '+pieces+' ');
document.location="puzzles.php?page=list&filter="+pieces;
}

function filteron(pieces){
setCookie('pieces', ' '+pieces+' ');
return true;
}

function OpenWindow(warg)
 {msgWindow=window.open(warg ,"PuzzletPlayer","scrollbars=yes,resizable=yes,height=590,width=780");
if (window.focus){msgWindow.focus();}}

function OpenWindowSmall(warg)
 {msgWindow=window.open(warg ,"PuzzletCarte","scrollbars=no,resizable=yes,height=390,width=538");
if (window.focus){msgWindow.focus();}
}

function OpenPopUp(warg,title, width,height)
 {msgWindow=window.open(warg ,title,"scrollbars=no,resizable=yes,height="+height+",width="+width);
if (window.focus){msgWindow.focus();}
}

function OpenScrollPopUp(warg,title, width,height)
 {msgWindow=window.open(warg ,title,"scrollbars=yes,resizable=yes,height="+height+",width="+width);
if (window.focus){msgWindow.focus();}
}

function LaunchPuzzle(){
var warg = 'PlayPuzzle.php3?Askuser=yes&puzzle='+getCookie("PuzzleId");
OpenWindow(warg);
return false;
}

function BacktoPuzzles(){
document.location='puzzles.php'
}

function SendPuzzleCard(){
var warg = 'PuzzleCardGeneric.php?puzzle='+getCookie("PuzzleId");
OpenWindowSmall(warg);
return false;
}

function HostPuzzle(){
document.location = 'heberger.php';
return false;
}



