//all methods and vars prefixed with "florcomments_" function florComments_open(regID,withparams,url) { if (withparams == null) withparams = 1; if (withparams) { wd = (window.florComments_width)? florComments_width: 340; ht = (window.florComments_height)? florComments_height: 500; //implement min width and height if (wd<340) wd = 340; if (ht<220) ht=220; refUrl = escape(location.href); tl = escape(document.title); px = (window.florComments_prefix)? escape(florComments_prefix):""; sx = (window.florComments_suffix)? escape(florComments_suffix):""; if (window.florComments_allowBigEd) bigEd = (window.florComments_allowBigEd==1)? 1:0; else bigEd = 0; if (window.florComments_allowHTMLview) allowHTML = (window.florComments_allowHTMLview==1)? 1:0; else allowHTML = 0; if (window.florComments_sortDescending) sdesc = (window.florComments_sortDescending=="1")? 1:0; else sdesc = 0; if (window.florComments_allowCodeInComments) aCode = (window.florComments_allowCodeInComments=="yes")? "yes":""; else aCode = ""; if (window.florComments_paging) pg = (window.florComments_paging=="1")? 1: 0; else pg = 0; pgSz = (window.florComments_pageSize)? parseInt(florComments_pageSize):15; var newWdw = window.open("http://cmt.floresense.com/cmt.php?ride="+regID+ "&url="+refUrl+"&pt="+tl+"&px="+px+"&sx="+sx+"&wd="+wd+ "&code="+aCode+"&pg="+pg+"&sdesc="+sdesc+"&psz="+pgSz+ "&bige="+bigEd+"&ahtml="+allowHTML, 'cmtWindow','directories=no,location=no,menubar=no,status=no,toolbar=no'+ ','+'scrollbars=yes,width='+wd+',height='+ht+',resizable=0,'+ 'left='+(screen.width - wd)/2+',top='+(screen.height - ht)/2+ 'screenX='+(screen.width - wd)/2+',screenY='+(screen.height - ht)/2); if (!newWdw) alert("Window blocked.\nYour browser seems to have a popup blocker, if so\n"+ "> Either allow popups from this page temporarily or permanently,\n"+ "> or, press ctrl key while pressing the link."); } else { wd = screen.width; ht=screen.height; var newWdw = window.open(url,'newwdw','directories=yes,location=yes,menubar=yes,status=yes,toolbar=yes'+ ','+'scrollbars=yes,screenX=0,screenY=0,left=0,top=0,resizable=1,'+ 'width='+screen.width+',height='+screen.height); if (!newWdw) alert("Window blocked.\n\nYour browser seems to have a popup blocker, if so\n"+ "> Either allow popups from this page temporarily or permanently,\n"+ "> or, press ctrl key while pressing the link."); } }