<!--
function expand(sec)
{
     thisSec = eval('e' + sec);
     if (thisSec != null){
          if (thisSec.length){
               if (thisSec[0].style.display != 'none'){
                    for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'none'}
               }
               else{
                    for (var i=0;i<thisSec.length;i++) {thisSec[i].style.display = 'inline'}
               }
          }
          else{
                         if (thisSec.style.display != 'none')     {thisSec.style.display = 'none'}
               else{thisSec.style.display = 'inline'}
          }
     }

}





	
	function openWindow(URL, winName, width, height){

		if(height=='' || !height)
		height=screen.height/2
		height_factor = ((screen.height/100)*85)
		if(height>=height_factor)
			height=height_factor;


		if(width=='' || !width)
			width=screen.width/2
		width_factor = ((screen.width/100)*95)
		if(width>=width_factor)
			width=width_factor;

		var top=((screen.height-height)/2)-(screen.height/20)
		var left=(screen.width - width) / 2 ;

			win=window.open(URL, winName, 'toolbar=no,location=no,directories=no,status=0,menubar=no,scrollbars=yes,resizable=0,copyhistory=no,width='+width+',height='+height+',top='+top+',left='+left+'');
			win.focus();
	}

	function GOTO_URL(URL){
		var f=document.frmDetails;
		if(document.getElementById('PrintID')){
			if( f.PrintID.value )
				location.href=URL+"&PrintID="+f.PrintID.value;
			else
				location.href=URL;
		}
		else
			location.href=URL;
	}

	function PrintInfo( feildname, id, checked )
	{			
			//alert(feildname+"-"+id+"-"+checked) 
		var f=document.frmDetails;
		var val;
		var returnval="";

		if( checked==false || checked=="false" ){
			val=f.PrintID.value;
							//alert(val);
			list=val.split(",");
							//alert(list.length+"\n"+list[0]);
		for( i=0 ; i<list.length ; i++){
				if(list[i]!=id ){
					if(returnval.length>0)
						returnval=returnval+","+list[i];
					else
						returnval=list[i];
				}
			}
						//alert(returnval);
			f.PrintID.value=returnval;
		}
		else{
			if(f.PrintID.value.length>0)
				f.PrintID.value+=","+id;
			else
				f.PrintID.value+=id;
		}
	}

	function show_me(URL, id)
	{			
		if( document.getElementById("Info" + id).className=="TdInfo" )
	   {	
			for( i=0 ; i<document.getElementById('Txt_' + id).length-1 ; i++ ){
				document.getElementById('Txt_' + id)(i).style.color='#9499ff';
			}
			document.getElementById('Img_' + id).style.visibility = "hidden";

			document.getElementById("TxtID" + id).innerHTML='<A style="color: black; font-weight: bold;" HREF="javascript:show_me(\''+URL+'\','+ id+');">&nbsp;&nbsp;<img src="images/minus.gif" width="11" height="11" border="0" /></A>';
			
			str="<TABLE WIDTH=100% BORDER=0 align='left' CELLPADDING=0 CELLSPACING=0 dir=rtl  bgcolor='#f0f0f0'>";
			str+="<TR>";
			str+="	<TD bgcolor='#f0f0f0'><IMG SRC='../imageInsidePage/hidden-spacer.gif' WIDTH='1' HEIGHT='1' BORDER='0'></TD>";
			str+="	<TD width='100%' align=center><iframe  src='" + URL + "' width='100%' height='555' frameborder='0' scrolling='auto' BGColor='#F8EFEA'></iframe></TD>";				str+="	<TD bgcolor='#f0f0f0'><IMG SRC='images/car-d1_03.jpg' WIDTH='1' HEIGHT='1' BORDER='0'></TD>";
			str+="</TR>";
			str+="<TR>";
			str+="	<td width='9' height='9'><img src='images/car-d_04.jpg' width='9' height='9' alt=''></td>";
			str+="	<td bgcolor='#f0f0f0'> </td>";
			str+="	<td width='9' height='9'><img src='images/car-d_03.jpg' width='9' height='9' alt=''></td>";
			str+="</TR>";			
			str+="</TABLE>";
			document.getElementById("Info" + id).innerHTML=str;
			document.getElementById("Info" + id).className="";
	   } 
		else
	   {
			for( i=0 ; i<document.getElementById('Txt_' + id).length-1 ; i++ ){
				document.getElementById('Txt_' + id)(i).style.color='#000000';
			}
			document.getElementById('Img_' + id).style.visibility = "visible";
			document.getElementById("TxtID" + id).innerHTML='<A style="color: black; font-weight: bold;" HREF="javascript:show_me(\''+URL+'\','+ id+');">&nbsp;&nbsp;<img src="images/plusr.gif" width="11" height="11" border="0" /></A>';
			document.getElementById("Info" + id).innerHTML="<IMG SRC='../imageInsidePage/spacer.gif' WIDTH='1' HEIGHT='1' BORDER='0'>";
			document.getElementById("Info" + id).className="TdInfo";
	   }
	}

//-->