// ---------------------------------------------- // This function dynamically generates flash file // parameters. // ----------------------------------------------- function viewFlash(src, w, h, loop, play) { var width = parseInt(w); var height = parseInt(h); //alert('adWidth = '+width+ '\n Height = '+height); eval("win = window.open('','Flash', 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width="+width+",height="+height+"');"); win.document.writeln(''); win.document.writeln('Flash Movie'); win.document.writeln(''); // for IE users use tag objectTag = ''); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); // for Netscape users use tag win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); } // ---------------------------------------------- // This function dynamically generates a chat // pop-up. (ASV) // ----------------------------------------------- function viewChat(instance_id, url) { props = 'toolbar=0,scrollbars=0,location=0,status=0,resizable=1,menubar=0,width=584,height=410'; win = window.open('','Chat',props); win.document.writeln(''); win.document.writeln('Chat Room'); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); win.document.writeln(''); } //---------------------------------------------------- // Create a new pop up window for a given URL and type //---------------------------------------------------- function popUp(URL, type) { switch(type) { case "guestbook": width = 675; height = 500; break; case "forum": width = 675; height = 500; break; default: width = 550; height = 580; } var token = URL.indexOf('?') > -1 ? '&' : '?'; uniqueId = genUniqueId(); URL=URL+genUniqueParam(token); var leftPosition = (screen.width - width - 20) / 2; var topPosition = (screen.height - height) / 4; //open centered eval("win = window.open(URL, '"+type+"', 'toolbar=0,scrollbars=1,location=0,status=1,resizable=1,menubar=0,width="+width+",height="+height+",left="+leftPosition+",top="+topPosition+"');"); if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); } } // ---------------------- // Generate Unique Id // ---------------------- function genUniqueId() { day = new Date(); return day.getTime(); } // ------------------------------------------------- // Generate Unique parameter to be appended to the URL // This will allow us to realod the HTML from the server // ------------------------------------------------- function genUniqueParam(parameter) { return parameter+'unique_id='+genUniqueId(); } // // Display the target image for this thumbnail // function displayThumb(src, width, height, title) { var winWidth = 650; var winHeight = 510; eval("win = window.open('','Thumb', 'toolbar=0,scrollbars=1,location=0,status=0,resizable=1,menubar=0,width="+winWidth+",height="+winHeight+"');"); // clear the content of the document win.document.open(); win.document.writeln(''); if(null != title && title != "") { win.document.writeln('' + title + ''); } else { win.document.writeln('Thumbnail Image'); } win.document.writeln(''); win.document.writeln('
'); if (width == 0) { win.document.writeln(''); } else if (height == 0) { win.document.writeln(''); } else { win.document.writeln(''); } if(null != title && title != "") { win.document.writeln(''); } win.document.writeln('
'+title+'
'); win.document.writeln(''); }