function popwin(URL){
	var newURL = URL + ((URL.indexOf('?') != -1) ? '&':'?') + 'popup=yes';
	popup_window = window.open(newURL,'popup','status=no,scrollbars=no,resizable=yes,width=600,height=430,top=30,left=15');
	if (window.focus) {popup_window.focus();}
	return false;
}

/* For the popup link add onclick="return popwin(this.href);" to the <a> tag. */

function fullwindow(URL) {
	var height = (window.screen.height)-55;
	var width = (window.screen.width)-10;
	var newURL = URL + ((URL.indexOf('?') != -1) ? '&':'?') + 'fullscreen=yes';
	
	if (window.opera) {
		newwindow = window.open(newURL,'popup','fullscreen=yes,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no');
	}
	else {	
		newwindow = window.open(newURL,'popup','toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=no,width=' + width + ',height=' + height);
		newwindow.moveTo(0, 0);
	}
	if (window.focus) {newwindow.focus()}
	return false;
}


/* If you're dealing only with .gif files then use the two functions below */
function Over(image) { if(image && document.images && image.src.indexOf("_on.gif")==-1){image.src = image.src.substring(0,(image.src.indexOf(".gif"))) + "_on.gif";}}
function Out(image) { if(image && document.images && image.src.indexOf("_on.gif")!=-1){image.src = image.src.substring(0,(image.src.indexOf("_on.gif"))) + ".gif";}}

/* If you're dealing with mixed filetypes then use the two functions below */
function Overtype(image, filetype) { if(image && document.images && image.src.indexOf("_on."+filetype)==-1){image.src = image.src.substring(0,(image.src.indexOf("."+filetype))) + "_on."+filetype;}}
function Outtype(image, filetype) { if(image && document.images && image.src.indexOf("_on."+filetype)!=-1){image.src = image.src.substring(0,(image.src.indexOf("_on."+filetype))) + "."+filetype;}}



function printCert() {
if (window.print) {
agree = confirm('Would you like to print your certificate now?');
if (agree) window.print(); 
   }
}

function printPage() {
if (window.print) {
agree = confirm('Would you like to print this page now?');
if (agree) window.print(); 
   }
}