/* 

function addEvent(elm,evType,fn,useCapture) {
  //cross browser event handling for IE5+,NS6+, and Mozilla
    if (elm.addEventListener) {
    elm.addEventListener(evType,fn,useCapture);
	return true;
 } else if (elm.attachEvent) {
   var r = elm.attachEvent('on' + evType, fn);
   return r;
 } else {
   elm['on' + evType] = fn;
 }
}
	  
	  
function findTarget(e,elm) {
 //will traverse the DOM tree to find a given element  
 var target;
 //alert (e);
	 if ( window.event && window.event.srcElement )  {
	    target = window.event.srcElement;
	} else if ( e && e.target ) {
	    target = e.target;
	}
	
	if ( !target ) {
	  return null;
	}
	
	while ( target != document.body && target.nodeName.toLowerCase() != elm ) {
	  target  = target.parentNode;
	}
	
	if ( target.nodeName.toLowerCase() != elm ) {
	  return null;
	}
	
   return target;
}

function cancelClick(e) {
  // will prevent the default action for an object from occurring
  if ( window.event && window.event.returnValue ) {
     window.event.returnValue = false;
  } else if ( e && e.preventDefault ) {
     e.preventDefault;
  } else {
    return false;
  }
}

 function setParents(el) {
 //will set all link parent elements into an array
   arrParents = document.getElementsByTagName(el);

   return arrParents;

 }
 */
 
 function pop(URL,w,h){
  newwin=winndent=0,directories=0,fullscreen=window.open(URL,"window","top=100,left=150,height=" + h + ",width=" + w + ",alwaysLowered=0,alwaysRaised=0,channelmode=0,depe0,hotkeys=1,location=0,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=0,toolbar=0,z-lock=1");
}<!--rolloverscript-->

 function popWin(URL,name,w,h){ 
 
 window.open(URL,name,'scrollbars=1,toolbar=0,menubar=0,statusbar=0,addressbar=0,resizable=1,width=' + w + ',height= ' + h);
 
}
 
 

