N   = (document.layers) ? true:false;                 // netscape 4
I   = (document.all) ? true:false;                    // ie4+
DOM = ((document.getElementById)&&(!I))?true:false;   // ns6 etc.
MAC = (navigator.platform=="MacPPC")?true:false;   // Mac
SAFARI = (navigator.userAgent.indexOf('Safari')>-1)?true:false;   // Mac
Ixp   = (document.all)&&(navigator.userAgent.indexOf('Windows NT 5.1')>-1) ? true:false;                    // windows xp 
IE7   = (document.all)&&(navigator.userAgent.indexOf('MSIE 7')>-1) ? true:false;                    // IE7

//jump menus
function jumpTo(targ,sel){ 
  eval(targ+".location='"+sel.options[sel.selectedIndex].value+"'");
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0 revised by FMI
	if(selObj.options[selObj.selectedIndex].text.indexOf('Choose')>-1){return}
  else{eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;}
}
//Search clear quotes
function clearQuotes(d){
d.keywords.value=d.keywords.value.replace(/["]/g,"");
return 
}
//Script for Go Back button
function goBack () {
window.history.go (-1);
}
//standard pop-up
function stdPop(where,title,w,h){
	window.open(where, title, 'toolbar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top=100,left=100')
}
//user groups pop-up
function userPop(where,title,w,h,t,l){
	window.open(where, title, 'toolbar=no,scrollbars=yes,resizable=yes,width='+w+',height='+h+',top='+t+',left='+l+'')
}
//OverView Pop-up
function overPop(){
	window.open('/downloads/overview/overview.html', 'Overview', 'toolbar=no,scrollbars=no,resizable=yes,width=800,height=600,top=100,left=100')
}
function clik(){
}
//Special Charactor Removal
function specialChar(field) {
        var re=/[*]|["]|[']/g;
		adjusted=field.value.replace(re, "");field.value=adjusted;
}
//Techinfo search functions
var ti='http://www.filemaker.com/ti/'; 
function smartClear(formText){
	if (formText.value=='Type search words here'||formText.value=='Type article number here')formText.value=''
}
function goArtNum(){
		var num=document.artNum.num
		if (isNaN(num.value)||num.value.length!=6){
			alert('Please type the 6 digit article number.');}
	else eval("location='"+ti+num.value+".html'")
}
function validSurvey(d){
	var e=new Date()
	var year=e.getTime()+(365*24*60*60*1000)
	e.setTime(year)
	if (document.cookie.indexOf(d.survey.value)>-1)(d.key.value=2)
	if (document.cookie.indexOf(d.survey.value)<0)(d.key.value=1)
	if (document.cookie==''){document.cookie="key="+d.survey.value+"; expires=" + e.toGMTString()}
	else {if(document.cookie.indexOf(d.survey.value)<0){document.cookie+=d.survey.value+"; expires=" + e.toGMTString()}return}
}
function validate(d){
	var e=new Date()
	var year=e.getTime()+(365*24*60*60*1000)
	e.setTime(year)
	if (document.cookie.indexOf(d.survey.value)>-1)(d.key.value=2)
	if (document.cookie.indexOf(d.survey.value)<0)(d.key.value=1)
	if (document.cookie==''){document.cookie="key="+d.survey.value+"; expires=" + e.toGMTString()}
	else {if(document.cookie.indexOf(d.survey.value)<0){document.cookie+=d.survey.value+"; expires=" + e.toGMTString()}return}
}
function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}
