function exp_box(arg_width,arg_height,arg_iframe)
  {  
    var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
    var layer = document.createElement('div');
    layer.style.zIndex = 2;
    layer.id = 'layer';
    layer.style.position = 'absolute';
    layer.style.top = '0px';
    layer.style.left = '0px';
    layer.style.height = document.documentElement.scrollHeight + 'px';
    layer.style.width = width + 'px';
    layer.style.backgroundColor = 'white';
    layer.style.opacity = '.1';
    layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
    document.body.appendChild(layer);  
    
	
	var div_action = document.createElement('div');
	div_action.id = 'action';
	div_action.style.width ='100%';
	div_action.style.float = 'left';
	//div_action.style.backgroundColor = 'red';
    //div_action.style.border = '0px solid #333333 ';
	document.body.appendChild(div_action); 
	 var p_action = document.createElement('span');
    p_action.innerHTML = '<table width="100%"><tr><td align="right"><img src="images/con_fax.png"  border="0" alt="print" title="Print Deatails" />&nbsp;<img src="images/emailButton.png" alt="email" title="Email to friend" border="0" />&nbsp;<img src="images/icon-popout.png" alt="view" title="View in new window" border="0" />&nbsp;<a href="#" onclick="exp_box_close()"><img border="0" src="images/delete-icon2.jpg" title="close window" /></a></td></tr></table>';
    div_action.appendChild(p_action);
	
	
	
	
    var div = document.createElement('div');
    div.style.zIndex = 3;
    div.id = 'box';
    div.style.position = (navigator.userAgent.indexOf('MSIE 6') > -1) ? 'absolute' : 'fixed';
    div.style.top = '100px';
    div.style.left = (width / 2) - (arg_width / 2) + 'px';  //
    div.style.height = arg_height+'px'; //
    div.style.width = arg_width+'px'; //
    div.style.backgroundColor = 'white';
    div.style.border = '6px solid #333333 ';
    div.style.padding = '10px';
    document.body.appendChild(div); 
	
    div.appendChild(div_action);
	//div.appendChild(p_load);
    var p = document.createElement('span');
    p.innerHTML = '<iframe frameborder="0" src="'+arg_iframe+'" width="'+arg_width+'" height="'+(arg_height-10)+'""></iframe>';
    div.appendChild(p);
	
    
    /*var a = document.createElement('a');
    a.innerHTML = '<br>Close';
    a.href = 'javascript:void(0)';
    a.onclick = function() 
    {
      document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box'));
    };
      
    div.appendChild(a);*/
	
  }
  function exp_box_close(){
  	document.body.removeChild(document.getElementById('layer'));
      document.body.removeChild(document.getElementById('box'));
  }
  
  
  function PL_get_trcolor_over(ival){
	var idy = "trid"+ival;
	//alert('sss');
	document.getElementById(idy).className = "mytrclass3";
}

function PL_get_trcolor_out(ival){
    
	var idy = "trid"+ival;
	var x =ival%2;
	 if(x==0){
	  var css = "mytrclass2";
	 }
	 else {
	 var css = "mytrclass";
	 }
	document.getElementById(idy).className =css;
	
}

function PL_get_trcolor_over_web(ival){
	var idy = "trid"+ival;
	//alert('sss');
	document.getElementById(idy).className = "mytrclass3_web";
}

function PL_get_trcolor_out_web(ival){
    
	var idy = "trid"+ival;
	document.getElementById(idy).className ="mytrclass_web";
	
}