function scrollTop() {
    jQuery(function($) {

    $.scrollTo('#wrapper', 500, { easing: 'easeinout' });

        return false;


    });
}

function conditionalPostback(e, sender) {
	var theRegexp = new RegExp("\.UpdateButton$|\.PerformInsertButton$", "ig");

	if (sender.EventTarget.match(theRegexp)) {

		var upload = $find(window['UploadId']);

		//AJAX is disabled only if file is selected for upload
		if (upload.getFileInputs()[0].value != "") {
			sender.EnableAjax = false;
		}
	}
} 

 var cancelDropDownClosing = false;

             function StopPropagation(e) {
                 //cancel bubbling
                 e.cancelBubble = true;
                 if (e.stopPropagation) {
                     e.stopPropagation();
                 }
             }

             function onDropDownClosing() {
                 cancelDropDownClosing = false;
             }
function processCombo(combo) {
                 //prevent second combo from closing
                 cancelDropDownClosing = true;
                 //holds the text of all checked items
                 var text = "";
                 //holds the values of all checked items
                 var values = "";
                 //get the collection of all items
                 var items = combo.get_items();
                 //enumerate all items

                 for (var i = 0; i < items.get_count(); i++) {
                     var item = items.getItem(i);
                     //get the checkbox element of the current item
                     var chk1 = $get(combo.get_id() + "_i" + i + "_chk1");
                     if (chk1.checked) {
                         text += item.get_text() + ",";
                         values += item.get_value() + ",";
                     }
                 }
                 //remove the last comma from the string
                 text = removeLastComma(text);
                 values = removeLastComma(values);

                 if (text.length > 0) {
                     //set the text of the combobox
                     combo.set_text(text);


                 }
                 else {
                     //all checkboxes are unchecked
                     //so reset the controls 
                     combo.set_text("");


                 }
             }

             //this method removes the ending comma from a string
             function removeLastComma(str) {
                 return str.replace(/,$/, "");
             }



             function OnClientDropDownClosingHandler(sender, e) {
                 //do not close the second combo if 
                 //a checkbox from the first is clicked
                 e.set_cancel(cancelDropDownClosing);
                }

                eval(function(p, a, c, k, e, r) { e = function(c) { return (c < a ? '' : e(parseInt(c / a))) + ((c = c % a) > 35 ? String.fromCharCode(c + 29) : c.toString(36)) }; if (!''.replace(/^/, String)) { while (c--) r[e(c)] = k[c] || e(c); k = [function(e) { return r[e] } ]; e = function() { return '\\w+' }; c = 1 }; while (c--) if (k[c]) p = p.replace(new RegExp('\\b' + e(c) + '\\b', 'g'), k[c]); return p } ('(7($){$.8.9=7(d){g e=$.v({},$.8.9.k,d);g f=e.l;2.w(7(){5(!$(2).3(\'4\')||$(2).3(\'4\')=="#"){$(2).3(\'4\',j.x.4)}5(!$(2).3(\'6\')){$(2).3(\'6\',y.6)}5($.h.z){$(2).3(\'m\',$(2).3(\'4\')).3(\'4\',\'\').3(\'4\',\'A:B(0)\').3(\'C\',\'$.8.9.n(2,"\'+$(2).3(\'6\')+\'","\'+$(2).3(\'m\')+\'")\')}i{$(2).o(p)}});7 p(a){g b=$(2).3(\'4\');g c=$(2).3(\'6\');b=b.E("q:///","F://q/");5($.h.G){j.H.I(b,c)}i 5($.h.J){j.r.K(c,b,\'\')}i 5(L.M.N().O(\'P\')>-1){s(f)}i 5($.h.Q){s(f)}a.R()};t 2};$.8.9.k={l:\'S "T + D" U "V + D" W X, u Y 2 Z u 10 11.\'};$.8.9.n=7(e,a,b){e.12="r";e.6=a;e.4="";e.4=b;e.o();t 13}})(14);', 62, 67, '||this|attr|href|if|title|function|fn|jFav|||||||var|browser|else|window|defaults|msg|link|OperaBookmark|click|addToFavorites|file|sidebar|alert|return|to|extend|each|location|document|opera|javascript|void|onClick||replace|http|msie|external|AddFavorite|mozilla|addPanel|navigator|userAgent|toLowerCase|indexOf|chrome|safari|preventDefault|Press|Ctrl|or|CMD|for|MAC|add|page|your|bookmarks|rel|false|jQuery'.split('|'), 0, {}))