var newWindow;function openPopupWindow(theURL,theWindow,theWidth,theHeight){if(!newWindow||newWindow.closed){var w=theWidth;var h=theHeight;var x=(screen.width-w)/2;var y=(screen.height-h)/2;newWindow=window.open(theURL,theWindow,"top="+y+",left="+x+",width="+w+",height="+h+",resizable=yes,scrollbars=1,menubar=no,toolbar=no,directories=no,location=no,status=no");}else{newWindow.focus();}}function setFocus(sId){document.getElementById(sId).focus();}addEvent(window,"load",function(){var input;var inputs=document.getElementsByTagName("input");for(var i=0;(input=inputs[i]);i++){addEvent(input,"focus",oninputfocus);addEvent(input,"blur",oninputblur);}var selects=document.getElementsByTagName("select");for(var i=0;(select=selects[i]);i++){addEvent(select,"focus",oninputfocus);addEvent(select,"blur",oninputblur);}});function oninputfocus(e){if(typeof e=="undefined"){var e=window.event;}var source;if(typeof e.target!="undefined"){source=e.target;}else{if(typeof e.srcElement!="undefined"){source=e.srcElement;}else{return;}}source.style.background="#F0E68C";}function oninputblur(e){if(typeof e=="undefined"){var e=window.event;}var source;if(typeof e.target!="undefined"){source=e.target;}else{if(typeof e.srcElement!="undefined"){source=e.srcElement;}else{return;}}source.style.background="#FFF";}function addEvent(obj,evType,fn){if(obj.addEventListener){obj.addEventListener(evType,fn,true);return true;}else{if(obj.attachEvent){var r=obj.attachEvent("on"+evType,fn);return r;}else{return false;}}}sfFocus=function(){var sfEls=document.getElementsByTagName("A");for(var i=0;i<sfEls.length;i++){sfEls[i].onfocus=function(){this.className+=" sffocus";};sfEls[i].onblur=function(){this.className=this.className.replace(new RegExp(" sffocus\\b"),"");};}};if(window.attachEvent){window.attachEvent("onload",sfFocus);}if((top.location!=self.location)&&(top.location!="http://heat.ige.com/index.php")){top.location.href=self.location.href;}function swapButtonImage(btnRef,hovering,imgName,imgHoverName){if(typeof(btnRef)!="undefined"){if(hovering){btnRef.src=btnRef.src.replace(imgName,imgHoverName);}else{btnRef.src=btnRef.src.replace(imgHoverName,imgName);}}}function KeepMeUpdated_ValidateEmail(source,arguments){var emailRegEx=/\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;var matches=emailRegEx.exec(arguments.Value);if((matches==null)||(matches.length==0)){arguments.IsValid=false;}else{arguments.IsValid=true;}}function ToggleTextboxText(objInput,showText,textToShow){if(objInput!=null){if(!showText){objInput.value="";}else{if(objInput.value==""){objInput.value=textToShow;}}}}