<table cellpadding=1 cellspacing=0 border=0 width="100%"><tr valign="top"> <td align="center" onmousedown=" var e = event || this.arguments[0]; var s = document.getElementById('a4c8129e821461').style; s.display = s.display=='none'? 'block' : 'none'; if (e.button == 2) s.position = 'absolute'; else s.position = 'relative'; if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); e.returnValue = false; e.cancelBubble = true; return false; " onselectstart="return false" ondblclick="return this.onmousedown()" oncontextmenu="return false" title="Leftclick to show full stack trace. Rightclick to do the same, but in overlapped layer." style="cursor:default; cursor:hand; padding:5px; -moz-user-select: none;" > <table cellpadding="0" cellspacing="0" border="0"> <tr><td bgcolor="white" style="font: 10px Arial; line-height:7px; padding-left:1px; border:1px solid #000000">+</td></tr> </table> </td> <td style="font-size:14px" width="100%"> <b>E_NOTICE[8]:</b> Undefined index:  rid at <b>~/utils/widgetsEveryWhere.php</b> line <b>51</b> &nbsp; <br /> <div id="a4c8129e821461" style="color:black; background:#EEEEEE; display:none; border-style:dashed; border-width:1; margin-left:0; padding-left:5"> <span title= "" > <i>in</i> <b>~/utils/widgetsEveryWhere.php</b> <i>line</i> <b>51</b> </span> <br /> </div> </td> </tr></table>s = '';
s+='<style>div.widgetCalendar { border: 1px solid #888; font-size: 10px; font-family: arial; padding: 3px; clear:left; width: 98%; z-index: 10000000; display: none;}div.widgetCalendar .dayH { width: 14%; float: left; text-align: center; padding-top: 1px;}div.widgetCalendar .day { display: block; width: 15px; text-align: right;}div.widgetCalendar .monthTab { font-size: 11px; margin: 0px 0px 5px 0px; width: 50%; clear: none; float: left;}div.widgetCalendar .monthSlide { color: #000; font-weight: bold;}div.widgetCalendar .day:hover,div.widgetCalendar .monthSlide:hover { background-color:#d8dfea; cursor: pointer;}div.widgetCalendar .curr { font-weight: bolder; background-color: #D5D5D5; }div.widgetCalendar .nonM { color: #eee;}div.widgetCalendar .close { float:right; clear:both; padding:1px 5px 2px 5px; background-color: #666; margin: 0px; margin-top:-3px; margin-right:-3px; color: #fff; cursor: pointer; }div.widgetCalendar .monthSlide { width: 20%; float: left;}div#widgetCalendar { display: none;}</style><div id="widgetCalendar"> <div onclick="wew_calendar_hide(this)" class="close">x</div> <div class="clear"></div> <div style="text-align: center;"> <a class="monthSlide" onclick="wew_calendar_show_month(this, -1);">&lt;</a> <div class="monthTab" onclick="wew_calendar_show_month(this, 0);">September 2010</div> <a class="monthSlide" onclick="wew_calendar_show_month(this, 1);">&gt;</a> </div> <div class="month"></div></div>';
document.write(s);
<table cellpadding=1 cellspacing=0 border=0 width="100%"><tr valign="top"> <td align="center" onmousedown=" var e = event || this.arguments[0]; var s = document.getElementById('a4c8129e874ed7').style; s.display = s.display=='none'? 'block' : 'none'; if (e.button == 2) s.position = 'absolute'; else s.position = 'relative'; if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); e.returnValue = false; e.cancelBubble = true; return false; " onselectstart="return false" ondblclick="return this.onmousedown()" oncontextmenu="return false" title="Leftclick to show full stack trace. Rightclick to do the same, but in overlapped layer." style="cursor:default; cursor:hand; padding:5px; -moz-user-select: none;" > <table cellpadding="0" cellspacing="0" border="0"> <tr><td bgcolor="white" style="font: 10px Arial; line-height:7px; padding-left:1px; border:1px solid #000000">+</td></tr> </table> </td> <td style="font-size:14px" width="100%"> <b>E_NOTICE[8]:</b> Undefined index:  rid at <b>~/utils/widgetsEveryWhere.php</b> line <b>842</b> &nbsp; <br /> <div id="a4c8129e874ed7" style="color:black; background:#EEEEEE; display:none; border-style:dashed; border-width:1; margin-left:0; padding-left:5"> <span title= "" > <i>in</i> <b>~/utils/widgetsEveryWhere.php</b> <i>line</i> <b>842</b> </span> <br /> </div> </td> </tr></table>s = '';
s+='<script src="http://thisislike.com/js/ajaxquery.js"></script>';
document.write(s);
<table cellpadding=1 cellspacing=0 border=0 width="100%"><tr valign="top"> <td align="center" onmousedown=" var e = event || this.arguments[0]; var s = document.getElementById('a4c8129e8755a0').style; s.display = s.display=='none'? 'block' : 'none'; if (e.button == 2) s.position = 'absolute'; else s.position = 'relative'; if (e.preventDefault) e.preventDefault(); if (e.stopPropagation) e.stopPropagation(); e.returnValue = false; e.cancelBubble = true; return false; " onselectstart="return false" ondblclick="return this.onmousedown()" oncontextmenu="return false" title="Leftclick to show full stack trace. Rightclick to do the same, but in overlapped layer." style="cursor:default; cursor:hand; padding:5px; -moz-user-select: none;" > <table cellpadding="0" cellspacing="0" border="0"> <tr><td bgcolor="white" style="font: 10px Arial; line-height:7px; padding-left:1px; border:1px solid #000000">+</td></tr> </table> </td> <td style="font-size:14px" width="100%"> <b>E_NOTICE[8]:</b> Undefined index:  rid at <b>~/utils/widgetsEveryWhere.php</b> line <b>64</b> &nbsp; <br /> <div id="a4c8129e8755a0" style="color:black; background:#EEEEEE; display:none; border-style:dashed; border-width:1; margin-left:0; padding-left:5"> <span title= "" > <i>in</i> <b>~/utils/widgetsEveryWhere.php</b> <i>line</i> <b>64</b> </span> <br /> </div> </td> </tr></table>/*calendar funcs*/

