// --------------------- start FORM FIELD CLEAR-ON-FOCUS script-----------------------

function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 

// --------------------- end FORM FIELD CLEAR-ON-FOCUS script-----------------------

// ----------- start SELF-SIZING BROWSER-FRIENDLY CHILD WINDOW scripting --------------


/* Created by: Crazy Merlin :
http://nl.internet.com/ct.html?rtr=on&s=1,282v,1,83o,6n0z,lizu,hryg
Lee Underwood :
http://nl.internet.com/ct.html?rtr=on&s=1,282v,1,jlzb,dlcr,lizu,hryg
*/
function newWin(link,w,h,s,r,l,t) {
   // the next two lines should all be on one line with no space
     
   var winFeatures = 'width=' + w + ',height=' + h + ',scrollbars=' + s + ',resizable=' + r + ',left=' + l + ',top=' + t ;
   var bookWindow = window.open(link, "", winFeatures); }


// ----------- end SELF-SIZING BROWSER-FRIENDLY CHILD WINDOW scripting --------------

// --------------------- start IMAGE ROLLOVER script-----------------------

function movepic(img_name,img_src) {
document[img_name].src=img_src;
}

// --------------------- end IMAGE ROLLOVER script-----------------------

// -------------------- start FAVORITES POPUP scripting -----------------------------

function addbookmark()
{
bookmarkurl="http://www.comtronics-aero.com/"
bookmarktitle="Comtronics Engineering"
if (document.all)
window.external.AddFavorite(bookmarkurl,bookmarktitle)
}

// -------------------- end FAVORITES POPUP scripting -----------------------------

// -------------------- start TEXT EXPAND-CONTRACT scripting -----------------------------

/* Created by: James Kennedy :: http://foxweb.marist.edu/users/kbpc3/example.html */

function toggleMe(a){
  var next=document.getElementById(a);
  var b=new String();
  b= a-1;
  var prev=document.getElementById(b);
  if(!next)return true;
  if(next.style.display=="none"){
    next.style.display="block"
    prev.style.display="none"
    window.scrollTo(0,0);
  } else {
    next.style.display="none"
  }
  return true;
}

// -------------------- end TEXT EXPAND-CONTRACT scripting -----------------------------

// ----------- start NO SPAM CONTACT scripting --------------

function blockError(){return true;}
window.onerror = blockError;


function em(_u,_n)
{	var _l   = _u + "@" + "comtronics-aero.com";
	document.write("<a href='mailto:"+_l+"'>"+_n+"</a>");  }	

// ----------- end NO SPAM CONTACT scripting --------------
