﻿if (typeof (window.opera) !== "undefined") {

    function __myDoPostBack(eventTarget, eventArgument) {
        var theForm = document.forms['aspnetForm'];
        if (theForm.action.indexOf('#') != -1)
            theForm.action = theForm.action.substring(0, theForm.action.indexOf('#'));

        return __originalDoPostBack(eventTarget, eventArgument);
    }

    var __originalDoPostBack = __doPostBack;
    __doPostBack = __myDoPostBack;
}
