<SCRIPT LANGUAGE="JavaScript">
function check(){
var n = 1;
var strs = "50,02,05,07,12|09@03,02,09,18,12|09@10,13,15,07,12|09@11,02,15,07,12|19";
var str = new Array();
var reg = /@/g;
var times = strs.split("@");
///*****two****//
var temp = new Array();
var str1 = null;
var str2 = null;
var flag = false;
for(var i=0;i<times.length;i++){
str[i] = times[i];
str1 = str[i].substring(0,str[i].indexOf("|"));
str2 = str[i].substring(str[i].indexOf("|")+1,str[i].length);
temp = str1.split(",");
for(var j=0;j<5;j++){
//alert(temp[j]);
if(parseInt(temp[j])>0 && parseInt(temp[j])<34){
//alert(temp[j]+" "+strs);
for(var k=1;k<j-k;k++){
/*if(temp[k] = temp[j]){
alert(k+":"+j+"="+temp[k]+":"+temp[j]);
}
else{
alert("none");
}*/
}
}
else{
//alert(temp[j]);
}
}
//alert(str1 + str2);
//alert(str[i]);
}
}
function arrays(){
var str = "50,02,05,02,13";
var temp = str.split(",");
for(var i=0;i<5;i++){
//alert(temp[i]);
if(temp[i]>0 && temp[i]<34){
for(var j=1;j<j-i;j++){
if(temp[i]=temp[j]){
alert(i + ":" + j + "=" + temp[i] + ":" + temp[j]);
}
else{
alert("none");
}
}
}
else{
alert(temp[i] + "error");
}
}
}
</SCRIPT>
<div οnclick="check()" align="center">asdf</div>