String.prototype.trim = function() { return this.replace(/^\s+|\s+$/, ''); };
	var isSearchFound = false;
	var strString ="";
	 

	var messages = new Array();	
	var mouseX, mouseY;	

	<!--
var dom = (document.getElementById) ? true : false;
var ns5 = ((navigator.userAgent.indexOf("Gecko")>-1) && dom) ? true: false;
var ie5 = ((navigator.userAgent.indexOf("MSIE")>-1) && dom) ? true : false;
var ns4 = (document.layers && !dom) ? true : false;
var ie4 = (document.all && !dom) ? true : false;
var nodyn = (!ns5 && !ns4 && !ie4 && !ie5) ? true : false;

// resize fix for ns4
var origWidth, origHeight;
if (ns4) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

// avoid error of passing event object in older browsers
if (nodyn) { event = "nope" }

///////////////////////  CUSTOMIZE HERE   ////////////////////
// settings for tooltip 
// Do you want tip to move when mouse moves over link?
var tipFollowMouse= true;	
// Be sure to set tipWidth wide enough for widest image
var tipWidth= 400;
var offX= 20;	// how far from mouse to show tip
var offY= 12; 
var tipFontFamily= "Verdana";
var tipFontSize= "7pt";
// set default text color and background color for tooltip here
// individual tooltips can have their own (set in messages arrays)
// but don't have to
var tipFontColor= "#C0C0C0";
var tipBgColor= "#C0F1A3"; 
var tipBorderColor= "#000000";
var tipBorderWidth= 1;
var tipBorderStyle= "ridge";
var tipPadding= 4;

// preload images that are to appear in tooltip
// from arrays above


// to layout image and text, 2-row table, image centered in top cell
// these go in var tip in doTooltip function
// startStr goes before image, midStr goes between image and text
var startStr = '';
var midStr = '';
var endStr = '';

////////////////////////////////////////////////////////////
//  initTip	- initialization for tooltip.
//		Global variables for tooltip. 
//		Set styles for all but ns4. 
//		Set up mousemove capture if tipFollowMouse set true.
////////////////////////////////////////////////////////////
var tooltip, tipcss;
function initTip() {	
	if (nodyn) return;	
	tooltip = (ns4)? document.tipDiv.document: (ie4)? document.all['tipDiv']: (ie5||ns5)? document.getElementById('tipDiv'): null;
	tipcss = (ns4)? document.tipDiv: tooltip.style;
	if (ie4||ie5||ns5) {	// ns4 would lose all this on rewrites
		tipcss.width = tipWidth+"px";
		tipcss.fontFamily = tipFontFamily;
		tipcss.fontSize = tipFontSize;
		tipcss.color = tipFontColor;
		tipcss.backgroundColor = tipBgColor;
		tipcss.borderColor = tipBorderColor;
		tipcss.borderWidth = tipBorderWidth+"px";
		tipcss.padding = tipPadding+"px";
		tipcss.borderStyle = tipBorderStyle;

	}
	//if (tooltip&&tipFollowMouse) {
	//	if (ns4) document.captureEvents(Event.MOUSEMOVE);
	//	document.onmousemove = trackMouse;
	//}
}

window.onload = initTip;

/////////////////////////////////////////////////
//  doTooltip function
//			Assembles content for tooltip and writes 
//			it to tipDiv
/////////////////////////////////////////////////
var t1,t2;	// for setTimeouts
var tipOn = false;	// check if over tooltip link
//setTimeout("showAdminNotesDetails('"+evt+"',"+num+")",100);

