function video_popup(id, has_ad) { // new style video popup var swidth = 790; var sheight = 450; var adheight = 120; if ( has_ad == 1 ) { sheight = sheight + adheight; } url = '/videoplayer/' + id + '.html'; newwindow = window.open(url, 'stuffvideoplayer', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=' + swidth + ',height=' + sheight + ',left = 100,top = 100'); if (window.focus) {newwindow.focus()} } function rugby_video_popup(id, has_ad) { // new style video popup var swidth = 790; var sheight = 560; var adheight = 120; if ( has_ad == 1 ) { sheight = sheight + adheight; } url = '/videoplayer/' + id + '.html'; newwindow = window.open(url, 'stuffvideoplayer', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=' + swidth + ',height=' + sheight + ',left = 100,top = 100'); if (window.focus) {newwindow.focus()} } function confirm_blog_comment(thisform) { if ( ! thisform.author.value || ! thisform.email.value ) { alert("Please complete all required the fields."); return false; } if ( ! thisform.comment.value ) { alert("Please type a comment."); return false; } if ( ! thisform.approveterms.checked ) { alert("Please confirm that you have agreed to the terms and conditions."); return false; } return true; } function livescore(id) { // livescoring popup var swidth = 727; var sheight = 355; url = '/livescoring/' + id + '.html'; newwindow = window.open(url, 'stufflivescoring', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=' + swidth + ',height=' + sheight + ',left = 100,top = 100'); if (window.focus) {newwindow.focus()} } function vPopup(url, has_ad) { // old style video popup for backward compatablity var swidth = 790; var sheight = 450; var adheight = 120; if ( has_ad == 1 ) { sheight = sheight + adheight; } newwindow = window.open(url, 'stuffvideoplayer', 'toolbar=0,scrollbars=0,location=0,status=0,menubar=0,resizable=0,width=' + swidth + ',height=' + sheight + ',left = 100,top = 100'); if (window.focus) {newwindow.focus()} } function featurePopup(url, pWidth, pHeight) { if ( ! pWidth ) { pWidth = 640; } if ( ! pHeight ) { pHeight = 480; } popupwindow = window.open(url,'name','width=' + pWidth + ',height=' + pHeight + ',left = 100,top = 100,resizable=1'); if (window.focus) {popupwindow.focus()} return false; } function galleryPopup(url, has_ad) { var swidth = 778; var sheight = 614; var adheight = 120; var sLeft = 100; var sTop = 100; var sScroll = 0; if ( screen.height <= 800 ) { sTop = 0; } if ( screen.height <= 600 ) { sLeft = 0; sTop = 0; sScroll = 1; } if ( has_ad == 1 ) { sheight = sheight + adheight; } newwindow = window.open(url, 'stuffphotoslideshow', 'toolbar=0,scrollbars=' + sScroll + ',location=0,status=0,menubar=0,resizable=0,width=' + swidth + ',height=' + sheight + ',left = ' + sLeft + ',top = ' + sTop); if (window.focus) {newwindow.focus()} } function mostViewedPanel(panel) { // show the passed panel, hide the others. if ( panel == 'emails' ) { document.getElementById('mostviewedstorieslinks').style.display = 'none'; document.getElementById('mostviewedstories').style.display = 'none'; document.getElementById('mostviewedemailslinks').style.display = 'block'; document.getElementById('mostviewedemails').style.display = 'block'; } else { document.getElementById('mostviewedemailslinks').style.display = 'none'; document.getElementById('mostviewedemails').style.display = 'none'; document.getElementById('mostviewedstorieslinks').style.display = 'block'; document.getElementById('mostviewedstories').style.display = 'block'; } } function classifiedPanel(panel) { if ( panel == 'jobs' ) { document.getElementById('right_col_classifieds_motors').style.display = 'none'; document.getElementById('right_col_classifieds_jobs').style.display = 'block'; document.getElementById('right_col_classifieds_property').style.display = 'none'; } else if ( panel == 'property' ) { document.getElementById('right_col_classifieds_motors').style.display = 'none'; document.getElementById('right_col_classifieds_jobs').style.display = 'none'; document.getElementById('right_col_classifieds_property').style.display = 'block'; } else { document.getElementById('right_col_classifieds_motors').style.display = 'block'; document.getElementById('right_col_classifieds_jobs').style.display = 'none'; document.getElementById('right_col_classifieds_property').style.display = 'none'; } }