var expDays = 1;var exp = new Date();exp.setTime(exp.getTime() + (expDays*24*60*60*1000));var Netscape = false;var MSIE = false;var Opera = false;var Unknown = false;var detect = navigator.appName;var agent = navigator.userAgent;if ((detect == "Microsoft Internet Explorer") && (agent.indexOf("Opera") == -1)) {MSIE = true;} else if ((detect == "Microsoft Internet Explorer") && (agent.indexOf("Opera") > -1)) {Opera = true;} else if ((detect == "Netscape") && (agent.indexOf("Netscape") == -1)) {Mozilla = true;} else if ((detect == "Netscape") && (agent.indexOf("Netscape") > -1)) {Netscape = true;} else {Unknown = true;}function changeSelectOption(selection, newOptionValue) {eval('selectObj = ' + selection + ';');for(index = 0; index < selectObj.length; index++) {if(selectObj[index].value == newOptionValue) {selectObj.selectedIndex = index;break;}}}function setCookie(name, value) {var argv = setCookie.arguments;var argc = setCookie.arguments.length;var expires = (argc > 2) ? argv[2] : null;var path = (argc > 3) ? argv[3] : null;var domain = (argc > 4) ? argv[4] : null;var secure = (argc > 5) ? argv[5] : false;document.cookie = name + "=" + escape (value) +((expires == null) ? "" : ("; expires=" + expires.toGMTString())) +((path == null) ? "" : ("; path=" + path)) +((domain == null) ? "" : ("; domain=" + domain)) +((secure == true) ? "; secure" : "");}function getCookieVal(offset) {var endstr = document.cookie.indexOf (";", offset);if (endstr == -1) {endstr = document.cookie.length;}return unescape(document.cookie.substring(offset, endstr));}function getCookie(name) {var arg = name + "=";var alen = arg.length;var clen = document.cookie.length;var i = 0;while (i < clen) {var j = i + alen;if (document.cookie.substring(i, j) == arg) {return getCookieVal (j);}i = document.cookie.indexOf(" ", i) + 1;if (i == 0) {break;}}return null;}function deleteCookie(name, path) {var exp = new Date();exp.setTime (exp.getTime() - 5000);var cval = getCookie(name);document.cookie = name + "=" + cval + "; path=" + path + "; expires=" + exp.toGMTString();}function placeFocus() {if (document.forms.length > 0) {var field = document.forms[0];for (i = 0; i < field.length; i++) {if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) {document.forms[0].elements[i].focus();}break;}}}function isEmpty(s){return ((s == null) || (s.length == 0));}function isWhitespace(s){var i;var whitespace = " \t\n\r";if (isEmpty(s)){return true;}for (i = 0; i < s.length; i++) {var c = s.charAt(i);if (whitespace.indexOf(c) == -1) {return false;}}return true;}function trimString(sInString) {var sInString = sInString.replace( /^\s+/g, "" );var val = sInString.replace( /\s+$/g, "" );return val;}function isEmail(s) {var i = 1;var sLength = s.length;while ((i < sLength) && (s.charAt(i) != "@")){i++;}if ((i >= sLength) || (s.charAt(i) != "@")) {return false;} else {i += 2;}while ((i < sLength) && (s.charAt(i) != ".")){i++;}if ((i >= sLength - 1) || (s.charAt(i) != ".")) {return false;} else {return true;}}function isUrl(s) {var re = /^http:\/\/[a-z0-9_-]+\.[a-z0-9-_%&\?\/\.=#,]+$/i;if (re.test(s)) {return true;} else {return false;}}function validateEntry(field, entryType, entrySize, entryMin, entryMax) {var valid='';var validText='';var okVal = "yes";var okSize = "yes";var okMin = "yes";var okMax = "yes";var okEmail = "";var okUrl = "yes";var temp;var sUrl = '';var sEmail = '';if(entryType == "alpha") {valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";validText = "[a-zA-Z]";}if(entryType == "alphanum") {valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";validText = "[a-zA-Z0-9]";}if(entryType == "hexcolor") {valid = "abcdefABCDEF0123456789";validText = "[a-fA-F0-9]";}if(entryType == "num") {valid = "0123456789";validText = "[0-9]";}if(entryType == "url") {sUrl = trimString(field.value);valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-?/&%,#:";validText = "[a-zA-Z0-9.-_?/&%,#:]";okUrl = isUrl(sUrl)?"yes":"no";}if(entryType == "email") {sEmail = trimString(field.value);valid = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-@";validText = "[a-zA-Z0-9.-_@]";okEmail = isEmail(sEmail)?"yes":"no";}var sVal = trimString(field.value);if (sVal.length > entrySize) {okSize = "no";} else {for (var i=0; i<sVal.length; i++) {temp = "" + sVal.substring(i, i+1);if (valid.indexOf(temp) == "-1") {okVal = "no";}}}if (parseInt(sVal) < parseInt(entryMin)) {okMin = "no";}if (parseInt(sVal) > parseInt(entryMax)) {okMax = "no";}if (okSize == "no") {alert("Invalid entry!  You have entered more then " + entrySize + " characters.");field.focus();field.select();}if (okVal == "no") {alert("Invalid entry!  Only the following characters are accepted: " + validText);field.focus();field.select();}if (okMin == "no") {alert("Invalid entry!  You have entered a value smaller than " + entryMin);field.focus();field.select();}if (okMax == "no") {alert("Invalid entry!  You have entered a value bigger than: " + entryMax);field.focus();field.select();}if (okEmail == "no") {alert("Invalid entry!  You have entered an invalid email adddress.");field.focus();field.select();}if (okUrl == "no") {alert("Invalid entry!  You have entered an invalid url.");field.focus();field.select();}return true;}function setStatus(msg) {var status = msg;return true;}var pic = null;var popImg = null;var picTitle = null;var imgCount = 0;var imgWinName = "popImg";function closePopImg() {if (navigator.appName != "Microsoft Internet Explorer"  || parseInt(navigator.appVersion) >=4) {if(popImg != null) {if(!popImg.closed) {popImg.close();}}}}function winOpen() {if(popImg != null) {if(popImg.closed != true) {return true;} else {return false;}} else {return false;}}function openPopImg(picName, windowTitle, windowWidth, windowHeight) {if(pic == picName && winOpen()) {popImg.focus();} else {pic = picName;closePopImg();picTitle = windowTitle;width = new Number(windowWidth) + 100;height = new Number(windowHeight) + 100;imgWinName = "popImg" + imgCount++;popImg = window.open("" , imgWinName,"toolbar=no,scrollbars=no,resizable=no,width=" + width + ",height=" + height);fabricatePage();}}function openPopImgVar(picName, windowTitle, windowWidth, windowHeight, tool, scroll, resize) {if(pic == picName && winOpen()) {popImg.focus();} else {pic = picName;closePopImg();picTitle = windowTitle;width = new Number(windowWidth) + 100;height = new Number(windowHeight) + 100;imgWinName = "popImg" + imgCount++;popImg = window.open("" , imgWinName,"toolbar="+tool+",scrollbars="+scroll+",resizable="+resize+",width=" + width + ",height=" + height);fabricatePage();}}function fabricatePage() {var htmlStr = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"\n'+ '"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">\n'+ '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">\n'+ '<head>\n'+ '<script type="text/javascript" language="JavaScript" src="http://www.mobilefish.com/scripts/switch.js"><\/script>\n'+ '<title>' + picTitle + '</title></head>\n'+ '<body>\n'+ '<center>\n'+ '<br />\n'+ '<img src=' + pic + '  border="0" align="middle" alt="' + picTitle + '" />'+ '<br /><br />\n'+ '<a href="javascript:self.close()"><img src="http://www.mobilefish.com/images/close.gif" alt="Close window" width="98" height="16" border="0" /></a>\n'+ '</center>\n'+ '<script type="text/javascript" src="http://www.google-analytics.com/urchin.js">\n'+ '<\/script>\n'+ '<script type="text/javascript">\n'+ 'if(googleAnalytics){\n'+ 'urlStr = new String("' + pic + '");\n'+ 're = /http:\\\/\\\/[a-z.]+\\\/\/gi;\n'+ 'found = urlStr.replace(re, "/");\n'+ '_uacct="UA-118369-1";\n'+ 'urchinTracker("/popupscript" + found);\n'+ '}\n'+ '<\/script>\n'+ '</body>\n'+ '</html>';popImg.document.open();popImg.document.write(htmlStr);popImg.document.close();}function printPage(url) {var printWin = window.open("/php/print/printpage.php?url=" + escape(url) , "printPage", "toolbar=no,scrollbars=yes,resizable=no,width=700,height=400");}function printPageSelect(url) {var printWin = window.open("/php/print/printpageselect.php?url=" + escape(url) , "printPage", "toolbar=yes,scrollbars=yes,resizable=yes,width=678,height=400");}var disableRightClick = false;var message="Copyright (C) 2002, Mobilefish.com";function click(e) {if (document.all) {if (event.button == 2) {if(disableRightClick) {alert(message);}return false;}}if (document.layers) {if (e.which == 3) {if(disableRightClick) {alert(message);}return false;}}}if (document.layers) {document.captureEvents(Event.MOUSEDOWN);}document.onmousedown=click;function windowpopup(htmlDoc,widthSize, heightSize, barScroll) {var inside=true;var windowName = window.open('' +htmlDoc+ '',"popup", config='width=' +widthSize+ ',height=' +heightSize+ ',toolbar=no,menubar=no,scrollbars=' +barScroll+ ',resizeable=no,status=no,directories=no,location=no');if (windowName.opener == null) windowName.opener = self;windowName.focus();return false;}function closepopup(file){top.opener.window.location.href = file;window.close();}function closepopup2(file){var params  = 'width='+(screen.width*10);params += ', height='+screen.height;params += ', toolbar=yes,menubar=yes,scrollbars=yes,resizeable=yes,status=yes,directories=yes,location=yes';var newwin=window.open(file,'second', params);if (window.focus) {newwin.focus()}window.close();}function getSalt(){return "mdh75jWQnfjnjrhbdW29";}function validateContactForm(form,contact_app) {var msg ="";var name = "";var country = "";var from = "";var message = "";var accesscode = "";var companyurl = '';var nameRequired = false;var countryRequired = false;var fromRequired = false;var messageRequired = false;var accesscodeRequired = false;var companyurlRequired = false;if(contact_app == 4) {nameRequired = true;countryRequired = true;fromRequired = true;companyurlRequired = true;accesscodeRequired = true;}if(contact_app == "") {nameRequired = true;countryRequired = true;fromRequired = true;messageRequired = true;accesscodeRequired = true;}for(i=0; i<form.elements.length; i++){if(form.elements[i].name == "name") {name = form.name.value;}if(form.elements[i].name == "country") {country = form.country.value;}if(form.elements[i].name == "from") {from = form.from.value;}if(form.elements[i].name == "message") {message = form.message.value;}if(form.elements[i].name == "accesscode") {accesscode = form.accesscode.value;}if(form.elements[i].name == "companyurl") {companyurl = form.companyurl.value;}}if(nameRequired && isWhitespace(name)) {msg += "* You must enter your name. \n";}if(countryRequired && country == "999") {msg += "* You must select your country. \n";}if (fromRequired && isWhitespace(from)) {msg += "* You must enter your email. \n";} else {if (fromRequired && !isEmail(from)) {msg += "* Your email address is not valid. \n";}}if(messageRequired && isWhitespace(message)) {msg += "* You must enter your message. \n";}if(companyurlRequired && !isUrl(companyurl)) {msg += "* You must enter your company url. \n";}if (accesscodeRequired && isWhitespace(accesscode)) {msg += "* Your must the security code. \n";}if (msg != "") {alert(msg);return false;} else {return true;}}function getPartofPath(path, character, num) {var path;for(i=0;i<num;i++) {path = path.substring(0, path.lastIndexOf(character));}return path;}function getURL(filename) {var path = window.location.toString();path = getPartofPath(path, '/', 2) + '/' + filename;return path;}function getSection() {var path = window.location.toString();path = getPartofPath(path, '/', 2);var startVal = path.lastIndexOf("/")+1;path = path.substring(startVal, path.length);if(path == "") {path = "";}return path;}function getCategory() {var path = window.location.toString();path = getPartofPath(path, '/', 1);var startVal = path.lastIndexOf("/")+1;path = path.substring(startVal, path.length);if(path == "sand.mobilefish.com" || path == "www.mobilefish.com") {path = "";}return path;}function getDomain() {var path = window.location.toString();var endVal = path.indexOf("/",7);path = path.substring(7, endVal);return path;}function getFileName() {var path = window.location.toString();var beginVal = path.lastIndexOf("/") + 1;var endVal = path.lastIndexOf(".html");if (endVal == -1) {endVal = path.lastIndexOf(".php");}var file = "";if (endVal > beginVal) {file = path.substring(beginVal, endVal);}return file;}function getFileNameNoQuickGuide() {var filename = getFileName();var index = filename.lastIndexOf("_quickguide");if (index > 0) {filename = filename.substring(0, index);}return filename;}function getRoot() {var path = window.location.toString();path = getPartofPath(path, '/', 3);return path;}function gotoLocation(loc) {var path = parent.window.location.toString();var index = path.lastIndexOf("#");if (index > 0 ) {path = path.substring(0, index);}var url = path + "#" + loc;return url;}function gotoPage(url){parent.window.location.href = url;return false;}function defaultSetting() {var section = getSection();if (section=="") {section = "home";}if (section=="home" || section=="contact" || section=="emulators" ||section=="tutorials" || section=="developer" || section=="services" ||section=="mobile" || section=="games" || section=="links" || section=="login" ||section=="legal" || section=="sitemap") {if(document.getElementById(section) != null) {document.getElementById(section).style.color = '#ffffff';}}}function displayOneStat(){var d=document;var sid="168572";var CONTENTSECTION="";var osp_URL=d.URL;var osp_Title=d.title;var t=new Date();var p="http"+(d.URL.indexOf('https:')==0?'s':'')+"://stat.onestat.com/stat.aspx?tagver=2&sid="+sid;p+="&url="+escape(osp_URL);p+="&ti="+escape(osp_Title);p+="&section="+escape(CONTENTSECTION);p+="&rf="+escape(parent==self?document.referrer:top.document.referrer);p+="&tz="+escape(t.getTimezoneOffset());p+="&ch="+escape(t.getHours());p+="&js=1";p+="&ul="+escape(navigator.appName=="Netscape"?navigator.language:navigator.userLanguage);if(typeof(screen)=="object"){p+="&sr="+screen.width+"x"+screen.height;p+="&cd="+screen.colorDepth;p+="&jo="+(navigator.javaEnabled()?"Yes":"No");}d.write('<div style="float: left; padding-top: 7px;"><a href="http://www.onestat.com/aspx/login.aspx?sid=168572" target=_blank><img id="ONESTAT_TAG" border="0" src="'+p+'" alt="This site tracked by OneStat.com. Get your own free site counter."><\/a></div>');}function displayDate() {var d=new Date();var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec");document.write("&nbsp;" + weekday[d.getDay()] + " ");document.write(d.getDate() + ", ");document.write(monthname[d.getMonth()] + " ");document.write(d.getFullYear());}function displayWatchMouse() {document.write('<div id="wm-uptime" style="float: left;"><a style="outline: 0; background: #fff url(http://api.watchmouse.com/1.6/rule_banner?m=7623&amp;id=3688) no-repeat; text-indent: -32697px; display: block; width:114px; height:25px" href="http://www.watchmouse.com/" title="website monitoring">website monitoring</a></div>');}function displayICRA() {document.write('<div style="float: left;"><a href="http://www.icra.org/sitelabel"><img src="/images/icra.gif" alt="icra" width="88" height="31" border="0"></a></div>');}function displayExternalBanners() {if (getDomain() != "sand.mobilefish.com") {displayOneStat();document.write('<div style=\"float: left\";>&nbsp;&nbsp;</div>');displayICRA();document.write('<div style=\"float: left\";>&nbsp;&nbsp;</div>');displayWatchMouse();}}function translatePage(language){var locpage=window.location.toString();var urlgoogle="http:/"+"/www.google.com/translate?u="+locpage+"&langpair=en|"+language+"&hl=en&ie=UTF8";window.location.href=urlgoogle;}function mytracker(url) {var startVal1 = url.indexOf("mobilefish.com");var val = ":/" + "/";var startVal2 = url.lastIndexOf(val);if (!(startVal1 >0) && (startVal2 >0) && googleAnalytics) {url = url.substring(startVal2+3, url.length);var path = "/external_link/" + url;urchinTracker(path);}}function getServer() {var server = "www";if (getDomain() == "sand.mobilefish.com") {server = "sand";}return server;}function addEngine() {if ((typeof window.sidebar == "object") && (typeof window.sidebar.addSearchEngine == "function")) {window.sidebar.addSearchEngine("http:/" + "/" + getServer() + ".mobilefish.com/download/firefox/mobilefish.src","http:/" + "/" + getServer() + ".mobilefish.com/download/firefox/mobilefish.gif","Mobilefish.com","Web" );} else {alert("Netscape 6 or Mozilla is required to add a search engine.");}}function closeWindow(url) {if (window.name == "") {document.write('<img src="http://www.mobilefish.com/images/back.gif" alt="Return to site" width="12" height="10" border="0" /> <a href=' + url + ' onfocus="this.blur()">Return to site</a>');} else {document.write('<a href=' + document.location + ' onclick="javascript:window.close();" onfocus="this.blur()"><img src="http://www.mobilefish.com/images/close.gif" alt="Close window" width="98" height="16" border="0" /></a>');}}function getFileExtension(filename) {if( filename.length == 0 ) return "";var dot = filename.lastIndexOf(".");if( dot == -1 ) return "";var extension = filename.substr(dot,filename.length);return extension;}function getUploadFileName(uploadpath) {var filename = "";var endVal = uploadpath.length;var beginVal = uploadpath.lastIndexOf("\\") + 1;if(beginVal == 0) {beginVal = uploadpath.lastIndexOf("/") + 1;}if (endVal > beginVal) {filename = uploadpath.substring(beginVal, endVal);}return filename;}function selectAllOptions(form) {var d = document.form;for (i = 0; i < d.elements.length; i++) {if (d.elements[i].type == "checkbox") {d.elements[i].checked = true;}}}function deselectAllOptions(form) {var d = document.form;for (i = 0; i < d.elements.length; i++) {if (d.elements[i].type == "checkbox") {d.elements[i].checked = false;}}}function googleSearch(form) {q = form.q.value;sa = form.sa.value;domains = form.domains.value;client = form.client.value;forid = form.forid.value;channel = form.channel.value;ie = form.ie.value;oe = form.oe.value;safe = form.safe.value;flav = form.flav.value;sig = form.sig.value;cof = form.cof.value;hl = form.hl.value;sitesearch = form.sitesearch.value;section = getSection();if (section=="console") {if(getCategory() == "search") {form.mfCategory.value = getURLParam("mfCategory");} else {form.mfCategory.value = getCategory();}document.searchForm.action= "http:/" + "/" + getServer() + ".mobilefish.com/" + section + "/search/search.php";} else {if (section=="") {section = "home";}document.searchForm.action= "http:/" + "/" + getServer() + ".mobilefish.com/" + section + "/search/search.html";}document.searchForm.submit();}function checkNumberOfCharacters(input, output) {var text = document.getElementById(input).value;text = trimString(text);var strSize = text.length;var box = document.getElementById(output);box.value = strSize;}function checkNumberOfCharactersAndCR(input, output) {var text = document.getElementById(input).value;var strSize = text.length;var box = document.getElementById(output);box.value = strSize;}function checkNumberOfWords(input, output) {var text = document.getElementById(input).value;var words = new Array();words = (trimString(text)).split(',');var count=0;for(i=0; i<words.length;i++){if ((trimString(words[i])).length > 0) count+= 1;}var box = document.getElementById(output);box.value = count;}function selectAll(form) {form.focus();form.select();}var xmlhttp;function sendRequest(url) {xmlhttp=null;if (window.XMLHttpRequest) {xmlhttp=new XMLHttpRequest();} else if (window.ActiveXObject) {xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");} if (xmlhttp!=null) {xmlhttp.onreadystatechange=state_Change;xmlhttp.open("GET",url,true);xmlhttp.send(null);} else {alert("Your browser does not support XMLHTTP.")}}function state_Change() {if (xmlhttp.readyState==4) {if (xmlhttp.status==200) {} else {alert("Problem sending request.");}}}function isInteger(sText) {var validChars = "0123456789";var valid=true;var charVal;for (i = 0; i < sText.length && valid == true; i++) {charVal = sText.charAt(i);if (validChars.indexOf(charVal) == -1) {valid = false;}}return valid;}function isReal(sText) {var validChars = "0123456789.";var valid=true;var charVal;for (i = 0; i < sText.length && valid == true; i++) {charVal = sText.charAt(i);if (validChars.indexOf(charVal) == -1) {valid = false;}}return valid;}function open_report(param,contact_app){var m1='';var m2='';var cparam='';if(param=='' && contact_app==''){m1 = '';m2 = '';}if(param!='' && contact_app==''){m1 = '?';m2 = '';}if(param=='' && contact_app!=''){m1 = '?';m2 = '';}if(param!='' && contact_app!=''){m1 = '?';m2 = '&';}if(contact_app !='') {cparam = 'contact_app=';}url = 'http:/' + '/' + getServer() + '.mobilefish.com/popupwindow/contact_form.php'+m1+param+m2+cparam+contact_app;windowpopup(url, '580', '450', 'no');}function xajax_showProgressBar(id){xajax.$(id).innerHTML="<img src='http://www.mobilefish.com/images/progress_bar1.gif' width='190' height='14' border='0' alt='processing...' />\n";}if ((document.getElementById || document.all) && document.images) {window.onload = windowOnload;}function windowOnload() {if(getFileName() != "poll" && getFileName() != "comments" ) {defaultSetting();}if(getFileName()=="googlemap" || getFileName()=="coordinate_converter") {load();}}function showToolTip(){prompt2('insert_prompt',145,0,'Help','When you check the box, you will stay signed in for up to 2 weeks or until you sign out. <br \/><br \/><i>Never check this box if you are using a public computer or if you share this computer with others.</i>', '', '','','','','');}function getURLParam(name) {name = name.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regexS = "[\\?&]"+name+"=([^&#]*)";var regex = new RegExp( regexS );var results = regex.exec( window.location.href );if( results == null ) {return "";} else {return results[1];}}function validatePassword(text) {password = trimString(text);var reDigits = /[0-9]/g;var reLowerCaseLetters = /[a-z]/g;var reUpperCaseLetters = /[A-Z]/g;var reSpecials = /[\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=]/g;var reNonAllowed = /[^0-9a-zA-Z\~\!\@\#\$\%\^\&\*\(\)\-\_\+\=]/g;var aDigits = password.match(reDigits);var aLowerCaseLetters = password.match(reLowerCaseLetters);var aUpperCaseLetters = password.match(reUpperCaseLetters);var aSpecials = password.match(reSpecials);var aNonAllowed = password.match(reNonAllowed);digitsFound = false;lowerCaseLettersFound = false;upperCaseLettersFound = false;specialsFound = false;nonAllowedFound = false;sizeCorrect = false;valid = false;if(password.length>=6 && password.length<=30) {sizeCorrect = true;}if(aUpperCaseLetters!=null) {upperCaseLettersFound = true;}if(aLowerCaseLetters!=null) {lowerCaseLettersFound = true;}if(aDigits!=null) {digitsFound = true;}if(aSpecials!=null) {specialsFound = true;}if(aNonAllowed!=null) {nonAllowedFound = true;}if(sizeCorrect && upperCaseLettersFound && lowerCaseLettersFound && digitsFound && specialsFound && !nonAllowedFound) {valid = true;}return valid;}var iframeids=["iframecomments", "iframepoll"];var iframehide="yes";var getFFVersion=navigator.userAgent.substring(navigator.userAgent.indexOf("Firefox")).split("/")[1];var FFextraHeight=parseFloat(getFFVersion)>=0.1? 16 : 0;function resizeCaller() {var dyniframe=new Array();for (i=0; i<iframeids.length; i++){if (document.getElementById) {resizeIframe(iframeids[i]);}if ((document.all || document.getElementById) && iframehide=="no"){var tempobj=document.all? document.all[iframeids[i]] : document.getElementById(iframeids[i]);tempobj.style.display="block";}}}function resizeIframe(frameid){var currentfr=document.getElementById(frameid);if (currentfr && !window.opera){currentfr.style.display="block";if (currentfr.contentDocument && currentfr.contentDocument.body.offsetHeight) {currentfr.height = currentfr.contentDocument.body.offsetHeight+FFextraHeight;} else if (currentfr.Document && currentfr.Document.body.scrollHeight) {currentfr.height = currentfr.Document.body.scrollHeight;}if (currentfr.addEventListener) {currentfr.addEventListener("load", readjustIframe, false);} else if (currentfr.attachEvent){currentfr.detachEvent("onload", readjustIframe);currentfr.attachEvent("onload", readjustIframe);}}}function readjustIframe(loadevt) {var crossevt=(window.event)? event : loadevt;var iframeroot=(crossevt.currentTarget)? crossevt.currentTarget : crossevt.srcElement;if (iframeroot) {resizeIframe(iframeroot.id);}}function loadintoIframe(iframeid, url){if (document.getElementById) {document.getElementById(iframeid).src=url;}}if (window.addEventListener) {window.addEventListener("load", resizeCaller, false);} else if (window.attachEvent) {window.attachEvent("onload", resizeCaller);} else {window.onload=resizeCaller;}