function showSignin() { if (document.getElementById('oid_hidden') !== undefined) { document.getElementById('oid_hidden').id = 'oid_wrapper'; } } function hideSignin() { if (document.getElementById('oid_wrapper') !== undefined) { document.getElementById('oid_wrapper').id = 'oid_hidden'; } } function createSignin() { var div = document.createElement('div'); var content = '
'; div.innerHTML = content; document.body.appendChild(div.firstChild); }