// Prints any item by ID 
           function PrintItem(objItem,strParams){
            var defaultParams = 'toolbar=no,menubar=no,fullscreen=no ,scrollbars=yes,resizable=yes,width=570,height=575,top=10,left=10';
            var ItemWin;
           
            if(strParams!=null)
              {
                ItemWin = window.open('','_blank',strParams);
              } 
            else
              {
                ItemWin = window.open('','_blank',defaultParams);
              }
            var myDoc = objItem.outerHTML ;
           	var myFooter = document.getElementById('PrintFooter').outerHTML ;
            ItemWin.document.open();
            
    				//ItemWin.document.write('&lt;LINK rel="stylesheet" type="text/css" href="template/main.css"&gt;' + '&lt;TABLE dir="rtl" border="0"  align="center" width="100%"&gt;<TR><TD><IMG src="template/images/main_company_logo.gif"   width="137" height="60" /><IMG src="template/images/mainbanner.gif"   width="400" height="60" /></TD></TR>&lt;TR&gt;&lt;TD  style="padding:5px;" &gt;<TABLE width="100%" border="0" ><TR><TD width="100%">' + myDoc + '</TD></TR></TABLE>&lt;/TD&gt;&lt;/TR&gt;<TR><TD ><TABLE><TR><TD>' + myFooter + '</TD></TR></TABLE></TD></TR>&lt;/TABLE&gt;' );  
		            ItemWin.document.write('&lt;LINK rel="stylesheet" type="text/css" href="template/main.css"&gt;' + '&lt;TABLE dir="rtl" border="0"  align="center" width="100%"&gt;<TR><TD><IMG src="template/images/main_company_logo.gif"   width="137" height="60" /><IMG src="template/images/mainbanner.gif"   width="400" height="60" /></TD></TR>&lt;TR&gt;&lt;TD  style="padding:5px;" &gt;<TABLE width="100%" border="0" ><TR><TD width="100%">' + myDoc + '</TD></TR></TABLE>&lt;/TD&gt;&lt;/TR&gt;<TR><TD ><TABLE><TR><TD>' + myFooter + '</TD></TR></TABLE></TD></TR>&lt;/TABLE&gt;' );  
            ItemWin.document.close();
            ItemWin.print();
            ItemWin.close();
            }
function LargeImageShow(LImageUrl,ImageW,ImageH){
			ImageH += 40;
			ImageW += 20;

			largeImage = window.open('','','location=no,left=200,top=200,menubar=no,height='+ ImageH +',width=' + ImageW);
			largeImage.document.write('<A href="javascript:window.close();"><img border="0" id="imgLimage" src="'+LImageUrl+'" alt=""/></A>');
			largeImage.document.write('<div id="closeDiv" align="center"><B><font face="Tahoma"><A href="javascript:window.close();" style="color:#336699">свеш</A></font></B></div>');
			largeImage.focus();
}


  function propsTab_getElementById(id){
											     if(navigator.userAgent.indexOf("MSIE")!=-1){
											        return document.all[id];
													 }else{
													    return document.getElementById(id);
													 }
											}
									    function propsTab_click(itemId,catId,butObj){
										//	alert(catId);
											     var curValC = propsTab_getElementById("propsTab_"+itemId+"_cur");	
													 var panelObj = null;		
													 var panelObjR = null
													 if(curValC!=null){
													      //alert(curValC.value)
														  if(curValC.value == catId)return;
													      if(curValC.value!=""){
																     var butObj1=propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value);
																		 if(butObj1!=null){
																		    //butObj1.style.backgroundColor="#336699";
																				butObj1.style.background="url('template/images/objects.gif') top center no-repeat";
																				butObj1.style.color="#023564";
																		 }
																		 panelObj=propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value+"_panel");
																		 if(panelObj!=null){
																		    panelObj.style.display="none";
																		 }
																}
																//butObj.style.backgroundColor="#FCCA04";
																																
																propsTab_getElementById("propsTab_"+itemId+"_"+catId).style.background="url('template/images/TABSB.gif')  center repeat-x";
																propsTab_getElementById("propsTab_"+itemId+"_"+catId+"_R").style.background="url('template/images/TABSC.gif') top center no-repeat";
																propsTab_getElementById("propsTab_"+itemId+"_"+catId+"_L").style.background="url('template/images/TABSCL.gif') top center no-repeat";
																propsTab_getElementById("propsTab_"+itemId+"_"+catId).style.color="white";
																
																propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value+"_R").style.background="url('template/images/TabsRight.gif')  center repeat-x";
																propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value+"_L").style.background="url('template/images/TabsLeft.gif')  center repeat-x";
																propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value).style.background="url('template/images/TabsBNC.gif')  center repeat-x";
																propsTab_getElementById("propsTab_"+itemId+"_"+curValC.value).style.color="#043465";
																
	                               				//alert("propsTab_"+itemId+"_"+catId)			;								
																//butObj.style.background="url('template/images/oibject_05.gif') top center no-repeat";
 																//butObj.style.color="white";
																panelObj = propsTab_getElementById("propsTab_"+itemId+"_"+catId+"_panel");
																if(panelObj!=null){
																		 panelObj.style.display="block";
																}
													      curValC.value = catId;
													 }
											}
											
  function propsDiscriptionClick(itemId){
  // document.getElementById(itemId).style.display="block";
  var stus;
  stus=document.getElementById(itemId).style.display;
   switch(stus)
   {
   case 'block':
   document.getElementById(itemId).style.display="none";
   break
   case 'none':
   document.getElementById(itemId).style.display="block";
   break
   default:
   }
  } 