function rwdredirectcal(EmbedCalEvent, DateofToday){ top.location.href=window.location.href.split('?')[0] + "?plugin=RWD&Templates=RWD&object=" + EmbedCalEvent + "&infobar=no&ConfPosition=2&Date="+ DateofToday + '&VD=' + DateofToday; return false; } function rwdprint(obj) { URL=obj; var pwidth=500; var pheight=560; var left = ( screen.width - pwidth ) / 2; var top = ( screen.height - pheight ) / 2; window.open(URL,'','width='+pwidth+',height='+pheight+',scrollbars=yes,toolbars=no,left='+left+',top='+top); return false; } function rwd_cal_print(obj, w, h){ URL=obj; var pwidth=w; var pheight=h; var left = ( screen.width - pwidth ) / 2; var top = ( screen.height - pheight ) / 2; window.open(URL,'','width='+pwidth+',height='+pheight+',scrollbars=yes,toolbars=no,left='+left+',top='+top); return false; } /** vvv **/ var bustcachevar=1; //bust potential caching of external pages after initial request? (1=yes, 0=no) var loadedobjects=""; var rootdomain="http://"+window.location.hostname; //var bustcacheparameter=""; function GetAnotherCal(url, containerid){ var page_request = false; if (window.XMLHttpRequest) // if Mozilla, Safari etc page_request = new XMLHttpRequest(); else if (window.ActiveXObject){ // if IE try { page_request = new ActiveXObject("Msxml2.XMLHTTP"); } catch (e){ try{ page_request = new ActiveXObject("Microsoft.XMLHTTP"); } catch (e){} } } else return false page_request.onreadystatechange=function(){ loadpage(page_request, containerid) } //if (bustcachevar) //if bust caching of external page //bustcacheparameter=(url.indexOf("?")!=-1)? "&"+new Date().getTime() : "?"+new Date().getTime(); //page_request.open('GET', url+bustcacheparameter, true); page_request.open('GET', url, true); page_request.send(null); } function loadpage(page_request, containerid){ if (page_request.readyState == 4 && page_request.status==200) document.getElementById(containerid).innerHTML=page_request.responseText; } function loadobjs(){ if (!document.getElementById) return for (i=0; i0){ for (i=1;i<=MaxImgNum;i++){ theimgid='graImg'+i; captionid='graImgCap'+i; if (theimgid==null || !document.getElementById(theimgid)){continue;} imgwidth = document.getElementById(theimgid).width; imgheight = document.getElementById(theimgid).height; if (changeto=='smaller'){ imgwidth = eval(imgwidth*2/3); imgheight = eval(imgheight*2/3); document.getElementById(captionid).style.fontSize=eval(fontsizeto*2/3) + 'px'; } if (changeto=='larger'){ imgwidth = eval(imgwidth*3/2); imgheight = eval(imgheight*3/2); document.getElementById(captionid).style.fontSize=fontsizeto + 'px'; } document.getElementById(theimgid).style.width = imgwidth + "px"; document.getElementById(theimgid).style.height = imgheight + "px"; } } } function show_hide_toggle(id, status){ // added at 2009.2.5 // status has to be a string either "none" or "block" // show_hide_toggle("cellid", "none") // id is the id of the object document.getElementById(id).style.display=status; } function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //function silentErrorHandler() {return true;} //window.onerror=silentErrorHandler; function load2rwdpart(resultid, url){ $(document).ready(function() { $.ajaxSetup ({ cache: false }); $(resultid).load(url) }); } function get_browser_dimention(){ var myWidth; var myHeight; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE myWidth = window.innerWidth; myHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible myWidth = document.body.clientWidth; myHeight = document.body.clientHeight; } return {browserwidth:myWidth, browserheight:myHeight}; }