function CheckSelect(a,b){for(i=0;;i++){thisVar=a+"_"+i;obj=document.getElementById(thisVar);if(obj){if(obj.checked){return true}}else{break}}window.alert(b);return false}function CheckSearch(a,b){if(document.forms[a].elements.keywords.value==""){window.alert(b);document.forms[a].elements.keywords.focus();return false}else{return true}}function CheckAll(a){for(i=0;;i++){var b=document.getElementById(a+i);if(!b){break}b.checked=true}return}function UncheckAll(c){var a=document.getElementById("all_"+c);var b=true;for(i=0;;i++){var d=document.getElementById(c+i);if(!d){break}else{if(!d.checked){b=false;break}}}a.checked=b}function printThis(){document.styleSheets[0].disabled=true;document.styleSheets[1].disabled=false;window.print();setTimeout("printDone()",700)}function printDone(){document.styleSheets[1].disabled=true;document.styleSheets[0].disabled=false}function eCheckEMail(b){s=b.value;if(s.indexOf("@")==-1){return false}if(s.indexOf(".")==-1){return false}at=false;dot=false;for(var a=0;a<s.length;a++){ch=s.substring(a,a+1);if((ch>="A"&&ch<="Z")||(ch>="a"&&ch<="z")||(ch=="@")||(ch==".")||(ch=="_")||(ch=="-")||(ch>="0"&&ch<="9")){if(ch=="@"){if(at){return false}else{at=true}}if((ch==".")&&at){dot=true}}else{return false}}return dot}function CheckEMail(d,c,a){for(var b=0;b<c.length;b++){if(!eCheckEMail(d.elements[c[b]])){alert(a);d.elements[c[b]].focus();return false}}return true}function CheckRequiredFields(e,b,a){for(i=0;i<b.length;i++){if(e.elements[b[i]].type=="radio"){var c=e.elements[b[i]].name;var d=e.elements[c].length;for(n=0;n<d;n++){if(e.elements[c][n].checked){return true}}alert(a);e.elements[b[i]].focus();return false}else{if(e.elements[b[i]].value==""){alert(a);e.elements[b[i]].focus();return false}}}return true}function CheckForm(e,b,a,c,d){if(CheckRequiredFields(e,a,d)){if(CheckEMail(e,b,c)){return true}}return false}function changeLang(){var b=$("#chlang")[0];var a=b.options[b.selectedIndex].value;if(a==""){return}location.href=a}function CheckLogin(b,f,d,c){var e=document.forms[b].elements.cuser.value;var a=document.forms[b].elements.cpass.value;if(e==""&&a==""){window.alert(f);document.forms[b].elements.cuser.focus();return false}else{if(e==""){window.alert(d);document.forms[b].elements.cuser.focus();return false}else{if(a==""){window.alert(c);document.forms[b].elements.cpass.focus();return false}else{return true}}}}function menuOver(a){$("#menu_"+a).addClass("head_menu_over")}function menuOut(a){$("#menu_"+a).removeClass("head_menu_over")}function setCurrentMenu(b,a){menuOver(b);$("#menu_"+b).attr("onmouseout","")}function switchTab(b,a,c){for(i=0;i<c;i++){$("#tabc"+b+"_"+i).css("display","none");$("#tabb"+b+"_"+i).removeClass("tab_button"+b+"_"+i+"_over")}$("#tabb"+b+"_"+a).addClass("tab_button"+b+"_"+a+"_over");$("#tabc"+b+"_"+a).fadeIn(300)}function showAtch(a){var b=$(a);if(b.css("visibility")!="visible"){b.css("visibility","visible");$(a+" object").css("visibility","visible")}}function hideAtch(a){var b=$(a);if(b.css("visibility")!="hidden"){b.css("visibility","hidden");$(a+" object").css("visibility","hidden")}}var currentNews=0;var intTickSpeed=5000;function ClicktNav(a){if(!arrNewsItems.length){return}$("#"+a).mouseup(function(){$(this).removeClass("tnav"+a)}).mousedown(function(){$(this).addClass("tnav"+a)});if(a=="next"){nextNews()}else{if(a=="back"){prevNews()}}}function nextNews(){setNews(currentNews)}function prevNews(){setNews(currentNews-2)}function initTicker(){if(!arrNewsItems.length){return}$("#ticker")[0].onmouseover=stopTicker;$("#ticker")[0].onmouseout=resumeTicker;$("#back")[0].onmouseover=stopTicker;$("#next")[0].onmouseover=stopTicker;$("#next")[0].onmouseout=resumeTicker;$("#back")[0].onmouseout=resumeTicker;playTicker()}function stopTicker(){clearTimeout(tickerTimerID)}function resumeTicker(){clearTimeout(tickerTimerID);tickerTimerID=self.setTimeout("playTicker()",intTickSpeed)}function playTicker(){setNews(currentNews);tickerTimerID=self.setTimeout("playTicker()",intTickSpeed)}function setNews(a){if(arrNewsItems.length<a+1){a=0}else{if(a<0){a=arrNewsItems.length-1}}strResults="";strResults+='<a href="'+arrNewsItems[a][1]+'" target="_top">';strResults+=arrNewsItems[a][0]+"</a>";$("#ticker_content").html(strResults);var c=$("#ticker_content").width();var b=$("#ticker_content").height();$("#ticker_typer").css({width:c,height:b}).animate({width:0},1000,function(){});currentNews=a+1}function TabequalHeight(c,d,b,a){btallest=0;ctallest=0;c.each(function(){thisHeight=$(this).outerHeight();btallest+=thisHeight});d.each(function(){$(this).css("display","block");thisHeight=$(this).height();$(this).css("display","none");if(thisHeight>ctallest){ctallest=thisHeight}});d.height(ctallest);var e=btallest+ctallest+a;b.height(e)}function equalHeight(a){tallest=0;a.each(function(){thisHeight=$(this).height();if(thisHeight>tallest){tallest=thisHeight}});a.height(tallest)}function switchBox(a,b){$("."+a).each(function(){$(this).removeClass(a+"_over")});$("."+a+"_img").each(function(){$(this).css("display","none")});$("#"+a+b).addClass(a+"_over");$("#"+a+"_img"+b).css("display","block")};