function doTooltip(evt,type) {
	var strString ="";
	tipFollowMouse = false;
	var objtipDiv = document.getElementById("tipDiv");	
	// set colors if included in messages array*/
	var curBgColor = "#ffffff";
	var curFontColor  = "#000000";
	var tipWidth1 = 450;
	//var part = part;
	//var rev = rev;
	
	if(type==1){
	strString='<link href=../css/css.css rel=stylesheet type=text/css><link rel=StyleSheet href=../javascript/style.css type=text/css><table width=100% bgcolor=#C0F1A3 align=center border=0 cellspacing=0 cellpadding=0 class=textsb style=border-collapse: collapse><tr><td><div align=right><img src=../images/publish_x.png width=12 height=12 border=0 onClick=hideTip()></div></td></tr><tr class=textn><td><strong>What is AFV?</strong></td></tr><tr><td class=textn><p>AFV stands for Auto File Verification. It is our new model for ordering No Touch PCBs.</p><p>You upload design files in our AFV system online, which checks whether they meet our No Touch criteria (e.g., 6 mils trace/space, 5 mil annular rings etc). If the files pass AFV then you can order the PCBs. If files fail AFV, you get a detailed report to help fix your design and re-submit your files.</p> </td></tr><tr><td class=textn><br><br><b>Benefits of AFV:</b></td></tr><tr><td class=textn><p><font color="#800000" style="font-size: 13px; font-weight: bold;"><u>On Holds Eliminated:</u></font> If your design passes AFV it is sure to not go on-hold in manufacturing. You can be assured that you WILL get your boards on time.</p><p><font color="#800000" style="font-size: 13px; font-weight: bold;"><u>Re-spins Reduced:</u></font> Our fantastic AFV report shows you precisely (with pictures and coordinates)where your design did not meet specs. Often, the errors AFV catches are ones that would have caused your boards to fail, so in effect, AFV helps you reduce the number of re-spins on your design-- thus saving you a lot of time and money.</p></td></tr></table>';
	}
	if(type==2){
	strString='<link href=../css/css.css rel=stylesheet type=text/css><link rel=StyleSheet href=../javascript/style.css type=text/css><table width=100% bgcolor=#C0F1A3 align=center border=0 cellspacing=0 cellpadding=0 class=textsb style=border-collapse: collapse><tr><td><div align=right><img src=../images/publish_x.png width=12 height=12 border=0 onClick=hideTip()></div></td></tr><tr class=textn><td><strong>What should I do if I see the status \'File Review Done - Issues Found\'?</strong><br></td></tr><tr><td class=textn><p>When you see this status, it means our automated program found areas where your design does not meet our No Touch specifications. We have provided a helpful report for it. Click on View to see the report. Sometimes we may also identify some additional issues under the link \"Other Issues Found"\.</p> </td></tr><tr><td class=textn><p><font color="#800000" style="font-size: 13px; font-weight: bold;">  To Proceed:</font> You must fix the issues in your design and the repeat the No Touch process (go to the Qute & Order tab on menu bar to start). Essentially, you must load the file again and re-assign layers etc, so our AFV program can run on your corrected design. </p></td></tr></table>';		
	}
	
	
	if (tipWidth1=='')	tipWidth1 = tipWidth;		
	tipcss = (ns4)? document.tipDiv: tooltip.style;	
	if (ns4) {		
		tip = strString;		
		tooltip.write(tip);
		tooltip.close();
	} else if (ie4||ie5||ns5) {		
		tip = strString ;		
		tipcss.backgroundColor = curBgColor;		
	 	objtipDiv.innerHTML = tip;
	}	
	positionTip(evt);
	tipcss.visibility='visible';
}


function trackMouse(evt) {
	mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
	mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	if (tipOn) positionTip(evt);
}

/////////////////////////////////////////////////////////////
//  positionTip function
//		If tipFollowMouse set false, so trackMouse function
//		not being used, get position of mouseover event.
//		Calculations use mouseover event position, 
//		offset amounts and tooltip width to position
//		tooltip within window.
/////////////////////////////////////////////////////////////
function positionTip(evt) {
	if (!tipFollowMouse) {
		mouseX = (ns4||ns5)? evt.pageX: window.event.clientX + document.body.scrollLeft;
		mouseY = (ns4||ns5)? evt.pageY: window.event.clientY + document.body.scrollTop;
	}
	// tooltip width and height
	var tpWd = (ns4)? tooltip.width: (ie4||ie5)? tooltip.clientWidth: tooltip.offsetWidth;
	var tpHt = (ns4)? tooltip.height: (ie4||ie5)? tooltip.clientHeight: tooltip.offsetHeight;
	// document area in view (subtract scrollbar width for ns)
	var winWd = (ns4||ns5)? window.innerWidth-20+window.pageXOffset: document.body.clientWidth+document.body.scrollLeft;
	var winHt = (ns4||ns5)? window.innerHeight-20+window.pageYOffset: document.body.clientHeight+document.body.scrollTop;
	// check mouse position against tip and window dimensions
	// and position the tooltip 
	if ((mouseX+offX+tpWd)>winWd) 
		tipcss.left = (ns4)? mouseX-(tpWd+offX): mouseX-(tpWd+offX)+"px";
	else tipcss.left = (ns4)? mouseX+offX: mouseX+offX+"px";
	if ((mouseY+offY+tpHt)>winHt) 
		tipcss.top = (ns4)? winHt-(tpHt+offY): winHt-(tpHt+offY)+"px";
	else tipcss.top = (ns4)? mouseY+offY: mouseY+offY+"px";
	if (!tipFollowMouse) t1=setTimeout("tipcss.visibility='visible'",100);	
}

function hideTip() {
	//if (!tooltip) return;
	//t2=setTimeout("tipcss.visibility='hidden'",100);
	//tipOn = false;
	tipcss.visibility='hidden';
}


//-->
//onclick='javascript:popUp('send_request_for_reorder.jsp','send_request_for_reorder',400,300,0,0,0,1,0,-1,-1)'
