<!-- //hide

var blink_count=10;
var blinked=0;

var timerID=null;

function blink(idx){ 
 if (blinked % 2 == 0){ 
    findObj("row"+idx).className='drowbg';
 }
 else {
    findObj("row"+idx).className='';
 } 
 blinked=blinked-1;

 if (blinked<=0) {
   clearInterval(timerID);
   blinked=0;
   findObj("row"+idx).className='';
 }
 return true;
}

function r3(rval) {
myresult=Math.round(rval*1000)/1000;
return myresult;
}

function findObj(theObj, theDoc)
{
  var p, i, foundObj;
  
  if(!theDoc) theDoc = document;
  if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  {
    theDoc = parent.frames[theObj.substring(p+1)].document;
    theObj = theObj.substring(0,p);
  }
  if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  for (i=0; !foundObj && i < theDoc.forms.length; i++) 
    foundObj = theDoc.forms[i][theObj];
  for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
    foundObj = findObj(theObj,theDoc.layers[i].document);
  if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  
  return foundObj;
}

function lpcvdSiNx(wafertype,wafer,temp,thick) {

 var wafertype=findObj("wafertype");
 var wafer=findObj("wafer");
 var temp=findObj("temp");
 var thick=findObj("thick");

 if (wafertype.selectedIndex==0) { return true; }
 if (wafer.selectedIndex==0) { return true; }

 var wtime=r3(thick.value/2/60);
 findObj("wtime").value=wtime;

 var price=r3((350+125*wtime)/13);
 if ( wafer.value > 100 ) {	price=" "; }
 if ( wafer.value == "nnn" ) {	price=" "; }

 var process_code="["+wafertype.value+"][W"+wafer.value+"][LPCVD][SINX]["+thick.value+"NM]";

 findObj("part").value=process_code;
 findObj("desc").value="low stress LPCVD "+wtime+"hours";

 idx=wafertype.selectedIndex;

   var obj = findObj("Code"+idx);
   if (obj != null) { obj.innerText=process_code; }

   var obj = findObj("Type"+idx);
   if (obj != null) { obj.innerText=wafertype.value; }

   var obj = findObj("Wafer"+idx);
   if (obj != null) { obj.innerText=wafer.value; }

   var obj = findObj("Temp"+idx);
   if (obj != null) { obj.innerText=temp.value; }

   var obj = findObj("Thick"+idx);
   if (obj != null) { obj.innerText=thick.value; }

   var obj = findObj("Time"+idx);
   if (obj != null) { obj.innerText=wtime; }

   var obj = findObj("Price"+idx);
   if (obj != null) { obj.innerText=price; }

   blinked=blink_count;
   timerID=setInterval("blink(idx)",250);

 return true;
}

function lpcvdCSiNx(wafertype,wafer,temp,thick) {

 var wafertype=findObj("wafertype");
 var wafer=findObj("wafer");
 var temp=findObj("temp");
 var thick=findObj("thick");

 if (wafertype.selectedIndex==0) { return true; }
 if (wafer.selectedIndex==0) { return true; }

 var wtime=r3(thick.value/2/60);
 findObj("wtime").value=wtime;

 var price=r3((350+125*wtime)/13);
 if ( wafer.value > 100 ) {	price=" "; }
 if ( wafer.value == "nnn" ) {	price=" "; }

 var process_code="["+wafertype.value+"][W"+wafer.value+"][LPCVD][SINX]["+thick.value+"NM]";

 findObj("part").value=process_code;
 findObj("desc").value="low stress LPCVD "+wtime+"hours";

 idx=1;

   var obj = findObj("Code"+idx);
   if (obj != null) { obj.innerText=process_code; }

   var obj = findObj("Type"+idx);
   if (obj != null) { obj.innerText=wafertype.value; }

   var obj = findObj("Wafer"+idx);
   if (obj != null) { obj.innerText=wafer.value; }

   var obj = findObj("Temp"+idx);
   if (obj != null) { obj.innerText=temp.value; }

   var obj = findObj("Thick"+idx);
   if (obj != null) { obj.innerText=thick.value; }

   var obj = findObj("Time"+idx);
   if (obj != null) { obj.innerText=wtime; }

   var obj = findObj("Price"+idx);
   if (obj != null) { obj.innerText=price; }

   blinked=blink_count;
   timerID=setInterval("blink(idx)",250);

 return true;
}

