var GCRegistration = function (url, fillInLayer, returnURL) { this.targetURL = url; this.ReturnURL = returnURL; this.fillInLayerId = fillInLayer; } GCRegistration.prototype.CreateRegistrationForm = function(){ var clientId = "205 "; var hasEmail = "true"; var supportWeatherAlert = "false"; var element= document.getElementById( this.fillInLayerId ); var fcode = ""; element.innerHTML = fcode; return; }