function wew_calendar_find_holder(obj) {
    while (obj != null && obj.className.indexOf('inputContainer') == -1)
        obj = obj.parentNode;
    return wew_scan_childs(obj, 'DIV', 'widgetCalendar');
}

function wew_cal_dS(obj, value) {
    obj = wew_calendar_find_holder(obj).parentNode;
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];
        if (t.tagName == 'INPUT') t.value = value;
    }
    wew_calendar_hide(obj);
}

function wew_calendar_show_month(obj, mn) { /* mn = +-1 */
    sliderCont = obj.parentNode;
    for (var i = sliderCont.childNodes.length - 1 ; i >= 0; i--) {
        var t = sliderCont.childNodes[i];
        if (t.className == 'monthTab') {
            mntArray = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
            str = t.innerHTML;
            mnparts = str.split(" ");
            for (k = 0; k < mntArray.length; k++) 
                if (mnparts[0] == mntArray[k]) {
                    dtm = new Date(mnparts[1], k + mn, 1);
                    t.innerHTML = mntArray[dtm.getMonth()] + ' ' + dtm.getFullYear();
                }
        }
    }

    var nameOfClass = 'month';
    obj = obj.parentNode.parentNode;
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];
        if (t.className == nameOfClass) {
            dtm = [dtm.getMonth(), dtm.getFullYear()];
        
            dateF = new Date(dtm[1], dtm[0], 1);
            dateL = new Date(dtm[1], dtm[0] + 1, 1);
        
            wd = dateF.getDay() - 1;
            switch (wd){
            case -1:
                dateCRS = new Date(dtm[1], dtm[0], -5);
                break;
            default:
                dateCRS = new Date(dtm[1], dtm[0], 1 - wd);
            }
        
            var out = '<div class="clear">&#160;</div>';
            var nowDate = new Date();
            var nowDateStr = nowDate.getFullYear() + '/' + (nowDate.getMonth() + 1) + '/' + nowDate.getDate();

            while (dateCRS.getTime() <= dateL.getTime()) {
                k = 7;
                while(k-- > 0) {
                    addStyle = nowDateStr == dateCRS.getFullYear() + '/' + (dateCRS.getMonth() + 1) + '/' + dateCRS.getDate() ? 'curr' : '';
                    if (dateCRS < dateF || dateCRS >= dateL) addStyle += ' nonM';
            
                    out += '<div class="dayH"><div onclick="wew_cal_dS(this, \'' 
                        + dateCRS.getDate() + '/' + (dateCRS.getMonth() + 1) + '/' + dateCRS.getFullYear()
                        + '\')" class="day ' + addStyle + '">' + dateCRS.getDate() + '</div></div>';
                    dateCRS.setDate(dateCRS.getDate( ) + 1);
                }
                out += '<div class="clear">&#160;</div>';
            }
            t.innerHTML = out;
        }
    }
}

function wew_calendar_show(obj) {
    obj = wew_calendar_find_holder(obj);
    obj.innerHTML = document.getElementById('widgetCalendar').innerHTML;
    slideMenu = wew_scan_childs(obj, 'DIV', 'monthTab');
    wew_calendar_show_month(slideMenu, 0);
    obj.style.display = 'block';
}

function wew_calendar_hide(obj) {
    obj = wew_calendar_find_holder(obj);
    obj.innerHTML = '';
    obj.style.display = 'none';
}

/*other funcs*/

function wew_scan_childs(obj, tagName, tagClass) {
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];

        if (tagName != null && t.tagName == tagName &&
             tagClass != null && t.className == tagClass) {
            return t;
        }
        if (t.hasChildNodes() && (z = wew_scan_childs(t, tagName, tagClass)) != null)  return z;
    }
    return null;
}

