//Returns the language selected in combo box function getLanguage() { return "&lang=" + document.getElementById("lang").value; } //--------------------------------------------------------------------------------------------------- // Calls matching pairs function CallPelmanism(wordlist) { var lang = getLanguage(); var words = "&WordList=" + wordlist; window.location='your_worksheet.php?worksheet=pelmanism&QuestionCount=9&WordCount=6&Border=roundrect&EasyCut=false&Drop=true'+words+lang; }