function lpcvdSi3N4(wafertype,wafer,temp,thick) {

 var wafertype=findObj("wafertype");
 var wafer=findObj("wafer");
 var temp=findObj("temp");
 var thick=findObj("thick");

 if (wafertype.selectedIndex==0) { return true; }
 if (wafer.selectedIndex==0) { return true; }

 var wtime=r3(thick.value/3/60);
 findObj("wtime").value=wtime;

 var price=r3((350+125*wtime)/13);
 if ( wafer.value > 100 ) {	price=" "; }
 if ( wafer.value == "nnn" ) {	price=" "; }

 var process_code="["+wafertype.value+"][W"+wafer.value+"][LPCVD][SI3N4]["+thick.value+"NM]";

 findObj("part").value=process_code;
 findObj("desc").value="stoichiometric LPCVD "+wtime+"hours";

 idx=wafertype.selectedIndex;

   var obj = findObj("Code"+idx);
   if (obj != null) { obj.innerText=process_code; }

   var obj = findObj("Type"+idx);
   if (obj != null) { obj.innerText=wafertype.value; }

   var obj = findObj("Wafer"+idx);
   if (obj != null) { obj.innerText=wafer.value; }

   var obj = findObj("Temp"+idx);
   if (obj != null) { obj.innerText=temp.value; }

   var obj = findObj("Thick"+idx);
   if (obj != null) { obj.innerText=thick.value; }

   var obj = findObj("Time"+idx);
   if (obj != null) { obj.innerText=wtime; }

   var obj = findObj("Price"+idx);
   if (obj != null) { obj.innerText=price; }

   blinked=blink_count;
   timerID=setInterval("blink(idx)",250);

 return true;
}

function lpcvdCSi3N4(wafertype,wafer,temp,thick) {

 var wafertype=findObj("wafertype");
 var wafer=findObj("wafer");
 var temp=findObj("temp");
 var thick=findObj("thick");

 if (wafertype.selectedIndex==0) { return true; }
 if (wafer.selectedIndex==0) { return true; }

 var wtime=r3(thick.value/3/60);
 findObj("wtime").value=wtime;

 var price=r3((350+125*wtime)/13);
 if ( wafer.value > 100 ) {	price=" "; }
 if ( wafer.value == "nnn" ) {	price=" "; }

 var process_code="["+wafertype.value+"][W"+wafer.value+"][LPCVD][SI3N4]["+thick.value+"NM]";

 findObj("part").value=process_code;
 findObj("desc").value="stoichiometric LPCVD "+wtime+"hours";

 idx=1;

   var obj = findObj("Code"+idx);
   if (obj != null) { obj.innerText=process_code; }

   var obj = findObj("Type"+idx);
   if (obj != null) { obj.innerText=wafertype.value; }

   var obj = findObj("Wafer"+idx);
   if (obj != null) { obj.innerText=wafer.value; }

   var obj = findObj("Temp"+idx);
   if (obj != null) { obj.innerText=temp.value; }

   var obj = findObj("Thick"+idx);
   if (obj != null) { obj.innerText=thick.value; }

   var obj = findObj("Time"+idx);
   if (obj != null) { obj.innerText=wtime; }

   var obj = findObj("Price"+idx);
   if (obj != null) { obj.innerText=price; }

   blinked=blink_count;
   timerID=setInterval("blink(idx)",250);

 return true;
}

// end hide -->
