function viewVideo(B,E,D){var A="../page/videoAgeGate.php?filename="+B+"&fullpath="+E+"&esrb="+D;var C="videoDownload";var F="location=0,directories=0,status=no,menubar=no,scrollbars=no,resizable=no,titlebar=no,toolbar=no,width=480,height=200";window.open(A,C,F)}function validateForm(D){var H="";var G=0;if(D.months.selectedIndex==0){H+="- Please select a month\n";G++}if(D.days.selectedIndex==0){H+="- Please select a day\n";G++}if(D.years.selectedIndex==0){H+="- Please select a year\n";G++}if(G){H="The form was not submitted due to the following problem"+((G>1)?"s":"")+":\n\n"+H+"\nPlease fix "+((G>1)?"these":"this")+" problem"+((G>1)?"s":"")+" and resubmit the form.\n";alert(H);return false}else{var B=new Date();var F=new Date(parseInt(D.years.options[D.years.selectedIndex].value),parseInt(D.months.options[D.months.selectedIndex].value),parseInt(D.days.options[D.days.selectedIndex].value));var C=parseInt(B.getFullYear()-F.getFullYear());var A=parseInt(B.getMonth()-F.getMonth());var E=parseInt(B.getDate()-F.getDate());if(E<0){A--}if(A<0){C--}if(C<13){D.age_ok.value=0;return true}else{D.age_ok.value=1}tempMonth=D.months[D.months.selectedIndex].value-0;tempMonth+=1;D.birth_date.value=D.years[D.years.selectedIndex].value+"-"+tempMonth+"-"+D.days[D.days.selectedIndex].value;return true}};