function NewWindow(strURL,strWindowName,intWidth,intHeight,strExtraParams,blCenter,blModal)
{
	if (blCenter)
	{ //Ventana Centrada
		var wHeight = window.screen.height;
		var wWidth = window.screen.width;
		var iTop = parseInt((wHeight / 2) - (intHeight / 2));
		var iLeft = parseInt((wWidth / 2) - (intWidth / 2));
		if (!blModal)
			return window.open(strURL,strWindowName,"height=" + intHeight + ",left=" + iLeft + ",top=" + iTop + ",width=" + intWidth + "," + strExtraParams);
		else
			window.showModalDialog(strURL,strWindowName,"Height=" + intHeight + ",Left=" + iLeft + ",Top=" + iTop + ",Width=" + intWidth + "," + strExtraParams);
	} else {
		if (!blModal)
			return window.open(strURL,strWindowName,"height=" + intHeight + ",width=" + intWidth + "," + strExtraParams);
		else
			window.showModalDialog(strURL,strWindowName,"Height=" + intHeight + ";Width=" + intWidth + ";" + strExtraParams);
	}		
}
/*
Puedes utilizar este script en tu página, (ponlo entre <head>..</head>: 
<script language="JavaScript1.2"> 
<!-- 
window.moveTo(0,0); 
if (document.all) { 
top.window.resizeTo(screen.availWidth,screen.availHeight); 
} 
else if (document.layers||document.getElementById) { 
if (top.window.outerHeight<screen.availHeight||top.window.outerWidth<screen.availWidth){ 
top.window.outerHeight = screen.availHeight; 
top.window.outerWidth = screen.availWidth; 
} 
} 
//--> 
</script> 
*/
function showNew(NEW_ID)
{
	var strURL = "";
	var wNew;
	strURL = "news.detail.asp?NEW_ID=" + NEW_ID;
	wNew = NewWindow(strURL,"wNew",400,300,"scrollbars=yes,status=no,toolbar=no,menubar=no,location=no",true,false);
//	wNew = window.open(strURL);
}

function showSiteIPA(strValue)
{
	var strHost = "http://w3.ipartner.es";
	var strVirtualDirectory = "";
	var wNew;

	switch(strValue)
	{
		case "1":
			strVirtualDirectory = "http://corp.ipartner.es/clientes/";
			break;
		case "2":
			strVirtualDirectory = "http://corp.ipartner.es/agenciasviaje/";
			break;
		case "3":
			strVirtualDirectory = "http://w3.ipartner.es/proveedores/";
			break;
		case "4":
			strVirtualDirectory = "http://corp.ipartner.es/agenciasviaje/default.asp?id=brokers";
			break;
		case "5":
			strVirtualDirectory = "http://www.doctorclic.es/remoto/axa/axa.html";
			break;

/*********
* la opcion 5 redirige a w3.../informatica/index.html Esta redirige a ntrconnec. Tambien esta este directorio en local
**********/	


		default:
			break;
	}
	if(strValue!="0")
	{
		if(strValue=="2")
		{
		//	wNew = NewWindow(strHost + strVirtualDirectory,"wNew",window.screen.width-20, window.screen.height-100,"scrollbars=yes,status=yes,toolbar=yes,menubar=yes,location=yes",false,false);
			wNew = window.open(strVirtualDirectory);
		}
		else
		{
			document.location = strVirtualDirectory;
		}
	}
}

/***********************************************
* Cross browser Marquee II- © Dynamic Drive (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit http://www.dynamicdrive.com/ for this script and 100s more.
***********************************************/

var delayb4scroll=1000 //Specify initial delay before marquee starts to scroll on page (2000=2 seconds)
var marqueespeed=1 //Specify marquee scroll speed (larger is faster 1-10)
var pauseit=1 //Pause marquee onMousever (0=no. 1=yes)?

////NO NEED TO EDIT BELOW THIS LINE////////////

var copyspeed=marqueespeed
var pausespeed=(pauseit==0)? copyspeed: 0
var actualheight=''

function scrollmarquee(){
if (parseInt(cross_marquee.style.top)>(actualheight*(-1)+8)) //if scroller hasn't reached the end of its height
cross_marquee.style.top=parseInt(cross_marquee.style.top)-copyspeed+"px" //move scroller upwards
else //else, reset to original position
cross_marquee.style.top=parseInt(marqueeheight)+8+"px"
}

function initializemarquee(){
cross_marquee=document.getElementById("vmarquee")
cross_marquee.style.top=0
marqueeheight=document.getElementById("marqueecontainer").offsetHeight
actualheight=cross_marquee.offsetHeight //height of marquee content (much of which is hidden from view)
if (window.opera || navigator.userAgent.indexOf("Netscape/7")!=-1){ //if Opera or Netscape 7x, add scrollbars to scroll and exit
cross_marquee.style.height=marqueeheight+"px"
cross_marquee.style.overflow="scroll"
return
}
setTimeout('lefttime=setInterval("scrollmarquee()",30)', delayb4scroll)
}