var selectedQuestion = null;
function stopMusic(){
    document.getElementById("player").stop();
}
function startMusic(){
    document.getElementById("player").fileName=document.getElementById("txtHFileName").value; 
    document.getElementById("player").autoStart=true;
//    document.getElementById("player").fileName=document.getElementById("txtHFileName").value; 
//var player = document.getElementById('player');

//player.URL = document.getElementById("txtHFileName").value; 

}
function addQuestionaire(){
    window.open("AddQuestionaire.aspx","_blank",
    "height=600,width=800,status=yes,toolbar=no,menubar=no,location=no");
}
function updateQuestionaire(id){
    window.open("AddQuestionaire.aspx?id="+id,"_blank",
    "height=600,width=800,status=yes,toolbar=no,menubar=no,location=no");
}
function refreshList(){
    window.opener.document.getElementById("txtRefresh").value = "1";    
    window.opener.document.forms(0).submit();
    window.close();
}
function rdClicked(rd){
    selectedQuestion = rd;
//    return;
//    if(rd.checked == false){        
//        if(selectedQuestion != null){
//            selectedQuestion.checked = false;            
//        }
//        rd.checked = true;
////        selectedQuestion = rd;
//    }
//    else{
//    
//        selectedQuestion.checked = false;        
//        rd.checked = false;
//    }
}
function vote(){
    if(selectedQuestion == null){
        alert("Birini seçmek gerekir.");
    }
    else{
        //alert(selectedQuestion.id);
        document.getElementById("hfVote").value = selectedQuestion.id;
        document.forms(0).submit();
    }
}
function result(){
    window.open("QuestionaireResult.aspx","_blank","height=300,width=500,status=yes,toolbar=no,menubar=no,location=no");

}

function closePage(){
    window.close();
}
