jQuery.browser={};(function(){jQuery.browser.msie=false; jQuery.browser.version=0;if(navigator.userAgent.match(/MSIE ([0-9]+)\./)){ jQuery.browser.msie=true;jQuery.browser.version=RegExp.$1;}})(); function numericValNumbersOnly(obj) { var tam = obj.value.length; var numeric = false; for(var i=0;i= 48 && caracter <= 57) numeric = true; else { obj.value=obj.value.substring(0,tam-1); numericVal(obj); } } } function menuHover(id) { $('#menu_img').attr("src","http://www.rakmarathon.org/images/m"+id+".png"); } function results2007() { $.get("http://www.rakmarathon.org/website_snippets/results_2007.html", { }, function(data){ $.prompt(data,{ show:'slideDown' }); }); } function pressPics(year) { $.get("http://www.rakmarathon.org/website_snippets/press_photos_" + year +".html", { }, function(data){ $.prompt(data,{ show:'fadeIn' }); }); } function pressPicsAthletes(year) { $.get("http://www.rakmarathon.org/website_snippets/athletes_" + year +".html", { }, function(data){ $.prompt(data,{ show:'fadeIn' }); }); } function prot() { alert('We believe we charge a fair price for a legitimate download. Please purchase your photo selection.'); } function sgetHelpLiveQuestions(str) { document.getElementById('livesearch_help').style.display='block'; if(str.length==0) { $('#livesearch_help').slideUp('slow'); $('#livesearch_help').css('border','1px'); } $.get("http://www.rakmarathon.org/action/help_live_search.php", { q:str }, function(data){ $('#livesearch_help').html(data); $('#livesearch_help').slideDown('slow'); $('#livesearch_help').css('border','1px solid #ccc'); $('#livesearch_help').css('border-top','0px'); if(data == '') { $('#livesearch_help').css('border','0px'); } }); } function sgetHelpLiveQuestionsAr(str) { document.getElementById('livesearch_help').style.display='block'; if(str.length==0) { $('#livesearch_help').slideUp('slow'); $('#livesearch_help').css('border','1px'); } $.get("http://www.rakmarathon.org/action/help_live_search_ar.php", { q:str }, function(data){ $('#livesearch_help').html(data); $('#livesearch_help').slideDown('slow'); $('#livesearch_help').css('border','1px solid #ccc'); $('#livesearch_help').css('border-top','0px'); if(data == '') { $('#livesearch_help').css('border','0px'); } }); } function hideResultsHelp() { document.getElementById('livesearch_help').style.display='none'; } function addQuestionVote(question_id, vote) { xmlMessage = ''; var url = 'http://www.rakmarathon.org/action/vote_helptext.php?q=' + question_id + '&v=' + vote; xmlHttp.open("POST", url, false); xmlHttp.setRequestHeader('Content-Type','text/html'); xmlHttp.send(xmlMessage); document.getElementById('vote_response' + question_id).style.display = 'none'; document.getElementById('vote_response' + question_id).innerHTML = "
Thank you for your feedback!"; Fadein('vote_response' + question_id,450); document.getElementById('vote_selection' + question_id).style.display = 'none'; } function printimage(url){ var w = window.open(url); w.window.print(); }