function checkDetailID(){
		
		var thisForm = document.frmMain;
		var strTempx=thisForm.hidStrx.value;
		var strTemp="";
		var i=1;
		var selectCount = thisForm.chkID.length;
		
		if (isNaN(selectCount)){
			strTemp = thisForm.chkID.value;
			i=2;
		}else{
			for (counter=0;counter<selectCount;counter++){
				listID=thisForm.chkID[counter].checked;				
				if (listID==true){				
					i++;				
					if(counter<(selectCount)){						
						strTemp = strTemp + thisForm.chkID[counter].value + ",";	
						
					}else{							
						strTemp = strTemp + thisForm.chkID[counter].value;
					}
				}
			}
		}
		strTemp= strTempx + "," + strTemp;
		
		if(strTempx!=""){
			i=i;
		}else{
			i=i;
		}
		
		
		thisForm.hidStr.value = strTemp;
		thisForm.hidLen.value = i;
		
		top.parent.newWindow = window.open("compare.php?id="+strTemp+"&len="+i,"displayWin","width=800, height=600, scrollbars=yes, toolbars=no,resizable=yes");
	}
	
	function checkDisabled() 
	{
		var thisForm = document.frmMain;
		var i = 0;
		var c = 0;
		thisForm.btnCompare.disabled=true;
		c=thisForm.chkID.length-1;
		if (isNaN(c))
		{
			thisForm.btnCompare.disabled = !thisForm.chkID.checked;
		}
		else
		{
			for (i=0;i<=c;i++)
			{			
				if (thisForm.chkID[i].checked == true)
				{
					thisForm.btnCompare.disabled=false;				
					break;	
				}	
			}
		}
	}
	
	function checkID(){		
		
		var thisForm = document.frmMain;
		strTemp="";
		var i=0;
		var selectCount = thisForm.chkID.length;
		
		for (counter=0;counter<selectCount;counter++){
			listID=thisForm.chkID[counter].checked;
			if (listID==true){		
				
				i++;				
				if(counter<(selectCount-1)){					
                	strTemp = strTemp + thisForm.chkID[counter].value + ",";					
				}else{							
					strTemp = strTemp + thisForm.chkID[counter].value;
				}					
			}
		}
	
		thisForm.hidStr.value = strTemp;
		thisForm.hidLen.value = i;
		//thisForm.btnCompare.enabled==true;
		
		top.parent.newWindow = window.open("compare.php?id="+strTemp+"&len="+i,"displayWin","width=800, height=600, scrollbars=yes, toolbars=no,resizable=yes");
		
		
	}
	

