function goIndex(idIndex)
{
goPage(idIndex, 1) ;
}

function goPage(idIndex, idPage)
{
location.href = ('index.php?idIndex=' + idIndex + '&idPage=' + idPage) ;
}

function ImagePopup(mypage,myname)
{
win = window.open(mypage,myname,'width=40,height=40,scrollbars=no,resizable=yes');
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function PopupImage(img)
{
    titre="View";
    
    w=open("",'image','width=40,height=40,toolbar=no,scrollbars=no,resizable=yes');
    w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
    w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+30); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
    w.document.write("<BODY onload='checksize()' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><IMG src='"+img+"' border=0>");
    w.document.write("");
    w.document.write("</BODY></HTML>");
    w.document.close();
}

    function goItemFeat(idContent)
{
var z = document.getElementById(idContent) ;
var idIndex = z.value ;
        if(idContent != 0)
location.href = ('index.php?idIndex=' + idIndex + '&idContent=' + idContent) ;
}


    function goInterview(idIndex, idContent)
{
        if(idContent != 0)
location.href = ('index.php?idIndex=' + idIndex + '&idContent=' + idContent) ;
}

    function goItem(idIndex, idContent)
{
        if(idContent != 0)
location.href = ('index.php?idIndex=' + idIndex + '&idContent=' + idContent) ;
}

    function goItemNews(idIndex, idContent)
{
        if(idContent != 0)
location.href = ('detail.php?idIndex=' + idIndex + '&idContent=' + idContent) ;
}


function openWin(theURL,winName,features)
{
popup = window.open(theURL,winName,features);
popup.focus() ;
}
