function openWindow(url,top,left,height,width) {
  popupWin = window.open(url, 'remote', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,dependent,width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + '')
}

function openWindowScroll(url) {
  popupWin = window.open(url, 'remote', 'menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,dependent,width=490,height=470,left=100,top=100')
}

function openWin(url, tipo)
{
switch(tipo)
	{
	case 1:
		openWindow(url,"200","100","150","565")
		break;
	}

}