<!-- // Function to 'activate' images.
 
function swap(img,imgsrc){
	document[img].src=[imgsrc];
}

//Preload Images
//These are all the rollovers 
if (document.images) {            // Active Images
           	viewpdf_on = new Image(); 
            viewpdf_on.src = "main_imgs/view_pdf_on.gif";
			flashreq_on = new Image(); 
            flashreq_on.src = "main_imgs/requires_flash_on.gif";
			acrobatreq_on = new Image(); 
            acrobatreq_on.src = "main_imgs/requires_acrobat_on.gif";
			flashenter_on = new Image(); 
            flashenter_on.src = "main_imgs/flash_enter_on.gif";
}

// New Window w/location

function winpop(w,h,url,winnm){
    var xpos=(screen.width)/2-(w/2);
    var ypos=(screen.height)/2-(h/2);
	var features="toolbar=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+w+",height="+h+",left="+xpos+",top="+ypos+"";
	var x=window.open(url,winnm,features);
	x.focus();
}

function scrollpop(w,h,url,winnm){
    var xpos=(screen.width)/2-(w/2);
    var ypos=(screen.height)/2-(h/2);
	var features="toolbar=no,status=yes,menubar=no,location=no,scrollbars=auto,resizable=no,width="+w+",height="+h+",left="+xpos+",top="+ypos+"";
	var x=window.open(url,winnm,features);
	x.focus();
	
}

// Functions to check form validity
function isEmail(elm) {
	if (elm.value.indexOf("@") != "-1" &&
		elm.value.indexOf(".") != "-1" &&
		elm.value != "")
		return true;
		else return false;
}

function isFilled(elm) {
	if (elm.value == "" ||
		elm.value == null)
	return false;
	else return true;
}

function formFilled(form) {
var errorMessage, valid_func;
errorMessage = "Please fill in a valid \n \n";
valid_func = 1;
	if (isEmail(form.email) == false) {
	errorMessage += "email address\n";
	valid_func = 0;
	form.email.focus();
	}
	errorMessage += "\n so we can reply to your request.";
	if (valid_func == 0) {
		alert(errorMessage);
		return false;
	}
 	else 
 		return true;
}

-->
