/*  h3:: Website Services - Contenido customized
    Fileame:        standard.js
    Description:    Javascript utilities
    Remarks:
    Format:         Tab width 4

    Version/Date:   0.41    31.07.2008, tom
*/

// For the print preview
var winPrint = null;
function printView(containerId) {
    document.printForm.printContent.value = document.getElementById(containerId).innerHTML;
    if (winPrint == null || winPrint.closed == true) {
        winPrint = window.open("","winPrint","width=759,height=650,left=20,top=20,dependent=no,hotkeys=yes,location=no,menubar=yes,resizable=yes,scrollbars=yes,status=no,toolbar=yes");
    }
    winPrint.focus();
    document.printForm.submit();
}

// for the flash view
var winFlash = null;
function flashView(theUrl) {
    if (! theUrl) theUrl = "";
    if (winFlash == null || winFlash.closed == true) {
        winFlash = window.open(theUrl,"winFlash","width=335,height=235,left=20,top=20,dependent=yes,hotkeys=no,location=no,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");
    }
	winFlash.focus();
	return (theUrl ? false : true);
}


