// JavaScript Document

function showPic(id,type,file_path,style,title){
    
	squal = ' WIDTH="128" HEIGHT="128"';        
    document.write('<TABLE STYLE="border-collapse: collapse; background-image: url(http://mmsimg.163.com/new_web/loaditem.jsp/type=' + type + '/path=' + file_path + '); '+'background-repeat:no-repeat; background-position: center center" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
    document.write('<TR>');
    document.write('<TD STYLE="cursor:hand" onclick="send_pic(\'' + id + '\',\'' + type + '\');">');    
    document.write('<IMG SRC="http://mmsimg.163.com/new_web/images/null.gif" TITLE="' + title + '"' + squal + '>');
    document.write('</TD>');
    document.write('</TR>');
    document.write('</TABLE>');
}

function showPicByID(id,type,ind,title){
   	squal = '';
   	if(ind == 1)
   		squal = ' WIDTH="128" HEIGHT="128"';        
    if(ind == 2)
    	squal = ' WIDTH="160" HEIGHT="120"';
    if(ind == 3)
    	squal = ' WIDTH="160" HEIGHT="174"';
    if(ind == 4)
	squal = ' WIDTH="128" HEIGHT="160"'; 
    if(ind == 5)
	squal = ' WIDTH="50" HEIGHT="50"'; 
    if(ind == 6)
	squal = ' WIDTH="100" HEIGHT="100"'; 
    
    document.write('<TABLE STYLE="border-collapse: collapse; background-image: url(http://mmsimg.163.com/new_web/loadimg.jsp/type=' + type + '/id=' + id + '/ind=' + ind + '); '+'background-repeat:no-repeat; background-position: center center" BORDER="0" CELLSPACING="0" CELLPADDING="0">');
    document.write('<TR>');
    document.write('<TD STYLE="cursor:hand" onclick="send_pic(\'' + id + '\',\'' + type + '\');">');    
    document.write('<IMG SRC="http://mmsimg.163.com/new_web/images/null.gif" TITLE="' + title + '"' + squal + '>');
    document.write('</TD>');
    document.write('</TR>');
    document.write('</TABLE>');
}
