/** * Kaboose Login script for multiple domains. */ if( typeof kaboose == "undefined" ) var kaboose = new Object(); if( typeof kaboose.utils == "undefined" ) kaboose.utils = new Object(); kaboose.utils.account = function( args ){ this.name = args; this.formsArray = new Array(); this.setRegistrationPage('http://regdev.zeeks.com/registration/login.php?'); this.setRedirect("http://devgames.zeeks.com/php/flashJavascript.php"); } kaboose.utils.account.prototype = { login: function( user, pass ){ var out = ""; var iFrameID = "KabooseLoginFrameID"; var formID = "KabooseLoginFormID"; out += this.setIFrame( iFrameID ); out += this.setForm( formID, user, pass, this.registrationPages, iFrameID ); document.getElementById( this.registrationContainer ).innerHTML = out; document.getElementById( formID ).submit(); return "Performing Magic."; }, onResult: function( status ){ this.swf.onLoginDone( status ); }, setRegistrationPage: function( url ){ this.registrationPages = url; }, setRedirect: function( url ){ this.redirectURL = url; }, setFlashID: function( flashID ){ this.flashID = flashID; this.swf = document.getElementById( flashID ); }, setRegistrationContainer: function( elementID ){ if(document.getElementById( elementID ) == null) return; this.registrationContainer = elementID; }, setIFrame: function( id ){ return ''; }, setForm: function(id, u, p, s, t){ var url = s +'redirect='+ this.redirectURL; var tmp = '
'; return tmp; } }