function switch_pic_next() {
	var str="";
	var b=0;	
	buf=document.getElementById('pic').src;
	len=buf.length;
	a=buf.split("");
	b=a[len-5]-0+1;
	a[len-5]=b+"";
	for (i=0; i<len; i++) {
		str=str+a[i]; 
	}
	if (b<=hid.value) {
		document.getElementById('pic').src=str; 
	}
	if (b==hid.value) {
		document.getElementById('next').innerHTML="";
	}
	document.getElementById('prev').innerHTML='<a href="#picture" class="pic" onClick="switch_pic_prev(self)"><img src="/pic/prev.gif" width="22" height="21" border="0"></a>'
};

function switch_pic_prev() {
	var str="";
	var b=0;	
	buf=document.getElementById('pic').src;
	len=buf.length;
	a=buf.split("");
	b=a[len-5]-0-1;
	a[len-5]=b+"";
	for (i=0; i<len; i++) {
		str=str+a[i]; 
	}
	if (b>=1) {
		document.getElementById('pic').src=str; 
	}
	if (b==1) {
		document.getElementById('prev').innerHTML="";
	}
	document.getElementById('next').innerHTML='<a href="#picture" class="pic" onClick="switch_pic_next(self)"><img src="/pic/next.gif" width="22" height="21" border="0" ></a>'	
};
