// JavaScript Document

<!--
function popUp(url) {
	name = "West Side Transport Services";
	newwindow=window.open(url,'name','toolbar=0,scrollbars=1,location=0,height=403,width=537');
	if (window.focus) {newwindow.focus()}
	return false;
}

// -->

<!--
function checkEmail(form){
	with(form){
		if(value=="you@host.com" || value==""){
			alert("Invalid email address.");
			value="";
			focus();
			return false;
		}
		else{
			apos=value.indexOf("@");
			dotpos=value.lastIndexOf(".");
			if (apos<1||dotpos-apos<2){
				alert("Invalid email address.");
				value="";
				focus();
				return false;
			}
			else {
				return true;
			}
		}
	}
}
// -->


<!--
function checkFormValues(form){
	with(form){
		if(value==""){
			alert("Invalid value.");
			value="";
			focus();
			return false;
		}
		else{
			return true;
		}
	}
}
// -->

function checkPhone(form){
    
with(form){
	var stripped = value.replace(/[\(\)\.\-\ ]/g, ''); 	
   if (isNaN(parseInt(stripped))) {
        alert("The phone number contains illegal characters.");
		value="";
		focus();
		return false;
    } else if (!(stripped.length == 10)) {
        alert("The phone number is the wrong length. Make sure you included an area code.");
		value="";
		focus();
		return false;
    }
	else{
		if(value==""){
			alert("You didn't enter a phone number.");
			value="";
			focus();
			return false;
		}
		else{
			return true;
		}
	}
}
    
}