var loginDialog; var registerDialog; function LoginForm(newLocation) { newLocation = (typeof newLocation == 'undefined' ? window.location.href : newLocation); return "
"; } function crLoginDialog() { if (loginDialog == null) { loginDialog = document.createElement('div'); document.body.appendChild(loginDialog); loginDialog.outerHTML = "Введите, пожалуйста, логин и пароль.
" + LoginForm() + "