// launch subject window 
function subjectWin() {
	subjectWindow = window.open("/exist/processing/viewTerms.xql","subjectWindow","width=760,height=600,resizable,scrollbars");
	subjectWindow.focus();
}

// launch subject window collection specific
function subjectCollWin(url) {
	subjectWindow = window.open(url,"subjectWindow","width=400,height=600,resizable,scrollbars");
	subjectWindow.focus();
}

// launch subject window collection specific
function editGenreList() {
	subjectWindow = window.open("/exist/processing/genre.xql","subjectWindow","width=325,height=300,resizable,scrollbars");
	subjectWindow.focus();
}

// launch new window 
function openWin(url) {
	newwindow = window.open(url,'name',"width=600,height=400,resizable,scrollbars");
	newwindow.focus();
}

//Opens link in parent window
function pLink(theURL){
	parent.opener.location=theURL;
}

//Checks forms to make sure they aren't blank

function validate() {
{
    if ( document.form.pid.value == '' )
    {
        alert('No name was entered!')
        return false;
    }
}
}