function QuickJump(qj) {
	if ((qj != undefined)&&(qj != null)) {
		if ((qj.selectedIndex != undefined)&&(qj.options != undefined)) {
			var index = new Number(qj.selectedIndex);
			if ((index >= 0)&&(index < qj.options.length)) {
				var sTarget = new String();
				sTarget = qj.options[index].value;
				if (sTarget.length > 0) {
					document.location.href = sTarget;
				}
			}
		}
	}
}

function CreateQuickJump(id, items)
{
    var ddl = GetElementById(id);
    
    var arrItems = new Array();
    if (typeof(items) == "string") {
        arrItems = eval(items);
    } else {
        arrItems = items;
    }
    
    var cssClass = new String();
    if ((arguments.length > 2) && (arguments[2] != null) && (arguments[2].length > 0)) cssClass = arguments[2].toString();
    
    if (ddl == null)
    {
        //use document.writeln();
        document.open();
        document.writeln("<select id=\"" + HtmlEncode(id) + "\" class=\"" + cssClass + "\" onchange=\"QuickJump(this);\">");
        //document.writeln("<option value=\"\">-- SELECT --</option>");
        for (var i=0;i<arrItems.length;i++)
        {
            document.writeln("<option value=\"" + HtmlEncode(arrItems[i].Value) + "\">" + HtmlEncode(arrItems[i].Text) + "</option>");
        }
        document.writeln("</select>")
        document.close();
    } else {
        ddl.onchange = null;
        ddl.style.className = cssClass;
        while (ddl.options.length > 0)
        {
            ddl.options.remove(0);
        }
        v//ar o = document.createElement("option")
        //o.text = "-- SELECT --";
        //ddl.options.add(o);
        for (var i=0;i<arrItems.length;i++)
        {
            var o = document.createElement("option")
            o.value = arrItems[i].Value;
            o.text = arrItems[i].Text;
            ddl.options.add(o);
        }
        ddl.selectedIndex = 0;
        ddl.onchange = function() { QuickJump(this); }
    }
}