function swapimage(a,mypic,pica){
 x=a.src; 
startpoint=x.lastIndexOf ("/"); 
endpoint=x.length; 
mystring=x.substring(startpoint+1,endpoint); 
if (mystring!=pica){ 
a.src="pro/"+pica; 
}else{
 a.src="pro/"+mypic; 
} 
} 

function picRestore(a,pic,pica){
 x=a.src;
startpoint=x.lastIndexOf("/"); 
endpoint=x.length; 
mystring=x.substring(startpoint+1,endpoint); 

if (mystring!=pica){ 
a.src="pro/"+pic;

} 
} 

function piccha(a,pic,pica){ 
x=a.src;

startpoint=x.lastIndexOf("/"); 
endpoint=x.length; 
mystring=x.substring(startpoint+1,endpoint); 
if (mystring!=pica){ 
a.src="pro/"+pic;
} 
} 



function checkvalue(){
		var x="",mytext="",temptext="";
		x=window.myform.pic1.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx21,";
		x=window.myform.pic2.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cs21,";
		x=window.myform.pic3.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"ex3,";
		x=window.myform.pic4.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"es3,";
		x=window.myform.pic5.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx61,";
		x=window.myform.pic6.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx63,";
		x=window.myform.pic7.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"px41,";
		x=window.myform.pic8.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"fx40,";
		x=window.myform.pic9.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"fe40,";
		x=window.myform.pic10.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"fx52,";
/*
		x=window.myform.pic11.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"fx52,";
		x=window.myform.pic12.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx21,";
		x=window.myform.pic13.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cs21,";
		x=window.myform.pic14.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"ex3,";
		x=window.myform.pic15.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"es3,";
		x=window.myform.pic16.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx61,";
		x=window.myform.pic17.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"cx63,";
		x=window.myform.pic18.src;
		temptext=isthis(x);
		if (temptext=="05_you3.gif")mytext=mytext+"es2,";
		x=window.myform.pic19.src;
		temptext=isthis(x);
		if (temptext=="index_cp.gif")mytext=mytext+"pic19,";
		x=window.myform.pic20.src;
		temptext=isthis(x);
		if (temptext=="index_cp.gif")mytext=mytext+"pic20,";
		*/
	startpoint=mytext.lastIndexOf(",");
	mystring=mytext.substring(0,startpoint);
	howmuch=mystring.split(",");
	lon=howmuch.length;
	if (lon >3 || lon <=1) 
	{
		alert ("您的选择比较的产品应在二至三个之间!\n请重新选择!");	
	}else{
		temp="allcomp.asp?pid="+mystring;
		window.open(temp,'mywin','');
	}
}

function isthis(temp){
startpoint=temp.lastIndexOf("/"); 
endpoint=temp.length; 
mystring=temp.substring(startpoint+1,endpoint); 
return mystring;
}

