function isDouble(C){var B="0123456789.";for(var A=0;A<C.length;A++){for(var D=0;D<B.length;D++){if(C.charAt(A)==B.charAt(D)){break;}if(C.charAt(A)!=B.charAt(D)&&D+1>=B.length){return false;}}}return true;}function isNumber(C){var B="0123456789";for(var A=0;A<C.length;A++){for(var D=0;D<B.length;D++){if(C.charAt(A)==B.charAt(D)){break;}if(C.charAt(A)!=B.charAt(D)&&D+1>=B.length){return false;}}}return true;}function toggle(A){if(document.getElementById(A).style.display=="none"){document.getElementById(A).style.display="block";minimizeIcon(A);}else{document.getElementById(A).style.display="none";maximizeIcon(A);}}function minimizeIcon(A){document.getElementById(A+"icon").src="images/minimize.gif";}function maximizeIcon(A){document.getElementById(A+"icon").src="images/maximize.gif";}function highlightTab(A){document.getElementById(A).className="tabLight";document.getElementById(A+"l").className="tabLightLeft";document.getElementById(A+"r").className="tabLightRight";}function unhighlightTab(A){document.getElementById(A).className="tabDark";document.getElementById(A+"l").className="tabDarkLeft";document.getElementById(A+"r").className="tabDarkRight";}function highlightList(A){document.getElementById(A).style.background="#FFFF99";}function unhighlightList(A){document.getElementById(A).style.background="#FFFFFF";}function highlightMapNav(A){document.getElementById(A).className="mapNavLight";}function unhighlightMapNav(A){document.getElementById(A).className="mapNavDark";}function goTo(A){this.location.href=A;}function popUp(url,width,height){var day=new Date();var id=day.getTime();eval("page"+id+" = window.open(url, '"+id+"', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,top=50,left=50,width='+width+',height='+height+',resizable=1');");}function getWindowHeight(){var A=0;if(typeof (window.innerWidth)=="number"){A=window.innerHeight;}else{if(document.documentElement&&(document.documentElement.clientHeight)){A=document.documentElement.clientHeight;}else{if(document.body&&(document.body.clientHeight)){A=document.body.clientHeight;}}}if(A<650){A=650;}return A;}function getTotalWindowHeight(){var A=0;if(window.innerHeight&&window.scrollMaxY){A=window.innerHeight+window.scrollMaxY;}else{if(document.body.scrollHeight>document.body.offsetHeight){A=document.body.scrollHeight;}else{A=document.body.offsetHeight+document.body.offsetTop;}}return A;}function populateDropDown(D,C,A){D.options.length=0;for(var B=0;B<A.length;B++){D.options[D.options.length]=new Option(C[B],A[B]);}}function appendToDropDown(D,C,A){for(var B=0;B<A.length;B++){D.options[D.options.length]=new Option(C[B],A[B]);}}function changeDropDownByValue(D,B,C){for(var A=0;A<D.options.length;A++){if(D.options[A].value==B){if(D.selectedIndex!=A){D.selectedIndex=A;if(C){D.onchange();}}break;}}}function IsNumeric(B){var D="0123456789.";var C=true;var A;for(i=0;i<B.length&&C==true;i++){A=B.charAt(i);if(D.indexOf(A)==-1){C=false;}}return C;}function hoverSmallStar(C,B){if(document.getElementById(C+"_hover").value=="false"){for(var A=1;A<=5;A++){if(A<=B){document.getElementById(C+"_"+A).src="images/full_star_small.gif";}else{document.getElementById(C+"_"+A).src="images/no_star_small.gif";}}}}function checkSmallStar(A,B,C,D){document.getElementById(A).innerHTML='<font style="color:#ff0000;">Thank you</font>';ratePhoto(B,C,D);}var ALERT_TITLE="Alert";var ALERT_BUTTON_TEXT="OK";if(document.getElementById){window.alert=function(A){createCustomAlert(A);};}function createCustomAlert(A){d=document;if(d.getElementById("modalContainer")){return ;}mObj=d.getElementsByTagName("body")[0].appendChild(d.createElement("div"));mObj.id="modalContainer";mObj.style.height=document.documentElement.scrollHeight+"px";alertObj=mObj.appendChild(d.createElement("div"));alertObj.id="alertBox";if(d.all&&!window.opera){alertObj.style.top=document.documentElement.scrollTop+"px";}alertObj.style.left=(d.documentElement.scrollWidth-alertObj.offsetWidth)/2+"px";h1=alertObj.appendChild(d.createElement("h1"));h1.appendChild(d.createTextNode(ALERT_TITLE));msg=alertObj.appendChild(d.createElement("p"));msg.innerHTML=A;btn=alertObj.appendChild(d.createElement("a"));btn.id="closeBtn";btn.appendChild(d.createTextNode(ALERT_BUTTON_TEXT));btn.href="#";btn.onclick=function(){removeCustomAlert();return false;};}function removeCustomAlert(){document.getElementsByTagName("body")[0].removeChild(document.getElementById("modalContainer"));}