


function confirmationDeleteVare()
{
    if (confirm("Vil du slette den valgte vare?")) { 
	
        window.document.vareSeeForm.whatToDo.value='3'; 
        window.document.vareSeeForm.submit();

    } else { 
        return false;
    }


}



function confirmationDeleteProducent()
{
    if (confirm("Vil du slette den valgte producent?")) { 
	
        window.document.producentSeeForm.whatToDo.value='3'; 
        window.document.producentSeeForm.submit();

    } else { 
        return false;
    }
}


function confirmationDeleteForhandler()
{
    if (confirm("Vil du slette den valgte forhandler?")) { 
	
        window.document.forhandlerSeeForm.whatToDo.value='3'; 
        window.document.forhandlerSeeForm.submit();

    } else { 
        return false;
    }
}


function confirmationDeleteNyhed()
{
    if (confirm("Vil du slette den valgte nyhed?")) { 
	
        window.document.nyhedSeeForm.whatToDo.value='3'; 
        window.document.nyhedSeeForm.submit();

    } else { 
        return false;
    }
}


function confirmationDeleteVareFile(filename, filId, vareNr, vareNavn)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='vareFiles.aspx?deleteFile=yes&filId='+filId+
            '&vareNr='+vareNr+'&vareNavn='+vareNavn;
 

    } else { 
        return false;
    }
}


function confirmationDeleteProducentFile(filename, filId, producentId, producentNavn)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='producentFiles.aspx?deleteFile=yes&filId='+filId+
            '&producentId='+producentId+'&producentNavn='+producentNavn;
 

    } else { 
        return false;
    }
}


function confirmationDeleteDistriktFile(filename, filId, distriktId, distrikt)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='distriktFiles.aspx?deleteFile=yes&filId='+filId+
            '&distriktId='+distriktId+'&distrikt='+distrikt;
 

    } else { 
        return false;
    }
}


function confirmationDeleteRegionFile(filename, filId, regionId, region)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='regionFiles.aspx?deleteFile=yes&filId='+filId+
            '&regionId='+regionId+'&region='+region;
 

    } else { 
        return false;
    }
}


function confirmationDeleteNyhedFile(filename, filId, nyhedId, titel)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='nyhedAdminFiles.aspx?deleteFile=yes&filId='+filId+
            '&nyhedId='+nyhedId+'&titel='+titel;
 

    } else { 
        return false;
    }
}




function confirmationDeleteGeneralFile(filename, filId)
{
    if (confirm("Vil du slette fil " + filename + "?")) { 
	
        location.href='uploadGeneralFiles.aspx?deleteFile=yes&filId='+filId;
 

    } else { 
        return false;
    }
}




function confirmationDeleteRegion(regionsPageUrl, regionId, region, landId, continentId)
{
    if (confirm("Vil du slette region " + region + "?")) { 
    
        // proceed with delete
        location.href='regionActions.aspx?regionsPageUrl='+regionsPageUrl+'&whatToDo=3&regionId='+regionId
                        +'&region='+region+'&landId'+landId+'&continentId'+continentId;
	
        //window.document.regionsForm.whatToDo.value='3'; 
        //window.document.regionsForm.submit();

    } else { 
        return false;
    }
}

function confirmationDeleteVareinfo(vareinfoId, vareNr, iBottom, rowsPerPage)
{
    if (confirm("Vil du slette den valgte flaske detail?")) { 
    
        // proceed with delete
        location.href='vareFlaskeActions.aspx?whatToDo=3&vareinfoId='+vareinfoId
                        +'&vareNr='+vareNr+'&iBottom'+iBottom+'&rowsPerPage'+rowsPerPage;
	
        //window.document.regionsForm.whatToDo.value='3'; 
        //window.document.regionsForm.submit();

    } else { 
        return false;
    }
}





function confirmationDeleteDistrikt(regionsPageUrl, distriktId, distrikt, regionId, region, landId, land, continentId)
{
    if (confirm("Vil du slette distrikt " + distrikt + "?")) { 
    
        // proceed with delete
        location.href='distriktActions.aspx?regionsPageUrl='+regionsPageUrl+'&whatToDo=3&distriktId='+distriktId
                        +'&distrikt='+distrikt+'&regionId='+regionId
                        +'&region='+region+'&landId='+landId+'&land='+land+'&continentId='+continentId;
	
        //window.document.regionsForm.whatToDo.value='3'; 
        //window.document.regionsForm.submit();

    } else { 
        return false;
    }
}


function confirmationDeleteWeblink(weblinkId, navn, website)
{
    if (confirm("Vil du slette link for " + navn + " (" + website + ")?")) { 
    
        // proceed with delete
        location.href='weblinkActions.aspx?&whatToDo=3&weblinkId='+weblinkId;
	
        //window.document.regionsForm.whatToDo.value='3'; 
        //window.document.regionsForm.submit();

    } else { 
        return false;
    }
}


function confirmationDeleteHighResLink(filId)
{
    if (confirm("Vil du slette link to high res image?")) { 
    
        // proceed with delete
        location.href='setHighResBrother.aspx?&deleteLink=yes&filId='+filId;
	
        //window.document.regionsForm.whatToDo.value='3'; 
        //window.document.regionsForm.submit();

    } else { 
        return false;
    }
}


//opens popup window
function popupWindowSize(url, wi, he)
{ 
var properties = 'toolbar=no,menubar=no,resizable=yes,scrollbars=yes,status=no,width='+wi+',height='+he
new_window = window.open(url,'window_name',properties);
new_window.focus();
return false;
}

// closes current popup window and refreshes parent window 
function winCloseAndRefresh()
{
    self.close();
    opener.location.reload(true);
}


