/**********************************************************************Language:       Javascript 1.5Web Site:       http://www.bioprocessinginc.com/File Path:      /global_scripts/Copyright:      &copy;2005 Axon Design &amp; Marketing (www.axondm.com)Created:        2005-02-02 17:25:59Created by:     Jamie Peloquin****************************************************************************************************************************************Javascript worksheet********************************************************************//* Submit Form --------------------------------------------------- */function form_submit($FORM) {	document.getElementById($FORM).submit();}//END/* Pop Window Generic - Centered --------------------------------- */function pop_generic(NAME,URL,WD,HT,TOOL,LOCATION,MENU,SCROLL,STATUS,RESIZE){	if(!NAME){NAME = "genWin"}	if(!WD){WD = "700"}	if(!HT){HT = "760"}	if(!TOOL){TOOL = "yes"}	if(!LOCATION){LOCATION = "yes"}	if(!MENU){MENU = "yes"}	if(!SCROLL){SCROLL = "yes"}	if(!STATUS){STATUS = "yes"}	if(!RESIZE){RESIZE = "yes"}	var halfW = (WD/2) 	var halfH = (HT/2)   	var screenW = screen.availWidth    var screenH = screen.availHeight        var screenX = ((screenW / 2) - halfW) // is half the width of the window    var screenY = ((screenH / 2) - halfH) // is half the height of the window		var WINNAME = NAME+'_win'	if(document.layers){ //Fixes Netscape 4 bug    	var NAME = window.open(URL, WINNAME);	}	else{		var NAME = window.open(URL, WINNAME, 'width='+WD+', height='+HT+', top='+screenY+', left='+screenX+', toolbar='+TOOL+', location='+LOCATION+', menubar='+MENU+', scrollbars='+SCROLL+', status='+STATUS+', resizable='+RESIZE);    }    //NAME.document.write('<?= Content-type: application/pdf; Content-Disposition: attachment; ?>');        //NAME.document.write("<?php echo 'Content-type: application/pdf; Content-Disposition: attachment;' ?>");    NAME.focus();}//ENDfunction validateAddDoc(fObj) {	if(fObj.title.value == '' || fObj.document.value == '') {		alert("Please enter a valid title and file.\n");		return false;	}		fObj.action.value = 'upload';		document.forms[0].submit();}function confirmRemove(fObj, doc_id) {	var remove = confirm("Are you sure you want to remove the selected document? These changes cannot be undone.\n");		if(remove) {		location.href="document_remove.php?doc_id=" + doc_id;	}	}