function verify_registration(num, sCookie, new_location){ var hash = document.location.hash + '@' var v = hash.substring(0,hash.indexOf('@')) if (v == '#hash=' + num) return //newsletters //if (typeof(user_id) != 'undefined') if (!isNaN(parseInt(user_id))) return var search = sCookie new_location = '/login/login.asp' + new_location // check existing cookie if (document.cookie.length > 0) { offset = document.cookie.indexOf(search); if (offset == -1) { document.location.href = new_location; } else { if(isNaN(parseInt(GetCookie(sCookie,"vCode"), 16))) { document.location.href = new_location; } } } else { document.location.href = new_location; } }