<!--
function openScreen(screen) {
	window.open(screen,'Screen','toolbar=no,location=no,directories=no,status=no,scrollbars=auto,resizable=no,copyhistory=no,width=240,height=200');
}

var invalidEmail 	= "Please enter a valid E-mail address.";

function Empty(theField) {
	if (theField.value=="")
		return (true);	
	return (false); 
}

// Ensure exact length
function Shorter(theField, lenn) {
	if (theField.value.length < lenn) {
		s = "";
		s = "Information you entered is less than minimum of: " + lenn.toString();
		alert(s);
		return (true);
	}
	return (false); 
}

// Check for width
function Longer(string, max) {
	if( string.value.length > max ) 	{
		s = "";
		s = "Information you entered has exceeded allowable maximum of: " + max.toString();
		alert(s);
		return (true);
	}
    return (false);
}

// Check for email address: look for [@] and [.]
function Email(elm) {
	if (elm.value.indexOf("@") + "" != "-1" &&
		elm.value.indexOf(".") + "" != "-1" && elm.value != "")
	    return (true);
	else	{
		alert(invalidEmail);
		return (false);
	}
}


function checkData() {

// Check mandatory Full Name
	if( Empty(document.classic.fullname) )	{
		alert("Please enter your full name.");
		document.classic.fullname.focus(); 
		return (false);
	}

// Check mandatory e-mail 
	if( Empty(document.classic.email) )	{
		alert("Please enter your e-mail address.");
		document.classic.email.focus(); 
		return (false);
	}
	if( !Email(document.classic.email) )	{
		document.classic.email.focus(); 
		return(false);
	}

// Check mandatory telephone
	if( Empty(document.classic.telephone) )	{
		alert("Please enter your telephone.");
		document.classic.telephone.focus(); 
		return (false);
	}
	
// Check mandatory paymentmethod
	if( Empty(document.classic.paymentmethod) )	{
		alert("Please select your prefered method of payment.");
		document.classic.paymentmethod.focus(); 
		return (false);
	}
	
}

//-->
