// ######################### Form Validation Functions ############################# // Validates any form to determine if required fields are empty // This function checks for a hidden input field that has the required field name ending with '_required' // located within the form. If found, false is returned and the message alert box displays the value of the // hidden field as an error message. // For Example: Required Input Field: // Required hidden field with error message value: function isValidRequired(myForm) { var isValid=true; var msg = ""; for (var j=0; j<(myForm.elements.length); j++) { var indx = myForm.elements[j].name.indexOf('_required'); if (indx > 0) { var fieldname=myForm.elements[j].name.substring(0,indx); if ((myForm.elements[fieldname].type == 'text') || (myForm.elements[fieldname].type == 'textarea')) { if (myForm.elements[fieldname].value.length == 0) { if (msg == "") { msg = myForm.elements[j].value; } else { msg = msg + '\n\n' + myForm.elements[j].value; } myForm.elements[fieldname].focus(); } } else if (myForm.elements[fieldname].type == 'checkbox') { if (isValidCheckBox(myForm.elements[fieldname]) == false) { if (msg == "") { msg = myForm.elements[j].value; } else { msg = msg + '\n\n' + myForm.elements[j].value; } } myForm.elements[fieldname].focus(); } else if (myForm.elements[fieldname].type == 'radio') { if (isValidRadioButton (myForm.elements[fieldname]) == false) { if (msg == "") { msg = myForm.elements[j].value; } else { msg = msg + '\n\n' + myForm.elements[j].value; } } myForm.elements[fieldname].focus(); } else if (myForm.elements[fieldname].type == 'select') { if (isValidSelect (myForm.elements[fieldname]) == false) { if (msg == "") { msg = myForm.elements[j].value; } else { msg = msg + '\n\n' + myForm.elements[j].value; } } myForm.elements[fieldname].focus(); } } } if (msg != "") { alert(msg); isValid = false; } return isValid; } // Checks whether a required checkbox has been checked function isValidCheckBox(checkBoxName) { var isValid = true; if(checkBoxName.checked == false) { isValid = false; } return isValid; } // Checks whether a required radio group button has been selected function isValidRadioButton(radioGroup) { var isValid = false; for (var i=0; i < radioGroup.length; i++) { if (radioGroup[i].checked) { isValid = true; } } return isValid; } // Checks whether a required select box has been selected function isValidSelect(selectBox) { var isValid = true; if(selectBox.value == null || selectBox.value.length == 0) { isValid = false; } return isValid; } // Validates an email address for proper form function isValidEmail(s) { var Count; var s2; var isValid=true; // empty or blank email if (s.value == "") isValid=false; // email with whitespace if (s.indexOf(' ') != -1) isValid=false; // email without @ if (s.indexOf('@') == -1) isValid=false; // email with @ as the 1st char if (s.indexOf('@') == 0) isValid=false; // email with @ as the last char if ((s.indexOf('@')+1) == s.length) isValid=false; // email without . if (s.indexOf('.') == -1) isValid=false; // email with . as the 1st char if (s.indexOf('.') == 0) isValid=false; // email with . as the last char if ((s.indexOf('.')+1) == s.length) isValid=false; // Now look for the first . after the first @ // s2 = string after the first @ s2=s.substring(s.indexOf('@')+1,s.length); // email without a dot after the first @ if (s2.indexOf('.') == -1) isValid=false; // email dot right after the first @ if (s2.indexOf('.') == 0) isValid=false; return isValid; } function isPhoneNumber(s) { if (s == "") { return (true); } else { if (regExpSupported()) { // var re = /^1?s*-?s*(?s*[0-9]{3}s*)?s*-?s*[0-9]{3}s*-?s*[0-9]{4}$/; return re.test(s); } else { for (var i = 0; i < s.length; i++) { if (((s.charAt(i) < '0') || (s.charAt(i) > '9')) && (s.charAt(i) != '-') && (s.charAt(i) != '(') && (s.charAt(i) != ')')) return (false); } return (true); } } } function isZipCode(s) { if (EmptyString(s)) { return (false); } else { if (isValidUSZipCode(s) || isValidCanadianPostalCode(s)) { return (true); } else { return (false); } } } function isValidUSZipCode(s) { if ((s.length != 5) && (s.length != 10)) { return (false); } else { if (regExpSupported()) { var re = /^[0-9]{5}(-[0-9]{4})?$/; return re.test(s); } else { for (var i = 0; i < s.length; i++) { if ((s.charAt(i) < '0') || (s.charAt(i) > '9')) { if (s.charAt(i) == '-') { if (i != 5) return (false); } else { return (false); } } } return (true); } } } function isValidCanadianPostalCode(s) { if ((s.length != 6) && (s.length != 7)) { return (false); } else { if (regExpSupported()) { var re = /^[a-z|A-Z]{1}\d{1}[a-z|A-Z]{1}\-?\d{1}[a-z|A-Z]{1}\d{1}$/; return re.test(s); } else { for (var i = 0; i < s.length; i++) { if ((s.charAt(i) < '0') || (s.charAt(i) > '9')) { if (s.charAt(i) == '-') { if (i != 3) return (false); } else { if ((i != 0) && (i != 2)) { if (s.charAt(3) == '-') { if ((i != 5) || ((s.charAt(i) < 'A') || ((s.charAt(i) > 'Z') && ((s.charAt(i) < 'a') || (s.charAt(i) > 'z'))))) return (false); } else { if ((i != 4) || ((s.charAt(i) < 'A') || ((s.charAt(i) > 'Z') && ((s.charAt(i) < 'a') || (s.charAt(i) > 'z'))))) return (false); } } else { if ((s.charAt(i) < 'A') || ((s.charAt(i) > 'Z') && ((s.charAt(i) < 'a') || (s.charAt(i) > 'z')))) return (false); } } } else { if (s.charAt(3) == '-') { if ((i != 1) && (i != 4) && (i != 6)) return (false); } else { if ((i != 1) && (i != 3) && (i != 5)) return (false); } } } return (true); } } } function noNumbers(s) { if (s == "") { return (true); } else { if (regExpSupported()) { var re = /^[a-zA-Z]+[a-zA-Z\s]*$/; //var re = /D/; return re.test(s); } else { for (var i = 0; i < s.length; i++) { if ((s.charAt(i) >= '0') && (s.charAt(i) <= '9')) return (false); } return (true); } } } // Uses isValidRequired function to check for required fields and isValidEmail function to check // for valid email address format and returns result in massage box. Parameters passed are the form and // the field name for email address fields function validateNewsletterForm(myForm, emailFieldReq) { var isValid = true; if (isValidRequired(myForm) == false) { isValid = false; return isValid; } if (isValidEmail(myForm.elements[emailFieldReq].value) == false) { alert ('Please provide a valid email address.'); myForm.elements[emailFieldReq].select(); myForm.elements[emailFieldReq].focus(); return false; } return isValid; } function clear_text(defaultValue, textField) { if (textField.value == defaultValue) { textField.value = ""; } else { textField.value = defaultValue; } }/** * FlashObject is (c) 2006 Geoff Stearns and is released under the MIT License: */ if(typeof com=="undefined"){var com=new Object();} if(typeof com.deconcept=="undefined"){com.deconcept=new Object();} if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();} if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();} com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){ if(!document.createElement||!document.getElementById){return;} this.DETECT_KEY=_b?_b:"detectflash"; this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY); this.params=new Object(); this.variables=new Object(); this.attributes=new Array(); this.useExpressInstall=_7; if(_1){this.setAttribute("swf",_1);} if(id){this.setAttribute("id",id);} if(w){this.setAttribute("width",w);} if(h){this.setAttribute("height",h);} if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));} this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7); if(c){this.addParam("bgcolor",c);} var q=_8?_8:"high"; this.addParam("quality",q); var _d=(_9)?_9:window.location; this.setAttribute("xiRedirectUrl",_d); this.setAttribute("redirectUrl",""); if(_a){this.setAttribute("redirectUrl",_a);} }; com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){ this.attributes[_e]=_f; },getAttribute:function(_10){ return this.attributes[_10]; },addParam:function(_11,_12){ this.params[_11]=_12; },getParams:function(){ return this.params; },addVariable:function(_13,_14){ this.variables[_13]=_14; },getVariable:function(_15){ return this.variables[_15]; },getVariables:function(){ return this.variables; },createParamTag:function(n,v){ var p=document.createElement("param"); p.setAttribute("name",n); p.setAttribute("value",v); return p; },getVariablePairs:function(){ var _19=new Array(); var key; var _1b=this.getVariables(); for(key in _1b){_19.push(key+"="+_1b[key]);} return _19; },getFlashHTML:function(){ var _1c=""; if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){ if(this.getAttribute("doExpressInstall")){ this.addVariable("MMplayerType","PlugIn"); } _1c="0){_1c+="flashvars=\""+_1f+"\"";} _1c+="/>"; }else{ if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");} _1c=""; _1c+=""; var _20=this.getParams(); for(var key in _20){_1c+="";} var _22=this.getVariablePairs().join("&"); if(_22.length>0){_1c+=""; }_1c+="";} return _1c; },write:function(_23){ if(this.useExpressInstall){ var _24=new com.deconcept.PlayerVersion([6,0,65]); if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){ this.setAttribute("doExpressInstall",true); this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl"))); document.title=document.title.slice(0,47)+" - Flash Player Installation"; this.addVariable("MMdoctitle",document.title);} }else{this.setAttribute("doExpressInstall",false);} if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){ var n=(typeof _23=="string")?document.getElementById(_23):_23; n.innerHTML=this.getFlashHTML(); }else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}}; function tiiVBGetFlashVersionExists() { var result = true; try { var dontcare = tiiVBGetFlashVersion( 3 ); } catch(e) { result = false } return result; } com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){ var _28 = new com.deconcept.PlayerVersion(0,0,0); if ( navigator.plugins && navigator.mimeTypes.length ){ var x = navigator.plugins["Shockwave Flash"]; if ( x && x.description ){ _28 = new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split(".")); } } else { try { if ( ! tiiVBGetFlashVersionExists() ) { var axo = new ActiveXObject( "ShockwaveFlash.ShockwaveFlash" ); for ( var i = 3; axo != null; i++ ) { axo = new ActiveXObject( "ShockwaveFlash.ShockwaveFlash." + i ); _28 = new com.deconcept.PlayerVersion( [ i, 0, 0 ] ); } } else { var versionStr = ""; for ( var i = 25; i > 0 ; i-- ) { var tempStr = tiiVBGetFlashVersion( i ); if ( tempStr != "" ) { versionStr = tempStr; break; } } if ( versionStr != "" ) { var splits = versionStr.split(" "); var splits2 = splits[1].split(","); _28 = new com.deconcept.PlayerVersion( [ splits2[0], splits2[1], splits2[2] ] ); } } } catch(e) {} if (_26&&_28.major>_26.major ){return _28;} if ( !_26 || ((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major) || _28.major != 6 || _27){ try { _28 = new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(",")); } catch(e) {} } } return _28; }; com.deconcept.PlayerVersion=function(_2c){ this.major=parseInt(_2c[0])||0; this.minor=parseInt(_2c[1])||0; this.rev=parseInt(_2c[2])||0; }; com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){ if(this.majorfv.major){return true;} if(this.minorfv.minor){return true;} if(this.rev-1)?q.indexOf("&",_30):q.length; if(q.length>1&&_30>-1){ return q.substring(q.indexOf("=",_30)+1,_31);}}return ""; },removeChildren:function(n){ while(n.hasChildNodes()){ n.removeChild(n.firstChild);}}}; if(Array.prototype.push==null){ Array.prototype.push=function(_33){ this[this.length]=_33; return this.length;};} var getQueryParamValue=com.deconcept.util.getRequestParameter; var FlashObject=com.deconcept.FlashObject; var PlayerVersion=com.deconcept.PlayerVersion; function tiiGetFlashVersion() { var flashversion = 0; if (navigator.plugins && navigator.plugins.length) { var x = navigator.plugins["Shockwave Flash"]; if(x){ if (x.description) { var y = x.description; flashversion = y.charAt(y.indexOf('.')-1); } } } else { result = false; for(var i = 15; i >= 3 && result != true; i--){ execScript('on error resume next: result = IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.'+i+'"))','VBScript'); flashversion = i; } } return flashversion; } function tiiDetectFlash(ver) { if (tiiGetFlashVersion() >= ver) { return true; } else { return false; } } // ### Array Helper Functions ### function tiiArrayContains (array, value) { if (array != null) { var al = array.length; for (var i = 0; i < al; i++) { if (array[i] == value) return true; } } return false; } // ### Key=Value; Functions ### function tiiHashKeys(string) { var keys = null; if (string != null) { var hash = string.split(';'); var hl = hash.length - 1; if(hl > 0){ keys = new Array(); for(var i = 0; i < hl; i++){ var data = hash[i].split('='); keys[i] = data[0].replace(' ', ''); } } } return keys; } function tiiHashGet(string, key) { var value = null; if (string != null) { var keyStart = key + '='; var offset = string.indexOf(keyStart); if (offset != -1) { offset += keyStart.length; var end = string.indexOf(';', offset); if (end == -1) { end = string.length; } value = string.substring(offset, end); } } return value; } function tiiHashSet(string, key, value) { var string = tiiHashDelete(string, key); var newValue = key + '=' + value + ';'; if (string != null) newValue = newValue + string; return newValue; } function tiiHashDelete(string, key) { var oldValue = tiiHashGet(string, key); var newString = string; if (oldValue != null) { var search = key + '='; var start = string.indexOf(search); var offset = start + search.length; var end = string.indexOf(';', offset) + 1; if (end == -1) end = string.length; newString = string.slice(0,start) + string.slice(end,string.length); return newString; } return newString; } function tiiGetQueryParamValue(param) { var startIndex; var endIndex; var valueStart; var qs = document.location.search; var detectIndex = qs.indexOf( "?" + param + "=" ); var detectIndex2 = qs.indexOf( "&" + param + "=" ); var key = "&" + param + "="; var keylen = key.length; if (qs.length > 1) { if (detectIndex != -1) { startIndex = detectIndex; } else if (detectIndex2 != -1) { startIndex = detectIndex2; } else { return null; } valueStart = startIndex + keylen; if (qs.indexOf("&", valueStart) != -1) { endIndex = qs.indexOf("&", startIndex + 1) } else { endIndex = qs.length } return (qs.substring(qs.indexOf("=", startIndex) + 1, endIndex)); } return null; } // ### Date/Time Functions ### function tiiDateGetOffsetMinutes(minutes) { var today = new Date(); return today.getTime() + (60000) * minutes;} function tiiDateGetOffsetHours(hours) { var today = new Date(); return today.getTime() + (3600000) * hours; } function tiiDateGetOffsetDays(days) { var today = new Date(); return today.getTime() + (86400000) * days; } function tiiDateGetOffsetWeeks(weeks) { var today = new Date(); return today.getTime() + (604800000) * weeks; } function tiiDateGetOffsetMonths(months) { var today = new Date(); return today.getTime() + (259200000) * months; } function tiiDateGetOffsetYears(years) { var today = new Date(); return today.getTime() + (31536000000) * years; } // ### Core Cookie Functions ### function tiiCookieExists(cookieName) { return tiiArrayContains(tiiCookieGet(), cookieName); } function tiiCookieGet(cookieName) { if (arguments.length == 0) { return tiiHashKeys(document.cookie); } var cookie = tiiHashGet(document.cookie, cookieName); if (cookie != null) cookie = unescape(cookie); return cookie; } function tiiCookieSet(cookieName, cookieValue, domain, path, expires, secure) { if (expires != null) { expire_date = new Date(); expire_date.setTime(expires); } var curCookie = cookieName + '=' + escape(cookieValue) + ((expires) ? '; expires=' + expire_date.toGMTString() : '') + ((path) ? '; path=' + path : '') + ((domain) ? '; domain=' + domain : '') + ((secure) ? '; secure' : ''); document.cookie = curCookie; } function tiiCookieDelete(cookieName) { tiiCookieSet(cookieName, null, null, null, '', 0); } // ### Core Chip Functions ### function tiiCookieChipGet(cookieName, chipName) { if (arguments.length == 1) { return tiiHashKeys(tiiCookieGet(cookieName)); } return tiiHashGet(tiiCookieGet(cookieName), chipName); } function tiiCookieChipSet(cookieName, chipName, chipValue, domain, path, expire, secure) { var new_cookieValue = tiiHashSet(tiiCookieGet(cookieName), chipName, chipValue); tiiCookieSet(cookieName, new_cookieValue, domain, path, expire, secure); } function tiiCookieChipDelete(cookieName, chipName, domain, path, expire, secure) { var new_cookieValue = tiiHashDelete(tiiCookieGet(cookieName), chipName); if (new_cookieValue == null) new_cookieValue = ''; tiiCookieSet(cookieName, new_cookieValue, domain, path, expire, secure); } // ### Permanent Cookie/Chip Functions ### function tiiPermCookieChipGet(chipName) { return tiiCookieChipGet('tii_perm', chipName); } function tiiPermCookieChipSet(chipName, chipValue) { tiiCookieChipSet('tii_perm', chipName, chipValue, null, '/', tiiDateGetOffsetYears(2), 0); } function tiiPermCookieChipDelete(chipName) { tiiCookieChipDelete('tii_perm', chipName, null, '/', tiiDateGetOffsetYears(2), 0); } // ### Session Cookie/Chip Functions ### function tiiSessCookieChipGet(chipName) { return tiiCookieChipGet('tii_sess', chipName); } function tiiSessCookieChipSet(chipName, chipValue) { tiiCookieChipSet('tii_sess', chipName, chipValue, null, '/', null, 0); } function tiiSessCookieChipDelete(chipName) { tiiCookieChipDelete('tii_sess', chipName, null, '/', null, 0); } var isFLASH5 = false; if (adsNMSG == null) adsCkPlg(); // if variable not set call the plugin function in adsWrapper.js if (adsNMSG.indexOf('F') != -1) isFLASH5 = true; function getDateCurrent () { var today = new Date() var monthName_List = new Date() var arrayMonthNames = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"); monthNumber = (today.getMonth()); monthName = arrayMonthNames[monthNumber]; dayNumber=today.getDate(); if(dayNumber < 10){ dayNumber="0" + dayNumber; } var yearNumber = today.getYear(); if(yearNumber < 1000) { yearNumber+=1900; } document.write(monthName + " " + dayNumber + ", " + yearNumber); } var mobileLink = "\"\"MOBILE"; function tiiTicker(name, divID, spanID, width, shiftBy, interval, dataArray, numItems) { this.name = name; this.divID = divID; this.spanID = spanID; this.width = width; this.shiftBy = shiftBy; this.interval = interval; this.div = document.getElementById(divID); this.span = document.getElementById(spanID); this.runID = null; // Start from the right side of the div this.startAt = width; this.currentLeft = width; // Populate the inner span tiiTickerParse(dataArray, this.span, numItems); //Show it this.span.style.visibility = 'visible'; } function tiiTickerStart() { this.stop(); this.currentLeft -= this.shiftBy; if (this.currentLeft < -this.span.offsetWidth) { this.currentLeft = this.startAt; } this.span.style.left = (this.currentLeft + 'px'); this.runID = setTimeout(this.name + '.start()', this.interval); } function tiiTickerStop() { if (this.runID) clearTimeout(this.runID); this.runID = null; } tiiTicker.prototype.start = tiiTickerStart; tiiTicker.prototype.stop = tiiTickerStop; function tiiTickerParse(dataArray, div, numItems) { for (var i = 0; i < numItems; i++) { var data = dataArray[i].split('|'); div.innerHTML += '' + data[1] + ''; if (i != (numItems - 1)) div.innerHTML += '  •  '; } div.innerHTML += '  (Reuters)'; } var macTest=(navigator.userAgent.toLowerCase().indexOf("macintosh") >= 0); function IMArticle() { if (isInAolClient()) { document.location.href = "aol://9293::Here's something that may interest you from People.com: " + document.location.href + ""; } else { document.location.href = "aim:goim?message=Here's+something+that+may+interest+you+from+People.com:+" + document.location.href; } return false; } function showCenteredPopup(name, url, features, width, height) { var top = (screen.height / 2) - height / 2; var left = (screen.width / 2) - width / 2; if (features == null || features == '') { features =" scrollbars=yes,toolbar=no,menubar=no,status=no,location=no"; } window.open(url, name, features + ",top=" + top + ",left=" + left + ",width=" + width + ",height=" + height); } // Transforms the url for quiz pages to return a link to the first page of the quiz rather than an internal page function transformURL(pageURL) { var tempURL = ""; var splitURL = pageURL.split(","); // Split the url to pull the oid out var oid = splitURL[2]; // Split the oid into its components of (package_id quiz_id question_id score_id) tempOid = oid.split("_"); // Check if the third position is a question_id or score_id if (tempOid[2] != "") { if (tempOid[2].length > 3) { // Its a package so this is a question_id var idThree = "articleId"; } else { // Its a regular article so this is a score_id var idThree = "scoreId"; } } else { var idThree = ""; } if (tempOid[3] != "") { // Its a package so this is a question_id var idFour = "scoreId"; } else { var idFour = ""; } // If a score is present then we are inside the quiz and must pull out the id for the initial page // otherwise we can return the original url becuase it is the first page of the quiz. if (idThree == "scoreId" || idFour == "scoreId") { if (idThree == "scoreId") { tempURL = splitURL[0] + "," + splitURL[1] + "," + tempOid[0] + "," + splitURL[3]; } else { tempURL = splitURL[0] + "," + splitURL[1] + "," + tempOid[0] + "_" + tempOid[1] + "," + splitURL[3]; } } else { tempURL = pageURL } return tempURL; } function popEmailWin() { var pageURL = document.URL; if (pageURL.substring(pageURL.length-1)=="#") { pageURL = pageURL.substring(0, pageURL.length-1); } //Check and see if this is a quiz to get the proper page url if (pageURL.match('/quizzes/')) { pageURL = transformURL(pageURL); } var pageTitle = self.document.title; if (pageTitle.indexOf('|') > 0) { pageTitle = pageTitle.substring(0, pageTitle.indexOf('|')); } var formURL = "http://cgi.pathfinder.com/cgi-bin/mail/mailurl2friend.cgi?path=/people/emailfriend&url=" + pageURL + "&group=people&title=" + escape(pageTitle); showCenteredPopup('emailpop', formURL, 'scrollbars=1', 460, 450); return false; } function popNewsletterWin(page) { var basehref='' if (!0) { var basehref="http://people.aol.com"; } switch (page) { case "subscribe": var pageURL = basehref + "/people/newsletter/subscribe"; break; case "subscribeFromTout": var pageURL = "/people/newsletter/subscribe"; break; default: var pageURL = "/people/newsletter/subscribe"; break; } var pageTitle = 'PeopleNewsletter'; showCenteredPopup(pageTitle, pageURL, '', 432, 337); return false; } function popMediaPlayerWin(media_type, pageURL) { if (media_type == 'video') { var pageTitle = 'PeopleVideo'; } else if (media_type == 'audio') { var pageTitle = 'PeopleVideo'; } showCenteredPopup(pageTitle, pageURL, 'scrollbars=no, status=no', '735', '467'); } function drawPuzzler(codeBase,file){ var html=''; html+=''; html+=''; html+='Your web browser does not support Java applets or Java is not enabled in web browser preferences.'; html+=''; document.write(html); }