  var rpxJsHost = (("https:" == document.location.protocol) ? "https://" : "http://static.");
  document.write(unescape("%3Cscript src='" + rpxJsHost +
"rpxnow.com/js/lib/rpx.js' type='text/javascript'%3E%3C/script%3E"));

  RPXNOW.overlay = true;
  RPXNOW.language_preference = 'nl';

	function valideer(){
		var myStr=new String(document.frm.tel.value);

		if (document.frm.datum.value=="today"){
			alert("Please call for today!\nVoor vandaag bel svp!");
			return false;
		}
		
		if (document.frm.naam.value==""){
			alert("Please fill in your name!\nVult u a.u.b. uw naam in!");
			return false;
		}

		if (document.frm.pax.value==""){
			alert("Please fill in the number of persons!\nVult u a.u.b. aantal personen in!");
			return false;
		}

		if (document.frm.tel.value==""){
			alert("Please fill in your mobile phone number!\nVult u a.u.b. uw mobiele nummer in!");
			return false;
		}

		if (myStr.length<10){
			alert("Incorrect mobile phone number! \n Incorrecte mobiele nummer!");
			return false;
		}

		var email2 = document.frm.email.value;
		AtPos = email2.indexOf("@");
		StopPos = email2.lastIndexOf(".");


		if (email2=""){
			alert("Please fill in your e-mail address!\nVult u a.u.b. uw e-mail adres in!");
			return false;
		}


		if (AtPos == -1 || StopPos == -1) {
			alert("Please fill in a valid e-mail address!\nVult u a.u.b. een geldig e-mail adres in!");
			return false;
		}

		if (StopPos < AtPos) {
			alert("Please fill in a working e-mail address!\nVult u a.u.b. een werkend e-mail adres in!");
			return false;
		}

		if (StopPos - AtPos == 1) {
			alert("Please fill in a correct e-mail address!\nVult u a.u.b. een correcte e-mail adres in!");
			return false;
		}

		return true;
	}

    function adjusttime(dep) {
        var options = new Array();
        var obj = document.getElementById("time");
        while(obj.firstChild) {
            obj.removeChild(obj.firstChild);
        }

        if (dep == "sushi") {
            options[0] = "1st Shift 17:30-20:00";
            options[1] = "2nd Shift 20:15-22:15";
        } else if (dep == "lunch") {
            j=0;
            for (i=12;i<15;i++) {
                options[j] = i + ':00';
                options[j+1] = i + ':30';
                j+=2;
            }
            options[j] = i + ':00';
        } else {
            options[0] = "";
        }
        for (i=0; i<options.length; i++) {
            timeoption = document.createElement("option");
            timeoption.setAttribute("value", options[i]);
            timetext = document.createTextNode(options[i]);
            timeoption.appendChild(timetext);
            obj.appendChild(timeoption);
        }
    }


