<font face="arial" size="2">   Although if he's really concerned about Netscape 4, he'll have to check for that and use document.layers instead...<br /><br />Peter<br /><br /></font>
                <font face="Tahoma, Arial, Sans-Serif" size="2">
                                <b>From</b>: Flįvio Gomes <a href="mailto:flavio@economisa.com.br">flavio@economisa.com.br</a><br /></font>
                <br />
                <div id="collect">blah blah blah </div>
                <br />
                <div id="result">blah blah blah </div>
                <br />Change it all to:<br /><br />function showHide(divToShow, divToHide)<br />{ document.getElementById(divToHide).style.visibility = 'hidden';<br />document.getElementById(divToShow).style.visibility = 'visible';<br />}<br /><br />SkyScanner escreveu:<br /><br />&gt; I haven't asked what kind of browser the guy was using yet. I am <br />&gt; certain, though, that javascript was NOT turned off, because the error <br />&gt; checking routine produces a confirm box:<br />&gt; <br />&gt; var fRet = confirm('Are you sure that you have all values entered <br />&gt; correctly?\n\nYOU ONLY GET ONE CHANCE TO DO THIS RIGHT !!');<br />&gt; if (fRet == false) {return;}<br />&gt; <br />&gt; which he reported seeing OK, also clicking on and making it disappear.<br />&gt; <br />&gt; The code I used to turn things on and off is rather old - its stuff I <br />&gt; just paste in, and haven't heard of a problem with it until now:<br />&gt; <br />&gt; /* Browser sensing */<br />&gt; /* Set up boolian variables to record the browser type */<br />&gt; var isNS4 = 0;<br />&gt; var isIE4 = 0;<br />&gt; var isNew = 0;<br />&gt; var docObj, styleObj, currObj<br />&gt; <br />&gt; /* Determines the browser name and browser version */<br />&gt; var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));<br />&gt; <br />&gt; /* reassign variable depending on the browser */<br />&gt; if (parseInt(navigator.appVersion &gt;= 5)) {isNew = 1}<br />&gt; else if (brow == "Netscape4")<br />&gt; {isNS4 = 1;}<br />&gt; else if (brow == "Microsoft Internet Explorer4")<br />&gt; {isIE4 = 1;}<br />&gt; <br />&gt; if (isNS4||isIE4||isNew) {<br />&gt; docObj = (isNS4) ? 'document' : 'document.all';<br />&gt; styleObj = (isNS4) ? '' : '.style';<br />&gt; }<br />&gt; <br />&gt; dom = eval(docObj + '.' + 'collect' + styleObj);<br />&gt; dom.visibility = "hidden";<br />&gt; dom = eval(docObj + '.' + 'result' + styleObj);<br />&gt; dom.visibility = "visible";<br />&gt; <br />&gt; <br />&gt; and then, later on in the body, I have my two DIVs:<br />&gt; <br />&gt; 
<div id="collect">blah blah blah </div><br />&gt; 
<div id="result">blah blah blah </div><br />&gt; <br />&gt; I hope that's enough to spot where my error is, but I would rather <br />&gt; just replace the whole lot with something bomb-proof.<br />&gt; Perhaps what Diego suggested?<br />&gt; <br />&gt; Tim in England<br />&gt; <off topic="">yes, no longer in Ireland, I am currently volunteering at <br />&gt; the Pestalozzi International Village for 3 months, then travelling in <br />&gt; Africa for the next 8 months - see my blog site <br />&gt; www.mapability.com/travel <http: travel="" www.mapability.com="">I am just <br />&gt; trying to get everything on my site 'fully automatic' before I leave - <br />&gt; hahaha is that hoping too much?! </http:></off>BR&gt;&gt; <br />&gt;<br />&gt; ----- Original Message -----<br />&gt; *From:* Peter Brunone <?xml:namespace prefix = mailto /?><mailto:peter@brunone.com><br /><mailto:javascript@latech.edu>&gt;<br />&gt; Hi Tim (not top 'o the mornin' anymore?)...<br />&gt;<br />&gt; That should work. Can you show us the actual code, and perhaps<br />&gt; share with us what kind of browser/os/etc this user is using? <br />&gt; Does he have Javascript enabled? Is there an error message, what<br />&gt; is it, etc?<br />&gt;<br />&gt; Cheers,<br />&gt;<br />&gt; Peter</mailto:javascript@latech.edu></mailto:peter@brunone.com>