/**
 * Swap images on the screen.
 */
 function swapImages(strImageId,strImageStart,strImageFinish)
 {
	document.getElementById(strImageId).src = strImageFinish;
 }

/**
 * Popup a formatted window (no features).
 */
 function popWin(strURL,intWidth,intHeight)
 {
	intLeft = parseInt((screen.availWidth/2) - (intWidth/2));
	intTop = parseInt((screen.availHeight/2) - (intHeight/2));
	window.open(strURL,'popwindow','width='+intWidth+',height='+intHeight+',menubar=no,scrollbars=no,toolbar=no,status=no,left='+intLeft+',top='+intTop+',resizable=no')
 }

/**
 * Popup a formatted window (no features).
 */
 function popWinScrollbars(strURL,intWidth,intHeight)
 {
	intLeft = parseInt((screen.availWidth/2) - (intWidth/2));
	intTop = parseInt((screen.availHeight/2) - (intHeight/2));
	window.open(strURL,'popwindow','width='+intWidth+',height='+intHeight+',menubar=no,scrollbars=yes,toolbar=no,status=no,left='+intLeft+',top='+intTop+',resizable=no')
 }

/**
 * Show/hide DIV element on screen.
 */
 function showDIV(strDIV)
 {
 	document.getElementById(strDIV).style.display = 'block';
 }

/**
 * Hide DIV element on screen.
 */
 function hideDIV(strDIV)
 {
 	document.getElementById(strDIV).style.display = 'none';
 }