function AjaxProperty(id,ty){
  document.write ('<span id="EC'+id+'_'+ty+'"></span>');
  var url = "/PHPType.php?"+id+"&"+ty;
  new Ajax.Request(url,
   {
     method:'get',
     onSuccess: function(transport){
       var response = transport.responseText;
	   $('EC'+id+'_'+ty).innerHTML = response;
     },
     onFailure: function(){ alert('Something went wrong...') }
   });
}

function TextHeight(){
  var PageLeft = $('InLeft').offsetHeight;
  var PageRight = $('InRight').offsetHeight;
  if( PageLeft > ( PageRight + 314 ) ){
    $('InRight').style.height = (PageLeft-314)+"px";
  }
}

function RegInfo(val){
  $('SHR').style.display = 'none';
  $('BJR').style.display = 'none';
  $('SHRM').className = '';
  $('BJRM').className = '';
  $('TJRM').className = '';
  $(val+'M').className = 'M';
  
  if( val == 'TJR' ) val = BJR;
  $(val).style.display = '';

}

function RegInfo2(val){
  $('HJimg').style.display = 'none';
  $('BYimg').style.display = 'none';
  $('YYimg').style.display = 'none';
  $('MZimg').style.display = 'none';
  $('HJM').className = '';
  $('BYM').className = '';
  $('YYM').className = '';
  $('MZM').className = '';
  $(val+'M').className = 'M';
  $(val+'img').style.display = '';
}

function RegInfo3(id){
  $("RecImg1").style.display = 'none';
  $("RecImg2").style.display = 'none';
  $("RecImg3").style.display = 'none';
  $("stickList1").style.display = 'none';
  $("stickList2").style.display = 'none';
  $("stickList3").style.display = 'none';
  $("stickList"+id).style.display = '';
  $("RecImg"+id).style.display = '';
}

function InfoHeight(){
  var RF = $('RightFrame').offsetHeight;
  var LF = $('LeftFrame').offsetHeight;
  if( RF > LF ) $('LeftContent').style.height = (RF-25)+"px";
  if( LF > RF ) $('LeftContent').style.height = (LF-25)+"px";
}

function ClassHeight(){
  var RF = $('RightFrame').offsetHeight;
  var LF = $('LeftFrame').offsetHeight;
  if( RF > LF ) $('MainFrame').style.height = (RF+20)+"px";
  if( LF > RF ) $('MainFrame').style.height = (LF+20)+"px";
}

window.onload = function(){ ClassHeight(); }

