<!--- JavaScript to open resources in another window --->	

<!-- 	
function openESource(TargetURL) {
	var winESource = null
	if ( !winESource || winESource.closed)
	{
		winESource =	window.open(TargetURL,"ESource","scrollbars=Yes,menubar=Yes,location=yes,height=500,width=645,resizable=yes");
		winESource.opener = self;
		agent = navigator.userAgent;
		
		if ((agent.indexOf('Mozilla') != -1) && ((agent.indexOf('Spoofer') == -1) && (agent.indexOf('compatible') == -1))) {
			winESource.focus();
		}

	} else
	{
	winESource.focus();
	}
}

function clearTargetForm() {
	document.target_details.srch_prefix.value = "";
	document.target_details.srch_keyword.value = "";
	document.target_details.srch_keyword_tail.value = "";
	document.target_details.srch_jtitle.value = "";
	document.target_details.srch_jtitle_tail.value = "";
	document.target_details.srch_title.value = "";
	document.target_details.srch_title_tail.value = "";
	document.target_details.srch_subject.value = "";
	document.target_details.srch_subject_tail.value = "";
	document.target_details.srch_issn.value = "";
	document.target_details.srch_issn_tail.value = "";
	document.target_details.srch_isbn.value = "";
	document.target_details.srch_isbn_tail.value = "";
	document.target_details.srch_author.value = "";
	document.target_details.srch_author_tail.value = "";
}

function targetSample(url) {
	winSample =	window.open(url,"TargetSample","scrollbars=Yes,menubar=Yes,location=yes,height=550,width=645,resizable=yes");
		winSample.opener = self;
}

function set_template(form) {
	form.rad[3].checked = 'on';
}

		//-->

<!-- GR using this in settings->grlinker->display -->
<!-- Original:  Phil Webb (phil@philwebb.com) -->
<!-- Web Site:  http://www.philwebb.com -->
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
function move(fbox, tbox) {
var arrFbox = new Array();
var arrTbox = new Array();
var arrLookup = new Array();
var i;
for (i = 0; i < tbox.options.length; i++) {
arrLookup[tbox.options[i].text] = tbox.options[i].value;
arrTbox[i] = tbox.options[i].text;
}
var fLength = 0;
var tLength = arrTbox.length;
for(i = 0; i < fbox.options.length; i++) {
arrLookup[fbox.options[i].text] = fbox.options[i].value;
if (fbox.options[i].selected && fbox.options[i].value != "") {
arrTbox[tLength] = fbox.options[i].text;
tLength++;
}
else {
arrFbox[fLength] = fbox.options[i].text;
fLength++;
   }
}
arrFbox.sort();
arrTbox.sort();
fbox.length = 0;
tbox.length = 0;
var c;
for(c = 0; c < arrFbox.length; c++) {
var no = new Option();
no.value = arrLookup[arrFbox[c]];
no.text = arrFbox[c];
fbox[c] = no;
}
for(c = 0; c < arrTbox.length; c++) {
var no = new Option();
no.value = arrLookup[arrTbox[c]];
no.text = arrTbox[c];
tbox[c] = no;
   }
} /* End of function move() */
function selectAll(box) {
     for(var i=0; i<box.length; i++) {
     box[i].selected = true;
     }
}
//  End -->