function wew_openbookobj(e, tab_name, id, label) {
    if(!e) e = window.event;
    widg_obj = document.getElementById('wew_book_container');
    
    oCanvas = document.getElementsByTagName("BODY")[0];
    if (!oCanvas.scrollTop) 
        oCanvas = document.getElementsByTagName("HTML")[0];
        
    x = e.clientX + oCanvas.scrollLeft;
    y = e.clientY + oCanvas.scrollTop;

    widg_obj.style.left = x + 'px';
    widg_obj.style.top = y + 'px';
    widg_obj.style.display = 'block';
    
    /* tab select */
    if (tab_name.length) {
        menu_obj = document.getElementById('wew_menu');
        for (var i = menu_obj.childNodes.length - 1 ; i >= 0; i--) {
            var t = menu_obj.childNodes[i];
            if (t.tagName == 'DIV' && t.className.indexOf('menu-item') != -1) {
                if (t.innerHTML == tab_name) {
                    t.onclick();
                    break;
                }
            }
        }
    }
    
    /* hotel selector update */
    page_obj = document.getElementById('wew_pageContainer');
    wew_selector_findupdate(page_obj, 'hotel_tags', id, label);
}

function  wew_selector_findupdate(obj, name_Selector, id, label) {
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];
        if (t.tagName == 'DIV' && t.hasChildNodes()) {
            if (wew_selector_findupdate(t, name_Selector, id, label)) return true;
        }
        if (t.tagName == 'SELECT' && t.name == name_Selector) {
            
            var OptObj = new Option(label, 'id_' + id, true, true);
            t.options[0] = OptObj;
            return true;
        }
    }    
    return false;
}

function wew_options(obj) {
    if (obj == null)
        var obj = document.getElementById('wew_pageContainer');
    
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];
        if (t.hasChildNodes()) wew_options(t);
        if (t.tagName == 'DIV' && t.className != null && t.className.indexOf('moreOption') != -1) 
            t.style.display = 'block';
    }
}

function wew_Tabs(elm, ind) {
    var menuContainer = elm;
    while(menuContainer.className != 'menu' && menuContainer.className != 'left')
        menuContainer = menuContainer.parentNode;

    for (var i = menuContainer.childNodes.length - 1 ; i >= 0; i--) {
        var t = menuContainer.childNodes[i];
        if (t.className == 'menu-item active') t.className = 'menu-item';
    }
    document.getElementById('wew_pageContainer').innerHTML = document.getElementById('wew_page_' + ind + '_' + ).innerHTML;
    document.getElementById('wew_form').active_tab.value = ind;
    elm.className = 'menu-item active';
}

function wew_openServices() {
    GID('wew_lbContent').style.display = 'none';
    GID('wew_lbLoading').style.display = 'none';
    GID('wew_formpage').style.display = 'block';
}

function wew_ajaxLoad(command, value) {
    GID('wew_lbContent').innerHTML = value;
    GID('wew_lbContent').style.display = 'block';
    GID('wew_lbLoading').style.display = 'none';
}

function wew_lightbox() {
    GID('wew_lbContent').innerHTML = formDataEncode(document.getElementById('wew_form'));

    GID('wew_lbLoading').style.display = 'block';
    GID('wew_formpage').style.display = 'none';    
    
    var url = '/utils/widgetsupport.php?params=' + encodeURIComponent(formDataEncode(document.getElementById('wew_form')));

    queryContentExecutor(url, 'GET', formDataEncode(document.getElementById('wew_form')), 'wew_ajaxLoad', 'todo');
}

function wew_openUrl(opt, obj) {
    if (obj == null)
        var obj = document.getElementById('wew_lbOptions');
    
    for (var i = obj.childNodes.length - 1 ; i >= 0; i--) {
        var t = obj.childNodes[i];
        if (t.hasChildNodes()) if (wew_openUrl(opt, t)) return true;
        if (t.tagName == 'INPUT' && t.name == 'n' && t.checked) {
            if (opt == 'geturl') url = t.value;
            else url = t.attributes.getNamedItem('whythis').value;

            if (t.attributes.getNamedItem('post').value == '0') {
                window.open(url);
            } else {
                var simPostObj = document.createElement('form');
                simPostObj.action = url;
                simPostObj.method = 'post';
                simPostObj.target = '_blank';
                simPostObj.id = 'wew_simform_obj';
                GID('wew_postSimlator').innerHTML = '';
                GID('wew_postSimlator').appendChild(simPostObj);
                onlineFormObj = GID('wew_simform_obj');
                params = t.attributes.getNamedItem('params').value.split('&');
                for (k = 0; k < params.length; k ++) {
                    par = params[k].split('=');
                    inputObj = document.createElement('input');
                    inputObj.type  = 'hidden';
                    inputObj.name  = par[0];
                    inputObj.value = par[1];
                    onlineFormObj.appendChild(inputObj);
                }
                onlineFormObj.submit();
            }
            return true;
        }
    }
    
    return false;
}
