function overLink(stText) {
	window.status = stText; 
}

function offLink() {
	window.status = '';
}

// Nunca colocar las llamadas a funciones en más de una linea!!!
function dummyWindow(HTMLFile) {
    window.open(HTMLFile, '', 'toolbar=0, scrollbars=0, resizable=0, width=1, height=1, screenX=5000,screenY=5000, top=5000,left=5000');
}

// Nunca colocar las llamadas a funciones en más de una linea!!!
function centerWindow(HTMLFile,w,h,r,s) {
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - w)/2;
	var yOffset = (yMax - h)/2;

    window.open(HTMLFile, 'newWindow', 'toolbar=0, scrollbars='+s+', resizable='+r+', width='+w+', height='+h+',screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
}

// Nunca colocar las llamadas a funciones en más de una linea!!!
function centerWindowStandard(HTMLFile,w,h,r,s,t,l,m,st) {
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - w)/2;
	var yOffset = (yMax - h)/2;

    window.open(HTMLFile, 'newWindow', 'status='+st+', menubar='+m+', location='+l+', toolbar='+t+', scrollbars='+s+', resizable='+r+', width='+w+', height='+h+',screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');
}

function centerWindowImage(ImageFile, ImageName, w, h) {
	if (document.all)
        var xMax = screen.width, yMax = screen.height;
    else
        if (document.layers)
            var xMax = window.outerWidth, yMax = window.outerHeight;
        else
            var xMax = 640, yMax=480;

    var xOffset = (xMax - w)/2;
	var yOffset = (yMax - h)/2;
	var Title = ImageName;
	var Caption = ImageName;

    photoWin = window.open('', 'Image', 'status=0, menubar=0, location=0, toolbar=0, scrollbars=1, resizable=1, width='+w+', height='+h+',screenX='+xOffset+',screenY='+yOffset+', top='+yOffset+',left='+xOffset+'');

	// wrote content to window
	photoWin.document.write('<html><head><title>' + Title + '</title></head>');	
	photoWin.document.write('<body bgcolor=#FFFFFF text=#1c7cd8	link=#1c7cd8 vlink=#1c7cd8>');
	photoWin.document.write('<center>');
	photoWin.document.write('<font size=+3 face="trebuchet ms,arial,helvetica"><b>' + Caption + '</b></font><br>');
	photoWin.document.write('<img border="1" src="' + ImageFile + '"/ >');
	photoWin.document.write('</body></html>');
	photoWin.document.close();	
}

function get_value(_object_name) {
	_object = document.getElementById(_object_name);
	_value = _object.value;

	return(_value);
}

function get_image_source(_object_name) {
	_object = document.getElementById(_object_name);
	_value = _object.src;

	return(_value);
}

function get_checked_YN(_object_name) {
	_object = document.getElementById(_object_name);
	if (_object.checked == true) _value = 'Y';
	else value = 'N';

	return(_value);
}

function get_select_value(_object_select_name) {
	_object = document.getElementById(_object_select_name);
	_value = _object.options[_object.selectedIndex].value;
	
	return(_value);
}

function ongoto(value) {
	window.location = value;
}

