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 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 resizeMap(){document.getElementById("map").style.height=getWindowHeight()-150+"px";}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<775){A=775;}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 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);}