<!--// Popup Window Function.
function printWindow(path,scroll,w,h)
{
	window.open(path,'popwindow','scrollbars='+scroll+',location=no,width='+w+',height='+h+',left=115,top=150')
}
function printSelectPub(vpview){
	p=eval("document.vpForm.allPub.value");
	all=p.split(",");
	var selected=new Array();
	j=0;
	for(i=0; i<all.length; i++){
		ind=eval("document.vpForm.p" + all[i]);
		if(ind.checked == true){
			selected[j]=all[i];
			j++;
		}
	}
	if(selected.length==0){
		alert("You must select one or more publications to use the Print Selected function!");
	}else{
		s=selected.join(",");
		window.open('windowPub.cfm?futn=print&extent=select&vpview='+vpview+'&s='+s,'newWindow','width=640,height=480,location=no,scrollbars=yes,toolbar=no');
	}
}
function printSelect(type,vview){
	if(type=="c"){
		c=eval("document.vForm.allCamp.value");
		all=c.split(",");
	}else if(type=="t"){
		t=eval("document.vForm.allTrail.value");
		all=t.split(",");
	}else if(type=="v"){
		v=eval("document.vForm.allVisitor.value");
		all=v.split(",");
	}
	var selected=new Array();
	j=0;
	for(i=0; i<all.length; i++){
		ind=eval("document.vForm." + type + all[i]);
		if(ind.checked == true){
			selected[j]=all[i];
			j++;
		}
	}
	if(selected.length==0){
		alert("You must select one or more studies to use the Print Selected function!");
	}else{
		s=selected.join(",");
		window.open('window.cfm?futn=print&extent=select&tab='+type+'&vview='+vview+'&s='+s,'newWindow','width=640,height=480,location=no,scrollbars=yes,toolbar=no');
	}
}
function changeViewW(tab,WID){
	document.location.href = "index.cfm?fuse=recw&search=w&tab="+tab+"&wview="+document.wForm.wview.options[document.wForm.wview.selectedIndex].value+"&WID="+WID;
}
function changeViewA(tab,SID,AID,asort){
	document.location.href = "index.cfm?fuse=reca&search=a&tab="+tab+"&aview="+document.aForm.aview.options[document.aForm.aview.selectedIndex].value+"&SID="+SID+"&AID="+AID+"&asort="+asort;
}
function changeViewS(tab,pars){
	document.location.href = "index.cfm?fuse=recs&search=s&tab="+tab+"&sview="+document.sForm.sview.options[document.sForm.sview.selectedIndex].value+"&"+pars;
}
function changeViewP(pars){
	document.location.href = "index.cfm?fuse=pub&pview="+document.pForm.pview.options[document.pForm.pview.selectedIndex].value+"&"+pars;
}
function changeViewV(tab){
	document.location.href = "index.cfm?fuse=view&tab="+tab+"&vview="+document.vForm.vview.options[document.vForm.vview.selectedIndex].value;
}
function changeViewVP(){
	document.location.href = "index.cfm?fuse=viewPub&vpview="+document.vpForm.vpview.options[document.vpForm.vpview.selectedIndex].value;
}
function selector(type,formType){
	var all=new Array();
	if(type=="c"){
		c=eval("document." + formType + ".allCamp.value");
		all=c.split(",");
	}else if(type=="t"){
		t=eval("document." + formType + ".allTrail.value");
		all=t.split(",");
	}else if(type=="v"){
		v=eval("document." + formType + ".allVisitor.value");
		all=v.split(",");
	}else if(type=="p"){
		p=eval("document." + formType + ".allPub.value");
		all=p.split(",");
	}else if(type=="w"){
		w=eval("document." + formType + ".allWild.value");
		all=w.split(",");
	}
	chg=eval("document." + formType + "." + type);
	if(chg.checked==true){
		for(i=0; i<all.length; i++){
			chgBase=eval("document." + formType + "." + type + all[i]);
			chgBase.checked = true;
			chgBase.value=1;
		}
	}else{
		for(i=0; i<all.length; i++){
			chgBase=eval("document." + formType + "." + type + all[i]);
			chgBase.checked = false;
			chgBase.value=0;
		}
	}
}
function checker(type,formType){
	if(type=="c"){
		c=eval("document." + formType + ".allCamp.value");
		s=eval("document." + formType + ".selectCamp");
		all=c.split(",");
	}else if(type=="t"){
		t=eval("document." + formType + ".allTrail.value");
		s=eval("document." + formType + ".selectTrail");
		all=t.split(",");
	}else if(type=="v"){
		v=eval("document." + formType + ".allVisitor.value");
		s=eval("document." + formType + ".selectVisitor");
		all=v.split(",");
	}else if(type=="p"){
		p=eval("document." + formType + ".allPub.value");
		s=eval("document." + formType + ".selectPub");
		all=p.split(",");
	}
	var selected=new Array();
	j=0;
	for(i=0; i<all.length; i++){
		ind=eval("document." + formType + "." + type + all[i]);
		if(ind.checked == true){
			selected[j]=all[i];
			j++;
		}
	}
	if(selected.length==0){
		alert("You must select one or more items by clicking on individual checkboxes or by clicking on the Select All Records Below checkbox to select all records. Once you have selected one or more items, click on the View Selected link to print your selections.");
	}else{
		s.value=selected.join(",");
		f=eval("document." + formType);
		f.submit();
	}
}
-->