function validateForm(theForm) {
	
	if (!theForm.Name.value) {
		alert("You must enter your Full Name.");
		theForm.Name.focus();
		return false;
	}
	
	if (theForm.Email.value=="")
	{   alert("Please enter your Email Address.");
		theForm.Email.focus();
		return false;
	} 
	
	var emailFilter=/^.+@.+\..{2,3}$/;
	if (!(emailFilter.test(theForm.Email.value))) { 
	   alert("Please enter a valid email address.");
	   return false;
	}
	
		return true;
}

function afilter(ref,op) {    
    ref.filters.alpha.opacity=op;
}

// OPENS THE WINDOW TO THE UPPER LEFT HAND SIDE TO THE SCREEN
function openWindow(width,height,strurl,winName,scrollb) {
    x = (640 - width)/2, y = (480 - height)/10;

    if (screen) {
        y = (screen.availHeight - height)/10;
        x = (screen.availWidth - width)/10;
    }
    
    if (screen.availWidth > 1800) { 
	x = ((screen.availWidth/2) - width)/10; 
    } 
	window.open(strurl,winName,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars='+scrollb);
}

// OPENS THE WINDOW IN THE CENTER OF THE SCREEN
function openWindowM(width,height,strurl,winName,scrollb) {
    x = (640 - width)/2, y = (480 - height)/2;

    if (screen) {
        y = (screen.availHeight - height)/2;
        x = (screen.availWidth - width)/2;
    }
    
    if (screen.availWidth > 1800) { 
	x = ((screen.availWidth/2) - width)/2; 
    } 
	window.open(strurl,winName,'width='+width+',height='+height+',screenX='+x+',screenY='+y+',top='+y+',left='+x+',scrollbars='+scrollb);
}