var presentationSessionFormatID; var isLoaded = false; function copy_text(meintext) { if (window.clipboardData) { window.clipboardData.setData("Text", meintext); } else if (window.netscape) { netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); var clip = Components.classes['@mozilla.org/widget/clipboard;1'] .createInstance(Components.interfaces.nsIClipboard); if (!clip) return; var trans = Components.classes['@mozilla.org/widget/transferable;1'] .createInstance(Components.interfaces.nsITransferable); if (!trans) return; trans.addDataFlavor('text/unicode'); var str = new Object(); var len = new Object(); var str = Components.classes["@mozilla.org/supports-string;1"] .createInstance(Components.interfaces.nsISupportsString); var copytext=meintext; str.data=copytext; trans.setTransferData("text/unicode",str,copytext.length*2); var clipid=Components.interfaces.nsIClipboard; if (!clip) return false; clip.setData(trans,null,clipid.kGlobalClipboard); } } function copy(theField) { var tempval= document.getElementById(theField); copy_text(tempval.innerHTML); return false; } function HighlightAll(theField) { var tempval=document.getElementById(theField); tempval.focus() tempval.select() return false; } function RestoreText(theField, text) { var tempval=document.getElementById(theField); tempval.value = text; } function isIE(){ return /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent);} function pres(EventKey) { window.open("session_purchase.asp?ip_ek=" + EventKey, "presentation_control", "width=780,height=560,scrollbars=yes,resizable=no,status=no"); } function getScreenSize() { var oScreen = new Object(); switch(screen.width) { case 800: oScreen.width = 720; oScreen.height = 540; oScreen.x = 40; oScreen.y = 0; break; case 1024: oScreen.width = 944; oScreen.height = 708; oScreen.x = 40; oScreen.y = 0; break; case 1280: oScreen.width = 1269; oScreen.height = 964; oScreen.x = 0; oScreen.y = 0; break; default: oScreen.height = screen.height - 60; oScreen.width = oScreen.height * 1.33; oScreen.x = 0; oScreen.y = 0; break; } oScreen.innerWidth = 0; oScreen.innerHeight = 0; if( typeof( window.innerWidth ) == 'number' ) { //Non-IE oScreen.innerWidth = window.innerWidth; oScreen.innerHeight = window.innerHeight; } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { //IE 6+ in 'standards compliant mode' oScreen.innerWidth = document.documentElement.clientWidth; oScreen.innerHeight = document.documentElement.clientHeight; } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { //IE 4 compatible oScreen.innerWidth = document.body.clientWidth; oScreen.innerHeight = document.body.clientHeight; } return oScreen; } function openPresWindow(EventKey) { var lScreen; lScreen = getScreenSize(); window.open("http://www.instantpresenter.com/5.5/presenter/login.asp?ip_ek=" + EventKey, "presenterwindow", "width=" + lScreen.width + ",height=" + lScreen.height + ",top=" + lScreen.y + ",left=" + lScreen.x + ",titlebar=no,scrollbars=auto,resizable=yes,status=yes"); } function InstallPlugin_new() { //alert("The install will be available momentarilly. Please try back in 5 minutes. Thank you!"); MM_openBrWindow("http://" + serverWeb + "/component_download.asp?start=true","_install", "width=760,height=450,status=1,scrollbars=1"); } function OpenVideoPluginWindow() { //alert("The install will be available momentarilly. Please try back in 5 minutes. Thank you!"); MM_openBrWindow("http://" + serverWeb + "/AccountManager/Other/VideoComponentDownload.aspx?start=true","_install", "width=760,height=450,status=1"); } function openContentUpload(encEventID) { //var contentURL = "http://www.instantpresenter.com/5.5/presenter//presentation_upload.asp?ip_e=" + encEventID; var contentURL = "http://www.instantpresenter.com/AccountManager/Presentation/PresentationActiveUpload.aspx?ip_e=" + encEventID; if (window.showModalDialog) // ie { window.showModalDialog(contentURL, self, "width=400,height=200,status=1,toolbars=0"); } else { MM_openBrWindow(contentURL, "_upload", "modal,width=400,height=200,status=1"); } } function MM_openBrWindow(theURL,winName,features) { //v2.0 window.open(theURL,winName,features); } function MM_preloadImages() { //v3.0 var d=document; if(d.images) { if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length, a=MM_preloadImages.arguments; for(i=0; i < a.length; i++){ if (a[i].indexOf("#")!=0) { d.MM_p[j]=new Image; d.MM_p[j++].src=a[i]; } } } } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0; a && i < a.length && (x=a[i]) && x.oSrc;i++) { x.src=x.oSrc; } } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0 && parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n]) && d.all) x=d.all[n]; for(i=0;!x && i < d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x && d.layers && i < d.layers.length; i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //**************************************************// //*********** MEETING FUNCTIONS ********************// //**************************************************// function getFocus() { //window.focus(); } // used by file uploader function fileUploaded(filename) { //alert("fileUploaded: " + sp + filename); doCall("ip_control", "_level0.swfProxy_mc.presentation_mc.loadUploadedContent," + sp + filename); } function refreshAfterPluginInstall(loadedWin) { if (loadedWin != null) loadedWin.close(); window.location.reload(); } function noScreenSharePluginInstalled(){ hasPlugin = false; } function isValidUploadType(filename) { var dot = filename.lastIndexOf("."); var extention = filename.substr(dot + 1); var validTypes = "ppt,pps,pptx,pdf,jpg,swf,flv,wav,mp3,mpg,mpeg,avi,mov,gif,png,wmv,doc,xls"; if (validTypes.search(extention) != "-1") return true; else return false; } function RichTextEditor_AttachListener(ElementID, CounterID, Maxlength) { try { var oParent = document.getElementById(ElementID); var oElement = document.getElementById(ElementID + "$HtmlEditorExtenderBehavior_ExtenderContainer"); var oEditorContainer = document.getElementById(ElementID + '$HtmlEditorExtenderBehavior_ExtenderContentEditable'); if ((oElement != null) && (oParent != null)) { if (oParent.style.height != '') oElement.style.height = oParent.style.height; else if ((oParent.rows != '') || (oParent.rows != null)) oElement.style.height = (oParent.rows * 20) + "px"; else oElement.style.height = '100%'; oElement.style.width = oParent.style.width; oElement.CounterID = CounterID; oElement.MaxLength = Maxlength; oElement.onkeyup = function(){RichTextEditor_TextChanged(ElementID);} oElement.onmouseup = function(){RichTextEditor_TextChanged(ElementID);} oEditorContainer.style.fontSize = '10pt'; oEditorContainer.style.lineHeight = '1.2'; // The Extender doesn't bother to check to see if the control can accept focus before it calls it, so kill it oEditorContainer.focus = function() { return true; }; // In some cases, the parent is not hidden. Hide it here. if (oParent.style.display == '') { oParent.style.display = 'none'; oEditorContainer.style.height = '85%'; } } } catch(ex) { alert('Error: RichTextEditor_AttachListener - ' + ex.Message); } } function RichTextEditor_TextChanged(ElementID) { try { var oElement = document.getElementById(ElementID + "$HtmlEditorExtenderBehavior_ExtenderContainer"); var iLength = parseInt(document.getElementById(ElementID + "$HtmlEditorExtenderBehavior_ExtenderContentEditable").innerHTML.length); var oCounter = document.getElementById(oElement.CounterID); oCounter.innerHTML = iLength; if (iLength > oElement.MaxLength) oCounter.style.color = "red"; else oCounter.style.color = "#636563"; } catch(ex) { alert('Error: RichTextEditor_TextChanged - ' + ex.Message); } } function RichTextEditor_Validate(sender, args) { if (args.Value.toLowerCase().indexOf(' -1) args.IsValid = false; else if (args.Value.toLowerCase().indexOf(' -1) args.IsValid = false; else if (args.Value.toLowerCase().indexOf(' -1) args.IsValid = false; else if (args.Value.toLowerCase().indexOf(' -1) args.IsValid = false; else args.IsValid = true; }