//-------------------------------------------------------------------------------
// 04/17/2008 sef  tech rep form 
//-------------------------------------------------------------------------------
onscreenpos='320px';

// this requests the tech rep data form
function techrepdata(incompany,inlink) {
    $('formdiv').setHTML(' ');
    var baseurl = "../cgibin/webtechrep.pgm";
    var theparms="TRCOMPANY=" + incompany;
    var theurl=baseurl + '?' + theparms;
    ds = new Ajax(theurl, {
  		method: 'get',
  		update: $('formdiv'),
  		evalScripts: true,
  		onComplete: function () {
  	      var myValues = $('formdiv').getCoordinates();   
          $('formclose').setStyle('left',(myValues.width-23) +  'px'); 
     	}
  	}).request();
    FRshade.shadeOpen();
    $('formdiv').style.visibility='visible';
    $('formdiv').style.background=formstartcolor;
    var theinlink=$(inlink).getCoordinates();  
    $('formdiv').style.top=(theinlink.top - 90) + 'px';
    // slide in from left off screen then color change.
    leftChange.start(offscreenpos, onscreenpos).chain(function() {
       colorChange.start(formstartcolor, formendcolor);
    });   
      
  };

