
function dsppics(pgPicno)
{
	var pgnum=Math.floor(Math.random()*xpga[pgPicno]) ;
	pgwdth = '' ;

	pgstr = xpgc[xpgb[pgPicno]+pgnum] ;

	if (pgstr.substring(1,2) == "L") {pgimg = pgstr.substring(2,8) + '.jpg'} 
		else {
			pgiex = getIex(pgstr.substring(2,8)) ;
			if (pgiex.substring(0,1) == 'A') { pgiex1 = ixga } else { pgiex1 = ixgb }
			pgimg = pgiex1 + pgiex.substring(1,51) 
		      }

	if (pgstr.substring(0,1) == "W") { pgwdth = ' width="100"' } 
	if (pgstr.substring(0,1) == "E") { pgwdth = ' width="80"' } 
	if (pgstr.substring(8,9) == "P") {pglnk = pgstr.substring(9,15) + '.htm'} else { pglnk = 'default.htm?Ccs' + pgstr.substring(9,15) + 'A' + pgstr.substring(15,17) }
	

	document.write('<tr><td height="7" colspan="3" class="sh1" valign="top"></td></tr><tr><td width="15" class="sh1"></td>') ;
	document.write('<td class="sh1" valign="middle" align="center"><a href="' + pglnk + '" target="_top"><img src="' + pgimg + '"' + pgwdth + '></a></td>') ;
	document.write('<td width="13" class="sh1"></td></tr><tr><td colspan="3" height="5" class="sh1"></td></tr>') ;
}	
 
 