function passToIframe() { theGet = location.href.split("?"); if (!document.getElementById) return false; theIframe = document.getElementById("pass"); if (theGet[1]) { if(/\?/.test(theIframe.src)) { theIframe.src = theIframe.src + "&" + theGet[1]; } else { theIframe.src = theIframe.src + "?" + theGet[1]; } } return false; }