
//Returns the language selected in combo box
function getLanguage() {
  return "&lang=" + document.getElementById("lang").value;

}

function CallRounding(qcount, qtype, range, roundto)
{ 
//Convert *'s in ranges to colons
	range = range.replace("*",":");
//Convert spaces to + to ensure compliance
	range = range.replace(" ","+");
//URL encode strings
	range = escape(range);
//Call worksheet
    var lang = getLanguage();
	window.location='your_worksheet.php?worksheet=rounding&WorksheetTitle=Rounding+numbers&QuestionCount=' + qcount +
	'&Range=' + range + '&QuestionType=' + qtype + '&RoundTo=' + roundto + '&lang=' + lang;
}
