function slideshow(ship_id,type) { // window.open("slideshow.php?id="+ship_id+"&type="+type,"slideshow","height=300,width=400,resizable=yes"); window.open("slideshow.php?id="+ship_id+"&type="+type,"slideshow","height=650,width=650,resizable=yes,scrollbars=1"); } function manualslideshow(ship_id,type) { window.open("showimages.php?id="+ship_id+"&type="+type,"slideshow"); } function check(id,type,seq) { if (cycle==true) window.location="slideshow.php?id="+id+"&type="+type+"&seq="+seq; } function change(id,type,seq) { if (cycle==true) { cycle=false; document.forms[0].elements['control'].value="Start"; } else { cycle=true; setTimeout("check('"+id+"','"+type+"','"+seq+"')",2000); document.forms[0].elements['control'].value="Stop"; } } function checkEmail(form) { if (form.elements['email'].value.match(/^[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)*\@[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)+$/)==null) { alert("Please enter a valid email address"); form.elements['email'].focus(); return false; } else return true; } function checkForm(form) { if (checkEmail(form)) { if (form.elements['name'].value=="") { alert("Please enter your name"); form.elements['name'].focus(); return false; } if (form.elements['adults'].value=="") { alert("Please select the number of adults"); form.elements['adults'].focus(); return false; } else return true; } else return false; } function checkContactForm(form) { if (form.elements['name'].value=="") { alert("Please enter your name"); form.elements['name'].focus(); return false; } if (form.elements['email'].value.match(/^[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)*\@[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+(?:\.[^\x00-\x20()<>@,;:\\".[\]\x7f-\xff]+)+$/)==null) { alert("Please enter a valid email address"); form.elements['email'].focus(); return false; } if (form.elements['question'].value=="") { alert("Please enter your question"); form.elements['question'].focus(); return false; } return true; }