﻿// JScript File

function setVisible(nr){    
    vista = (document.getElementById(nr).style.display == 'none') ? 'block' : 'none';
    document.getElementById(nr).style.display = vista;
}  
function confirm_delete(newUrl){       
    if (confirm("Are you sure you want to perform this delete?")){        
       window.location = newUrl;
        return true;
    }
    else
        return false;		
}
  
function printPage() {
    document.body.offsetHeight;
    window.print();
}

function loadFlash(id,w,h,file){
	getObject(id).innerHTML = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+w+'" height="'+h+'" id="Intro" align="middle"><param name="wMode" value="transparent" /><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="'+file+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><embed src="'+file+'" wMode="transparent" quality="high" bgcolor="#000000" width="'+w+'" height="'+h+'" name="Intro" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" /></object>';
	
	
}

var pageID;
	var subPageID;
	var utilPageID;
	
	function getObject(id){
		//	retrieve object
		//------------------------------
		if (document.getElementById){
		   OBJ = document.getElementById(id);
		}
		else if (document.all){
		   OBJ = document.all[id];
		}
		else if (document.layers){
			if (document.layers[id]){
				OBJ = document.layers[id];
			}
		}
		//	return object to caller
		//------------------------------
		return OBJ;
	}
