function reload_new_names(){document.getElementById("reloadForm").submit();return false}function select_new_nss_names(a){xmlhttp=new getXMLHTTP();xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){document.getElementById("new_selected_names").innerHTML=xmlhttp.responseText;check_favcookie()}};xmlhttp.open("GET","/ajax/get_nssnames.php?id="+a+"&t="+Math.round(100*Math.random()),true);xmlhttp.send(null)}function save_nss_vote(c,a,b){xmlhttp=new getXMLHTTP();xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){return true}};xmlhttp.open("GET","/ajax/save_nssvote.php?path="+b+"&id="+c+"&btn="+a+"&t="+Math.round(100*Math.random()),true);xmlhttp.send(null)}function pregnant_button(){if(chk_pregnant_sw==0){document.getElementById("chk_pregnant_img").src="/images/input/checkbox_check_pink.gif";document.getElementById("chk_pregnant2").value="1";chk_pregnant_sw=1}else{document.getElementById("chk_pregnant_img").src="/images/input/checkbox_pink.gif";document.getElementById("chk_pregnant2").value="0";chk_pregnant_sw=0}}function agree_button(){if(chk_agree_sw==0){document.getElementById("chk_agree_img").src="/images/input/checkbox_check_pink.gif";document.getElementById("chk_agree2").value="1";chk_agree_sw=1}else{document.getElementById("chk_agree_img").src="/images/input/checkbox_pink.gif";document.getElementById("chk_agree2").value="0";chk_agree_sw=0}}function hide_saved(b,a){if(document.getElementById("vote2"+a+"_lnk"+b).innerHTML.indexOf("Disl")!=-1){document.getElementById("vote2"+a+"_lnk"+b+"_saved").innerHTML=""}else{document.getElementById("vote2"+a+"_lnk"+b+"_saved").innerHTML=""}}function change_vote(f,c,e){var b=document.getElementById("vote_icon1_"+f);var a=document.getElementById("vote_icon2_"+f);if(b.className=="icon_oke_gray"&&a.className=="icon_stop_gray"){if(c==1){b.className="icon_oke";save_nss_vote(f,1,e)}if(c==2){a.className="icon_stop";save_nss_vote(f,2,e)}}else{if(b.className=="icon_oke_gray"){if(c==1){b.className="icon_oke";a.className="icon_stop_gray";save_nss_vote(f,1,e)}}else{if(a.className=="icon_stop_gray"){if(c==2){b.className="icon_oke_gray";a.className="icon_stop";save_nss_vote(f,2,e)}}}}var d=document.getElementById("vote2"+c+"_lnk"+f+"_saved").innerHTML.indexOf("Saved");if(d==-1){document.getElementById("vote21_lnk"+f+"_saved").innerHTML="";document.getElementById("vote22_lnk"+f+"_saved").innerHTML="";document.getElementById("vote2"+c+"_lnk"+f+"_saved").innerHTML="&nbsp; (Saved)"}check_votes()}function check_votes(){var b=0;for(var a=0;a<votelinks.length;a++){if(document.getElementById("vote21_lnk"+votelinks[a]+"_saved").innerHTML!=""||document.getElementById("vote22_lnk"+votelinks[a]+"_saved").innerHTML!=""){b++}}if(b>=3){document.getElementById("default_footer").style.display="none";document.getElementById("finish_footer").style.display=""}}function add_liked_names(){var b="";for(var a=0;a<votelinks.length;a++){if(document.getElementById("vote21_lnk"+votelinks[a]+"_saved").innerHTML!=""){b=b+votelinks[a]+","}}if(b!=""){favframe.location.replace("/rightcolumn/favourite_names.php?nid="+b)}}var votelinks=new Array();var date=new Date();var tzo=(date.getTimezoneOffset()/60)*-1;