	var Cookies=document.cookie
	var CookieString
	var Temp1
	var Temp2
	var NameValue=new Array()
	var DBId=new Array()
	var TitleName=new Array()
	var Price=new Array()
	var TotalPrice=0
	var	Index=0
        var length
	
	CookieString = Cookies.split(";")

	for (i=1;i<CookieString.length;i++)	{
		Temp1=CookieString[i].split("=")

		if (Temp1[0]==CookieString[i]) break

		Temp2=Temp1[1].split("/-/")

		if (Temp2[0]==Temp1[1]) break

		NameValue[Index]=Temp1[0]

		DBId[Index]=Temp2[0]

		Temp2[1]=Replace(Temp2[1],"%a%","'")
		Temp2[1]=Replace(Temp2[1],"%f%",";")
		Temp2[1]=Replace(Temp2[1],"%d%","=")

		TitleName[Index]=Temp2[1]
		Price[Index]=parseFloat(Temp2[2])

		Index++
	}

document.write("<DIV id=floater>                                                                                                                                                                        ");
document.write("	<TABLE border=1 width=220 name = 'KBStatic' cellpadding='0' cellspacing='0'>                                                                                                        ");



document.write("		<TR>                                                                                                                                                                            ");



document.write("			<TD bgcolor='#104E8B'>                                                                                                                                                      ");
document.write("				<div id=move align='right' style='CURSOR: move'><A href=javascript:MM_showHideLayers('floater','','hide') ><IMG border=0 height=14 src='images/close.jpg' alt='隐藏购物车' style='CURSOR: default' width=16 ></A></div> ");
document.write("      		</TD>                                                                                                                                                                       ");
document.write("		</TR>                                                                                                                                                                           ");
document.write("		<TR>                                                                                                                                                                            ");
document.write("			<TD>                                                                                                                                                                        ");
document.write("				<table align=left border=0 cellpadding=0 cellspacing=0 width=220>                                                                                     ");

document.write("					<tr bgcolor=#B0C4DE>                                                                                                                                              ");
document.write("			        	<td>                                                                                                                                                            ");
document.write("			        	</td>                                                                                                                                                           ");
document.write("				       	<td>                                                                                                                                                            ");
document.write("							<div id=ShowHideCart align=center language=javascript                                                                                  ");
document.write("					        onClick ='return ShowHideCart_onclick()' ><b><font face='Webdings'>5</font>购物车<font face='Webdings'>5</font></b>                                         ");
document.write("							</div>                                                                                                                                                      ");
document.write("            			</td>                                                                                                                                                           ");
document.write("			        	<td>                                                                                                                                                            ");
document.write("			        	</td>                                                                                                                                                           ");
document.write("					</tr>                                                                                                                                                               ");
document.write("				    <tr bgcolor=#B0C4DE>                                                                                                                                              ");
document.write("				       	<td colspan=3>                                                                                                                                                  ");
document.write("					    	<div id=cart>                                                                                                                                               ");
document.write("								<table id=mytable border=1 bordercolordark=#ffffff bordercolorlight=#999999 bgcolor=#f2f1f3                                                            ");
document.write("								 cellpadding=0 cellspacing=0>                                                                                                                           ");
document.write("					                <tr>                                                                                                                                                ");
document.write("                    						<td width=35>																																");
document.write("                    							<div align=center class='del' language=javascript onclick='javascript:DelAllItems()'><b>全删</b></div>				");
document.write("                    						</td>																																		");
document.write("                    						<td width=150><b>文献标题</b></td>                                                                                                          ");
document.write("					            			<td width=35><b>价格</b></td>                                                                                                               ");
document.write("                  					</tr>                                                                                                                                               ");
for (i=Index-1;i>=0;i--) {
	document.write("					            <tr>                                                                                                                              ");
	document.write("                    					<td width=35>																																");
	document.write("                    						<div align=center class='del' language=javascript onclick='javascript:DelSelectedItem("+String(Index-i)+","+NameValue[i]+")'>删除</div> ");
	document.write("                    					</td>																																		");
	document.write("                    					<td width=150>"+TitleName[i]+"</td>                                                                                                         ");
	document.write("					            		<td width=35>"+Price[i]+"</td>																												");
	document.write("                  				</tr>                                                                                                                                               ");
	TotalPrice=TotalPrice+Price[i]
}
document.write("                                	<tr>                                                                                                                                                ");
document.write("                    						<td>&nbsp</td>                                                                                                                              ");
document.write("                    						<td><b>总价：</b></td>                                                                                                                      ");
document.write("                    						<td id=total><b>"+Math.round(TotalPrice*100)/100+"</b></td>                                                                                 ");
document.write("                  					</tr>                                                                                                                                               ");
document.write("                                </table>                                                                                                                                                ");
document.write("              				</div>                                                                                                                                                      ");
document.write("						</td>                                                                                                                                                           ");
document.write("					</tr>                                                                                                                                                               ");
document.write("						<form name='checkform' method='post' action='' target=''>																										");
document.write("					<tr align=middle valign=bottom height=25 bgcolor=#B0C4DE>                                                                                                                                 ");



document.write("<td colspan=3>");
document.write("ID号：<input type='text' name='kh' size='8'> 密码：<input type='password' name='pass' size='8'>");
document.write("</td>");

document.write("			       	</tr>                                                                                                                                                               ");


document.write("					<tr align=middle valign=bottom height=25 bgcolor=#B0C4DE>                                                                                                                                 ");



document.write("				       		<td colspan=3>                                                                                                                                              ");
document.write("						   		<input name='orders' type=hidden value=''><input name='TotalPrice' type=hidden value=''>												");
document.write("<input type='radio' name='lx' value='01' checked>卡用户<input type='radio' name='lx' value='02'>会员  <input name='check1' id='check1' type=button value=购物结算 onclick='hyCheck()'>                                                      ");
document.write("			        		</td>                                                                                                                                                       ");

document.write("			       	</tr>                                                                                                                                                               ");
document.write("					<tr align=middle valign=bottom height=25 bgcolor=#B0C4DE>                                                                                                                                 ");



document.write("				       		<td colspan=3>                                                                                                                                              ");
document.write("						   		<input name='orders' type=hidden value=''><input name='TotalPrice' type=hidden value=''>												");
document.write(" <input name='check1' id='check1' type=button value=西陆结算 onclick='xljs()'>                                                      ");
document.write("			        		</td>                                                                                                                                                       ");
document.write("						</form>																																							");
document.write("			       	</tr>                                                                                                                                                               ");

document.write("        		</table>                                                                                                                                                                ");
document.write("			</TD>                                                                                                                                                                       ");
document.write("		</TR>                                                                                                                                                                           ");
document.write("	</TABLE>                                                                                                                                                                            ");
document.write("</DIV>                                                                                                                                                                                  ");