﻿// JScript File

var popUp;

function ConsultarImagenes(idname1,idname2,directorio,postBack)
{
	popUp = window.open('UploadImages.aspx?formname=' + document.forms[0].name + 
		'&id1=' + idname1 + '&id2=' + idname2  + '&directorio=' + directorio  +  '&postBack=' + postBack, 
		'popupcal', 
		'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=5px,left=5px,width=' + screen.width/2 + 'px,height=' + screen.height/1.2 + 'px' );
}


function Ampliar(Archivo)
{
    popUp = window.open('Ampliar.aspx?Archivo=' + Archivo +'', 
		'popupcal', 
		'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,top=5px,left=5px,width=' + 500 + 'px,height=' + 400 + 'px' );
	return false;	
}

function SetValue(formName, id, newValue, postBack)
{
	eval('var theform = document.' + formName + ';');
	popUp.close();
	theform.elements[id].value = newValue;
	if (postBack)
		__doPostBack(id,'');
}	

function QuitaImagen(control,control2)
{
    control.value='';
    document.getElementById(control2).value='';
    
}