// JavaScript Document

function fnPrint_Screen()
{
	window.print();
	alert("Please send this printed page with your reserve materials to Reserves Dept, Case Library\nor deliver to the circulation desk.");
}

function fnPrint_or_Email(frm)
{
	var copyright=''
	var copyright_colln=frm.getElementsByTagName('input')
	//alert('copyright_colln.length='+copyright_colln.length)

	for (var i=0;i<copyright_colln.length&&copyright=='';i++) { 
		//alert(i+copyright_colln[i].name)
		if(copyright_colln[i].name=='Copyright'&&copyright_colln[i].checked==true){
			//alert(i+'  '+copyright_colln[i].value)
			copyright=copyright_colln[i].value}
		}
	
	//alert("copyright="+copyright)
	switch (copyright)
	{
	 case "Journal_Finder":
	 case "Permission_requested":
	 case "Hard_Copy_Library_Owns":
	 case "Public_Domain_2nd_Use":
	 case "Instructor_Author_2nd" :
				//alert("submitting")
			frm.submit()
			break
			
	case "1st_Time_Fair_Use":
	case "Public_Domain" :
	case "Instructor_Author" :
	case "Instructor_Author_1st_Use" :
	case "Hard_Copy_Instructor_Owns" :
		   //alert("Printing")
		   fnPrint_Screen()
		   break
	default : alert("Please select one of the copyright options.")	   
	}

}

