function thisMovie(movieName) {
	return document.getElementById(movieName);
}

function pfh_DoFSCommand(command, args) {

	var features = "width=1000, height=780, toolbar=yes, copyhistory=no, location=no, status=no, fullscreen=no, titlebar=no, menubar=no, scrollbars=yes, resizable=no";
	
	switch(command) {
		case "call_alert":
			window.open(args,'alertPDF', features);
			break;
		case "openInNewWindow":
			window.location = args;
			break;
		case "removeElement":
			//this instruction is here for resolve a bug in FF when the overflow is set to hidden in the tag BODY
			//without this instruction, the screen stays black when loads the first *.swf 
			window.document.body.style.overflow="auto";
			removeElement(args);
			break;
		case "refreshBrowser":
			//Clean POST DATA
			//window.location.reload();
			window.location = "";
			break;
	}
}

/**
 * Removes an element of the html page
 **/
function removeElement(id) {
    
     if (document.getElementById(id)!=null){
        var olddiv = document.getElementById(id);
        document.body.removeChild(olddiv);   
        olddiv=null  
     }
}