var now_playing_id = ''; function send_feedback() { if (document.getElementById('comment').value != '') { document.form1.submit(); } } function myOwnPic() { window.open('http://www.sonnerie.net/photoperso/index.php?la=&a=', '_blank', 'toolbar=0, location=0, directories=0, status=1, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=640, height=586, left=20, top=20'); } function animatedAvatar() { window.open('http://www.sonnerie.net/phonetoon/index.php?c=US&lang=US&a=', '_blank', 'toolbar=0, location=0, directories=0, status=1, scrollbars=0, resizable=0, copyhistory=0, menuBar=0, width=450, height=450, left=20, top=20'); } function addBookmark() { if (document.all) { window.external.AddFavorite (bookmarkurl, bookmarktitle); } else if (window.sidebar) { window.sidebar.addPanel (bookmarktitle, bookmarkurl, ""); } else { return true; } } function dlWnd(sDlLink) { p = "width=396,height=310,left=20,top=20,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no"; hWnd = window.open(sDlLink, "Hwnd", p); hWnd.focus(); } function playPreview (sType, file, id) { var sPlayer = ''; var go = true; if (now_playing_id == id) { // same play button sType = ''; file = ''; go = false; now_playing_id = ''; document.getElementById("play_button_"+id).src = "../images/buttons/but_play_n.gif"; } else { // other play button if (now_playing_id != '') { document.getElementById("play_button_"+now_playing_id).src = "../images/buttons/but_play_n.gif"; now_playing_id = id; go = true; } } if (go) { document.getElementById("play_button_"+id).src = "../images/buttons/but_stop_n.gif"; now_playing_id = id; } sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; sPlayer += ''; document.getElementById("previewPlayer").innerHTML = sPlayer; } function scrshtPreview(sLink) { p = "height=300,width=300,left=100,top=100,toolbar=no,directories=no,status=no,scrollbars=auto,resizable=no,menubar=no"; hWnd = window.open(sLink, "Hwnd", p); hWnd.focus(); } function siteSearch() { formOK = true; f = document.forms['fFind']; if (formOK == true && f.selectCat.value == '') { formOK = false; } if (formOK == true && f.keyWord.value == '') { formOK = false; } if (formOK == true) { loc = f.selectCat.value + '?q=' + f.keyWord.value; self.location = loc; } } function mKp() { if (window.event.keyCode == 13) { siteSearch(); } return false; }