function DOMCall(name) {
	if (document.layers) 
		return document.layers[name];
	else if (document.all)
		return document.all[name];
	else if (document.getElementById)
		return document.getElementById(name);
}
	

        function popImg(iName) { 
           var pURL='/ViewImage.aspx?pi='+iName; 
                pInfo='toolbar=0,'; 
                pInfo+='location=0,'; 
                pInfo+='directories=0,'; 
                pInfo+='status=0,'; 
                pInfo+='menubar=0,'; 
                pInfo+='scrollbars=0,'; 
                pInfo+='resizable=0,'; 
                pInfo+='width=300,'; 
                pInfo+='height=300'; 
            enlargeWindow=window.open(pURL, 'bigPop', pInfo); 
            enlargeWindow.focus();
		 	return false;
        } 
		
		
		
        function popData(iName,iwidth,iheight,iresize,iscroll) { 
        
            var pURL=iName; 
                pInfo='toolbar=1,';
                pInfo+='location=1,';
                pInfo+='menubar=0,'; 
                pInfo+='scrollbars='+iscroll+','; 
                pInfo+='resizable='+iresize+','; 
                pInfo+='width='+iwidth+','; 
                pInfo+='height='+iheight+',';
				pInfo+='screenX=0,';
				pInfo+='screenY=0,';
				pInfo+='top=0,';
				pInfo+='left=0';
				
            enlargeWindow= window.open(pURL, 'bigPop', pInfo); 
            enlargeWindow.focus();
		 	return false;
        } 		
        function popSize(iName,iwidth,iheight,iresize,iscroll) { 
        
            var pURL=iName; 
                pInfo='toolbar=0,';
                pInfo+='location=0,';
                pInfo+='menubar=0,'; 
                pInfo+='scrollbars='+iscroll+','; 
                pInfo+='resizable='+iresize+','; 
                pInfo+='width='+iwidth+','; 
                pInfo+='height='+iheight+',';
				pInfo+='screenX=0,';
				pInfo+='screenY=0,';
				pInfo+='top=0,';
				pInfo+='left=0';
				
            enlargeWindow= window.open(pURL, 'sizingPOP', pInfo); 
            enlargeWindow.focus();
		 	return false;
        } 