function checkFunctions() { var getURL = document.location.href; //alert(getURL); var urlparts = getURL.split('?'); //alert(urlparts); var host = urlparts[1]; //alert(host); if (host == undefined) { //alert('nothing!'); showObject(); } else { //alert('we got something'); hideObject(); } } function showObject() { document.all['n1'].style.visibility = "visible"; u=setTimeout("hideObject()",20000); } function hideObject() { document.all['n1'].style.visibility = "hidden"; }