var dWidth, dHeight, dTop, dLeft, dStart, popupHTML, popupMessageHTML, dialogProps = "dialogHeight: " + (dHeight + 25) + "px; dialogWidth: " + (dWidth + 7) + "px; dialogTop: " + (dTop - 25) + "px; dialogLeft: " + (dLeft - 7) + "px; edge: Raised; center: Yes; help: No; resizable: No; status: No;", blnCreatePopup = window.createPopup ? true : false, objPopup, popupStandby = true, popupTitle, headTag = "<head>", headDisableImageToolbar = '<meta http-equiv="imagetoolbar" content="no" />', headEndTag = "</head>";
if (navigator.appName == "Microsoft Internet Explorer") blnCreatePopup = false; var url = location.pathname, _Root = "http://" + window.location.hostname; function DisableContextMenu() { } function GetRoot() { _Root = "http://" + window.location.hostname; return "" } function ShowUserMessageWithTitle(a, b) { } function ShowUserMessage(a) { ShowUserMessageWithTitle(a, "") }
function SendEmailPhoto(a, b) { a = GetRoot() + "/ui/forms/users/photos/SendPhotoEmail.aspx?PhotoDiscoId=" + a + "&PhotoURL=" + b; window.open(a, "SendEmailPhoto", "height=280,width=420,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,modal=yes,center=yes,help=no") } function SendToCellphone(a) { window.open("http://mobile.arto.dk/section/mobileimage/?Customer=B15F260D-DF71-4A36-BCCC-A3E6B8DCE7EC&Image=" + a, "FreewayMobilePicture", "status=no,toolbar=no,menubar=no,location=no") }
function SendToCellphoneTest(a) { window.open("http://crashsite.arto.dk/section/mobileimage/?Customer=FF884FC6-50E1-4802-AB35-8014423247C6&Image=http://data02.media.dkbn.dk/Storage/Discos/834013d1-9755-4350-b46e-9ba5a15938c6/21273/dkbn/632970933604048652.jpg", "ArtoMobilePicture", "status=no,toolbar=no,menubar=no,location=no") }
function UpdateUserComment(a) { if (window.showModalDialog) window.showModalDialog(GetRoot() + "/ui/forms/users/photos/EditUserComment.aspx?", window, "dialogHeight: 213px; dialogWidth: 343px; dialogTop: px; dialogLeft: px; edge: Sunken; center: Yes; help: No; resizable: No; status: No;"); else window.open(GetRoot() + "/ui/forms/users/photos/EditUserComment.aspx?", "modal", "height=213,width=343,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,modal=yes,center=yes").dialogArguments = window }
function SendFlirt(a, b) { win = window.open(GetRoot() + "/ui/forms/users/flirts/SendFlirt.aspx?UserID=" + a + "&Username=" + b, "", "height=167,width=338,toolbar=no,directories=no,status=no, menubar=no,scrollbars=no,resizable=no,modal=yes,center=yes,help=no") }
function showPopup() { popupStandby = false; dStart += dHeight / 15; if (dStart < dHeight) oPopupMessage.show(screen.width - dWidth, screen.availHeight - dStart - 1, dWidth, dStart); else { window.clearInterval(popupInt); window.setTimeout("hidingPopup()", 4E3); oPopupMessage.show(screen.width - dWidth, screen.availHeight - dHeight - 1, dWidth, dHeight); popupStandby = true } }
function hidePopup() { popupStandby = false; dStart -= dHeight / 15; if (dStart > 0) oPopupMessage.show(screen.width - dWidth, screen.availHeight - dStart - 1, dWidth, dStart); else { window.clearInterval(popupInt); oPopupMessage.hide(); popupStandby = true } } function hidingPopup() { if (popupStandby && oPopupMessage.isOpen) { dStart = dHeight; popupInt = window.setInterval("hidePopup()", 35); popupStandby = false } }
function ShowDisclaimer() { window.open(GetRoot() + "/ui/forms/guests/disclaimer.aspx", "Disclaimer", "width=640, height=700, scrollbars=yes, centerScreen") } function ShowPrivacyPolicy() { window.open(GetRoot() + "/ui/forms/guests/privacypolicy.aspx", "Privacy Policy", "width=640, height=700, scrollbars=yes, centerScreen") }
function PopConfirmBox(a, b, c) { window.open(GetRoot() + "/ui/forms/ConfirmBoxTemplate.aspx?type=" + a + "&Title=" + b + "&Info=" + c, "DKBN :: Danmarks l\u00e6kreste community for natteliv!", "width=320, height=200, scrollbars=no") }
function PopPortraitInstructions() { var a = (screen.width - 500) / 2, b = (screen.height - 320) / 2; if (a < 0) a = 0; if (b < 0) b = 0; a = "width=" + (500).toString() + ", height=" + (320).toString() + "; left=" + a.toString() + ", top=" + b.toString() + ", scrollbars=yes"; window.open(GetRoot() + "/ui/forms/users/info/portraitinstructions.aspx", "", a) } function ShowSendMessage(a, b) { window.open(GetRoot() + "/ui/forms/users/mail/composemessage.aspx?UserID=" + a + "&DialogID=" + b, "SendMail", "width=950, height=460; scrollbars=yes") }
function ShowDeleteProfilePhoto(a) { window.open(GetRoot() + "/ui/forms/admins/users/DeleteProfilePhoto.aspx?UserID=" + a, "DeletePP", "width=660, height=460; scrollbars=yes") } var showprof = null; function ShowProfile(a, b) { ShowProfileTopList(a, b, true) } function ShowProfileTopList(a, b, c) { a = GetRoot() + "/ui/forms/users/showuserV2.aspx?UserID=" + a + "&IgnoreInTopList=" + c + "&Increase=" + b; window.location.href = a }
function ShowProfileTopListOpener(a, b, c) { window.opener.location.href = _Root + "/ui/forms/users/showuserV2.aspx?UserID=" + a + "&IgnoreInTopList=" + c + "&Increase=" + b; window.blur() }
function ShowGuestBookV3(a) { var b = (screen.width - 920) / 2, c = (screen.height - 665) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (920).toString() + ", height=" + (665).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); a = GetRoot() + "/ui/forms/users/GuestBook/GuestBookV3.aspx?UserID=" + a; if (window.name == "Profile") window.location.href = a; else showprof = window.open(a, "Profile", b) } function ShowPhotoUserAlbum(a, b) { ShowPhotoUserAlbumOpenPhoto(a, b, 0) }
function ShowPhotoUserAlbumOpenPhoto(a, b, c) { a = GetRoot() + "/ui/forms/users/photos/AlbumPhotosV2.aspx?UserID=" + a + "&origin=3&PhotoAlbumID=" + b; if (c != 0) a += "&PhotoUserId=" + c; window.location.href = a }
function ShowEditIndex(a) { var b = (screen.width - 802) / 2, c = (screen.height - 650) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (802).toString() + ", height=" + (650).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); showprof = window.open(GetRoot() + "/ui/forms/admins/users/EditPersonalDiscoPhotos.aspx?UserID=" + a, "Profile", b) }
function ShowEditAlbumPhotos(a) { var b = (screen.width - 802) / 2, c = (screen.height - 650) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (802).toString() + ", height=" + (650).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); showprof = window.open(GetRoot() + "/ui/forms/admins/users/EditPhotoAlbums.aspx?UserID=" + a, "Profile", b) }
function ShowDeleteFavouritePhotos(a) { var b = (screen.width - 802) / 2, c = (screen.height - 650) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (802).toString() + ", height=" + (650).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); showprof = window.open(GetRoot() + "/ui/forms/admins/users/DeleteFavouritePhotoDiscos.aspx?UserID=" + a, "Profile", b) }
function ShowRemoveFavouritePhotoTags(a) { var b = (screen.width - 802) / 2, c = (screen.height - 650) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (802).toString() + ", height=" + (650).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); showprof = window.open(GetRoot() + "/ui/forms/admins/users/RemoveFromFavourites.aspx?UserID=" + a, "Profile", b) }
function ShowCropAlbumPhotos(a) { var b = (screen.width - 802) / 2, c = (screen.height - 650) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (802).toString() + ", height=" + (650).toString() + "; left=" + b.toString() + ", top=" + c.toString() + ", scrollbars=yes"; showprof != null && showprof.close(); showprof = window.open(GetRoot() + "/ui/forms/admins/users/CropPhotoAlbums.aspx?UserID=" + a, "Profile", b) }
function ShowCropPhoto(a, b, c, d, e) { var f = (screen.width - d) / 2, g = (screen.height - e) / 2; if (f < 0) f = 0; if (g < 0) g = 0; d = "left=" + f + ", top=" + g + ", width=" + d + ", height=" + e + ", status=no, resizable=no, scrollbars=no"; window.open(GetRoot() + "/ui/forms/admins/users/CropUserPhotoV2.aspx?OriginalUrl=" + c + "&PhotoUserID=" + b + "&UserShownID=" + a, "", d) }
function ShowSessionPhoto(a) { window.open(GetRoot() + "/ui/forms/users/photos/ShowSessionPhoto.aspx?PhotoDiscoID=" + a, "", "width=1020, height=700, status=no, resizable=no, scrollbars=yes, location=no, titlebar=yes") } function ShowSessionPhoto(a, b) { window.open(GetRoot() + "/ui/forms/users/photos/ShowSessionPhoto.aspx?PhotoDiscoID=" + a, "", "width=1020, height=700, status=no, resizable=no, scrollbars=yes, location=no, titlebar=yes") }
function ShowSessionPhotoDiscoComment(a, b) { window.open(GetRoot() + "/ui/forms/users/photos/ShowSessionPhoto.aspx?PhotoDiscoID=" + a + "&PhotoDiscoCommentId=" + b, "", "width=1020, height=700, status=no, resizable=no, scrollbars=yes, location=no, titlebar=yes") } function ShowLookPhoto(a, b) { window.open(GetRoot() + "/ui/forms/users/look/ShowLookPhoto.aspx?VoteCandidateID=" + a + "&IsMale=" + b + "&IsArchive=false", "", "width=650, height=700, status=no, resizable=no, scrollbars=no, location=no, titlebar=yes") }
function ShowLookArchivePhoto(a, b, c, d) { window.open(GetRoot() + "/ui/forms/users/look/ShowLookPhoto.aspx?VoteCandidateID=" + a + "&IsMale=" + b + "&IsArchive=true&WeekNr=" + c + "&Year=" + d, "", "width=650, height=700, status=no, resizable=no, scrollbars=no, location=no, titlebar=yes") } function ShowBadValidatedPhotoDiscos(a) { window.open(GetRoot() + "/ui/forms/photographers/BadValidatedPhotoDiscos.aspx?PhotoSessionRatingID=" + a, "", "width=980, height=680, status=no, resizable=no, scrollbars=yes") }
function ShowSessionPhotoNoViewCount(a) { var b = "width=1000, height=720, status=no, resizable=no, scrollbars=yes"; location.href = GetRoot() + "/ui/forms/users/photos/ShowSessionPhoto.aspx?PhotoDiscoID=" + a + "&NoViewCount=true" } function PopAlbumPhoto(a) { window.open(a, "Profile", "width=920, height=800, status=no, resizable=no, scrollbars=yes") } function PopAlbumPhotoLB(a) { window.open(a, "", "width=840, height=720, status=no, resizable=no, scrollbars=yes") }
function PopShowUserUrl(a) { var b = (screen.width - 920) / 2, c = (screen.height - 665) / 2; if (b < 0) b = 0; if (c < 0) c = 0; b = "width=" + (920).toString() + ", height=" + (665).toString() + ", left=" + b.toString() + ", top=" + c.toString() + ", resizable=no, scrollbars=yes"; window.open(a, "", b) } function ShowCreateCandidate(a) { window.open(GetRoot() + "/ui/forms/admins/look/CreateLookCandidate.aspx?PhotoDiscoID=" + a, "", "width=1000, height=600") } function ShowPhotoAlbum(a) { }
function ShowPhotoAlbums(a) { document.location.href = GetRoot() + "/ui/forms/users/photos/PhotoAlbums.aspx?UserID=" + a } function ShowFavouritePhotos(a) { document.location.href = GetRoot() + "/ui/forms/users/photos/FavouriteDiscoPhotos.aspx?UserID=" + a } function ShowPersonalPhotos(a) { document.location.href = GetRoot() + "/ui/forms/users/photos/PersonalDiscoPhotos.aspx?UserID=" + a }
function ShowFavouriteDiscoPhoto(a, b) { window.open(GetRoot() + "/ui/forms/users/photos/ShowFavouriteDiscoPhoto.aspx?Mode=2&PhotoDiscoFavouriteID=" + b + "&FavouriteUserID=" + a, "", "width=1020, height=780, status=yes, scrollbars=yes") } function LoginAsDisco(a) { window.open(GetRoot() + "/ui/forms/admins/discos/autologin.aspx?DiscoID=" + a, "", "width=900, height=600, status=yes resizable=yes scrollbars=yes") }
function ShowUserPhoto(a, b, c) { var d = (screen.width - b) / 2, e = (screen.height - c) / 2; if (d < 0) d = 0; if (e < 0) e = 0; b = "left=" + d.toString() + ", top=" + e.toString() + ", width=" + b + ", height=" + c + ", status=no, resizable=yes, scrollbars=no"; window.open(GetRoot() + "/ui/forms/users/photos/EditUserPhoto.aspx?PhotoUserID=" + a, "UserPhoto", b) }
function ShowPhoto(a, b, c, d) {
    a = "PopCustomWindow('" + a + "' , 200, 80, true, false, false, false);"; var e = (screen.width - c) / 2, f = (screen.height - d) / 2; if (e < 0) e = 0; if (f < 0) f = 0; c = "left=" + e.toString() + ", top=" + f.toString() + ", width=" + c + ", height=" + d + ", status=no, resizable=no, scrollbars=no"; d = " <script type=\"text/javascript\">function PopCustomWindow(url, width, height, centerScreen, resizable, showStatusBar, scrollbars) { var sFeatures = 'width='+width+', height='+height+','; sFeatures += (scrollbars == true) ? 'scrollbars=yes,' : 'scrollbars=no,';sFeatures +=(showStatusBar == true) ? 'status=yes,' : 'status=no,';sFeatures += (resizable == true) ?  'resizable=yes,' : 'resizable=no,';if(centerScreen == true){var ofsX = (screen.width - width) / 2;var ofsY = (screen.height - height) / 2;if ( ofsX < 0 )ofsX = 0;if ( ofsY < 0 )\t        ofsY = 0;sFeatures += 'left='+ofsX+', top='+ofsY+';';}window.open(url, \"popwindow\", sFeatures ); }document.oncontextmenu = function(){ " +
a + "} ;<\/script>"; a = "<script type=\"text/javascript\">function PopCustomWindow(url, width, height, centerScreen, resizable, showStatusBar, scrollbars) { var sFeatures = 'width='+width+', height='+height+','; sFeatures += (scrollbars == true) ? 'scrollbars=yes,' : 'scrollbars=no,';sFeatures +=(showStatusBar == true) ? 'status=yes,' : 'status=no,';sFeatures += (resizable == true) ?  'resizable=yes,' : 'resizable=no,';if(centerScreen == true){var ofsX = (screen.width - width) / 2;var ofsY = (screen.height - height) / 2;if ( ofsX < 0 )ofsX = 0;if ( ofsY < 0 )\t        ofsY = 0;sFeatures += 'left='+ofsX+', top='+ofsY+';';}window.open(url, \"popwindow\", sFeatures ); }function right(e) { if(navigator.appName == 'Microsoft Internet Explorer' &&  (event.button == 2 || event.button == 3)) { " +
a + " ;} else return true; } document.onmousedown=right;document.onmouseup=right; if (document.layers) window.captureEvents(Event.MOUSEDOWN);if (document.layers)window.captureEvents(Event.MOUSEUP);window.onmousedown=right;window.onmouseup=right;DisableContextMenu();<\/script>"; a = navigator.appName == "Microsoft Internet Explorer" ? headTag + headDisableImageToolbar + a + headEndTag : headTag + d + headEndTag; win = window.open("", "UserPhoto", c); win.document.open(); win.document.writeln("<html>" + a + '<body TopMargin="0" LeftMargin="0"><img style="cursor: pointer;" onClick=\'javascript:window.close();\' src=\'' +
b + "'></body></html>")
} function ShowPhotoSimple(a, b, c) { var d = (screen.width - b) / 2, e = (screen.height - c) / 2; if (d < 0) d = 0; if (e < 0) e = 0; b = "width=" + b + ", height=" + c; b += ",left=" + d + ", top=" + e + ","; b += ",scrollbars=yes;"; winObj = window.open("", "PhotoSimple", b); winObj.document.open(); winObj.document.writeln('<html><body style="margin: 0px;"><img style="cursor: pointer;" onClick=\'javascript:window.close();\' src=\'' + a + "'></img></body></html>"); winObj.document.close() }
function ShowEditDiscoPhoto(a, b, c) { var d = (screen.width - b) / 2, e = (screen.height - c) / 2; if (d < 0) d = 0; if (e < 0) e = 0; b = "left=" + d + ", top=" + e + ", width=" + b + ", height=" + c + ", status=no, resizable=no, scrollbars=no"; window.open(GetRoot() + "/ui/forms/users/photos/EditDiscoPhoto.aspx?PhotoDiscoID=" + a, "", b) } function ShowCreatePortrait(a, b, c) { ShowCreatePortraitWindow(a, b, c, true) }
function ShowCreatePortraitWindow(a, b, c, d) { var e = (screen.width - b) / 2, f = (screen.height - c) / 2; if (e < 0) e = 0; if (f < 0) f = 0; b = "left=" + e + ", top=" + f + ", width=" + b + ", height=" + c + ", status=no, resizable=no, scrollbars=no"; a = GetRoot() + "/ui/forms/users/photos/CreatePortrait.aspx?OriginalUrl=" + a; if (d == true) window.open(a, "", b); else window.location.href = a }
function ShowPersonalUserPhoto(a, b) { window.open(GetRoot() + "/ui/forms/users/photos/ShowPersonalUserPhoto.aspx?Mode=4&UserID=" + a + "&PhotoTagID=" + b, "", "width=1000, height=780, status=false,scrollbars=yes") } function ShowPersonalDiscoPhoto(a, b) { window.open(GetRoot() + "/ui/forms/users/photos/ShowPersonalDiscoPhoto.aspx?Mode=1&UserID=" + a + "&PhotoTagID=" + b, "", "width=1000, height=780, status=false,scrollbars=yes") }
function ShowAddPhotographerToRating(a, b) { window.open(GetRoot() + "/ui/forms/admins/photographers/AddPhotographerToRating.aspx?PhotoSessionPhotographerID=" + a + "&PhotoSessionID=" + b, "", "width=520, height=400, status=false") } function ShowAddNote(a, b) { window.open(GetRoot() + "/ui/forms/admins/photographers/AddPhotographerSessionNote.aspx?PhotoSessionPhotographerID=" + a + "&NoteID=" + b, "", "width=350, height=250, status=false") }
function ShowSomeUrl(a) { window.open(a, "", "width=680, height=500, status=yes, scrollbars=yes, resizable=no") } function ShowSomeUrlLarge(a) { window.open(a, "", "width=820, height=600, status=yes, scrollbars=yes, resizable=no") } function ShowVideoPopup(a) { window.open(a, "", "width=860, height=590, status=yes, scrollbars=yes, resizable=no") } function ShowActivateCode(a) { window.open(a, "", "width=680, height=500, status=yes, scrollbars=no resizable=no") }
function ClosePopupOnNotLoggedIn() { window.opener.location.href = GetRoot() + "/UI/Forms/Guests/Frontpage.aspx?Msg=SessionEnded"; window.close() } function ClosePopup() { window.opener.location.href = window.opener.location.href; window.close() } function ShowEventRegistrations(a) { window.opener.location.href = GetRoot() + "/UI/Forms/Users/Events/EventRegistrations.aspx?DiscoEventID=" + a; window.opener.focus() }
function ShowDiscoNightRegistrations(a) { window.opener.location.href = GetRoot() + "/UI/Forms/Users/Calendar/DiscoNightRegistrations.aspx?DiscoNightID=" + a; window.opener.focus() } function ShowUserNightRegistrations(a) { window.opener.location.href = GetRoot() + "/UI/Forms/Users/Calendar/UserNightRegistrations.aspx?UserNightID=" + a; window.opener.focus() }
function ShowUserDiscoPhotos(a) { a = GetRoot() + "/ui/forms/users/photos/UserPhotos.aspx?UserID=" + a; if (this.opener != null) location.href = a; else window.open(a, "", "width=780, height=700") } function ShowDisco(a, b) { a = GetRoot() + "/ui/forms/users/discos/ShowDisco.aspx?DiscoID=" + a + "&Mode=" + b; if (this.opener != null) window.opener.location.href = a; else location.href = a }
function ShowDiscoFocus(a, b, c) { a = GetRoot() + "/ui/forms/users/discos/ShowDisco.aspx?DiscoID=" + a + "&Mode=" + b + "&ModeID=" + c + "#aevent" + c; if (this.opener != null) { window.opener.location.href = a; window.opener.focus() } else location.href = a } function ShowMailView(a) { if (this.opener != null) location.href = a; else window.open(a, "", "width=970, height=520, scrollbars=yes") } function ShowSupportView(a) { window.open(a, "", "width=510, height=450, status=yes, resizable=no, scrollbars=yes") }
function ShowFriendApplication(a) { var b = "width=320, height=120, status=yes, resizable=no, scrollbars=no", c = (screen.width - 320) / 2, d = (screen.height - 120) / 2; if (c < 0) c = 0; if (d < 0) d = 0; b += ", left=" + c + ", top=" + d + ";"; window.open(a, "", b) } var imageobject = null, trycount = 0; function ShowUrlFocus(a) { window.opener.location.href = a; window.opener.focus() } function ShowEventFlyer(a) { ShowEventFlyerOnLoad(a, "") }
function ShowEventFlyerOnLoad(a, b) { popupTitle = b; imageobject = new Image; imageobject.onload = ResizeEventFlyerWindow; imageobject.src = a } function ResizeEventFlyerWindow() { var a = "dkbn.local"; a = this.width; var b = this.height, c = (screen.height - b) / 2; c = "left=" + ((screen.width - a) / 2).toString() + ", top=" + c.toString() + ",resizable=no, status=no, scrollbars=no"; window.open(GetRoot() + "/ui/forms/users/Discos/ShowEventFlyer.aspx?imgUrl=" + this.src + "&winwidth=" + a + "&winheight=" + b, "", c) }
function showValidationNote(a) { a = GetRoot() + "/ui/forms/photographers/ShowValidationText.aspx?text=" + a; window.open(a, "", "width=400, height=250; scrollbars=yes") } function showSomeText(a, b) { a = GetRoot() + "/ui/forms/users/ShowText.aspx?text=" + a + "&head=" + b; window.open(a, "", "width=400, height=250; scrollbars=yes") } function ok(a, b) { a = GetRoot() + "/ui/forms/users/friends/FAHandler.aspx?faID=" + a + "&Status=" + b; window.open(a, "", "width=400, height=135; scrollbars=yes") }
function ok2(a, b) { a = GetRoot() + "/ui/forms/users/calendar/NDHandler.aspx?nID=" + a + "&S=" + b; window.open(a, "", "width=400, height=135; scrollbars=yes") } function okDi(a) { a = GetRoot() + "/ui/forms/users/calendar/DIHandler.aspx?DiID=" + a; window.open(a, "", "width=400, height=135; scrollbars=yes") } function df(a, b) { a = GetRoot() + "/ui/forms/users/calendar/FDel.aspx?uID=" + a + "&fID=" + b; window.open(a, "", "width=400, height=135; scrollbars=yes") }
function UpdateParentAndMinimize(a) { opener.window.location.href = a; window.blur() } function UpdateParentAndClose(a) { opener.window.location.href = a; window.close() } function PopCustomWindow(a, b, c, d, e, f, g) { var h = "width=" + b + ", height=" + c + ","; h += g == true ? "scrollbars=yes," : "scrollbars=no,"; h += f == true ? "status=yes," : "status=no,"; h += e == true ? "resizable=yes," : "resizable=no,"; if (d == true) { b = (screen.width - b) / 2; c = (screen.height - c) / 2; if (b < 0) b = 0; if (c < 0) c = 0; h += "left=" + b + ", top=" + c + ";" } window.open(a, "popwindow", h) }
var trans_popup = null; function PopTranslationWindow(a) { if (trans_popup == null || trans_popup.closed) trans_popup = window.open(a, "", "width=640,height=480,scrollbars=no,titlebar=no,resizable=no"); else trans_popup.document.location.href = a } function ShowBlockings(a) { window.open(GetRoot() + "/ui/forms/admins/users/Blockings.aspx?UserID=" + a, "Blockings", "width=600, height=175; scrollbars=no") } function NordeaHack() { window.open("http://www.nordea.dk") }
function echeck(a) { var b = a.indexOf("@"), c = a.length, d = a.indexOf("."); if (a.indexOf("@") == -1) return false; if (a.indexOf("@") == -1 || a.indexOf("@") == 0 || a.indexOf("@") == c) return false; if (a.indexOf(".") == -1 || a.indexOf(".") == 0 || a.indexOf(".") == c) return false; if (a.indexOf("@", b + 1) != -1) return false; if (a.substring(b - 1, b) == "." || a.substring(b + 1, b + 2) == ".") return false; if (a.indexOf(".", b + 2) == -1) return false; if (a.indexOf(" ") != -1) return false; return true }
function toggleDiv(a) { document.getElementById(a).style.display == "none" ? showdiv(a) : hidediv(a) } function hidediv(a) { if (document.getElementById) { document.getElementById(a).style.visibility = "hidden"; document.getElementById(a).style.display = "none" } } function showdiv(a) { if (document.getElementById) { document.getElementById(a).style.visibility = "visible"; document.getElementById(a).style.display = "inline" } }
function TextAreaResizeHeight(a, b) { var c = a.cols, d = a.value.split("\n"), e = d.length; for (i = 0; i < d.length; i++) e += parseInt(d[i].length / c); a.style.height = e > b ? (b + 1) * 20 + "px" : (e + 1) * 20 + "px" } function TopUserSearch(a) { if (a.length >= 2) document.location.href = "/UI/Forms/Users/Search/SearchResultGallery.aspx?UserName=" + escape(a) + "&SearchTextMode=3&Gender=-1" };

