rem: function initPopUp(closeImage) { 
add: function initPopUp() { 
context: function initPopUp(closeImage) {	// Add the HTML to the body	body = document.getElementsByTagName('body')[0];	popmask = document.createElement('div');	popmask.id = 'popupMask';	popcont = document.createElement('div');	popcont.id = 'popupContainer';	popcont.innerHTML = '' +		'<div id="popupInner">' +			'<div id="popupTitleBar">' +				'<div id="popupTitle"></div>' +				'<div id="popupControls">' +					'<img src="'+closeImage+'" onclick="hidePopWin(false);" />' +				'</div>' +			'</div>' +			'<div id="popupFrame"></div>' +		'</div>';	body.appendChild(popmask);	body.appendChild(popcont);		gPopupMask = document.getElementById("popupMask");	gPopupContainer = document.getElementById("popupContainer");	gPopFrame = document.getElementById("popupFrame");			// check to see if this is IE version 6 or lower. hide select boxes if so	// maybe they'll fix this in version 7?	var brsVersion = parseInt(window.navigator.appVersion.charAt(0), 10);	if (brsVersion <= 6 && window.navigator.userAgent.indexOf("MSIE") > -1) {		gHideSelects = true;	}		// Add onclick handlers to 'a' elements of class submodal or submodal-width-height	var elms = document.getElementsByTagName('a');	for (i = 0; i < elms.length; i++) {		if (elms[i].className.indexOf("submodal") == 0) { 			// var onclick = 'function (){showPopWin(\''+elms[i].href+'\','+width+', '+height+', null);return false;};';			// elms[i].onclick = eval(onclick);			elms[i].onclick = function(){				// default width and height				var width = 400;				var height = 200;				// Parse out optional width and height from className				params = this.className.split('-');				if (params.length == 3) {					width = parseInt(params[1]);					height = parseInt(params[2]);				}				showPopWin(this.href,width,height,null); return false;			}		}	}}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/01cfcf74b98619e4e130284de9e083d94ca41aef/modal.js/clean/www/extras/js/modal/modal.js