\n'); } //--> var previewPopupWindow = ''; var argumentsArray; function launchpopup( winurl, winname, winfeatures ) { if ( !previewPopupWindow.closed && previewPopupWindow.location ) previewPopupWindow.close(); previewPopupWindow = window.open( "preview.html", winname, winfeatures ); previewPopupWindow.document.images['previewPic'].src = winurl; if ( javascript_version > 1.0 ) { //delay a bit here because IE4 encounters errors //when trying to focus a recently opened window setTimeout( 'previewPopupWindow.focus();' ,250 ); } } function openNewWindow() { strTitle = argumentsArray[0]; strType = argumentsArray[1]; strWidth = argumentsArray[2]; strHeight = argumentsArray[3]; strMedia = argumentsArray[4]; strOnlyWinWidth = argumentsArray[5]; strOnlyWinHeight = argumentsArray[6]; if ( strOnlyWinWidth == "" ) strOnlyWinWidth = strWidth; if ( strOnlyWinHeight == "" ) strOnlyWinHeight = strHeight; htmlText = "\n
\n" + "\n