
 function ReDirectShortCut()
 {
 var iIndex = document.reDirectShortCut.sltShortCut.selectedIndex;
 var sReDirect = document.reDirectShortCut.sltShortCut[iIndex].value;
 var sPopUps = document.reDirectShortCut.popups.value;
 
 if ( sReDirect == '')
 	{
 	alert("Please select a category");
 	}
 else
 	{
 	var arrPopUp = sPopUps.split( ";" );
 	var bShouldPopup = false;
 	for( i=0;i<arrPopUp.length;i++ )
 		{
 			
 // start new code
 // if this is "User Guide" (2) open a new window
 // and make sure parent window stays the same
 if (iIndex == 2) {  
   window.open(sReDirect);
   // make sure parent window stays the same
   parent.history.go(0);
   return false;
   break;
 }
 
 // if this is "View Demo" (2) call popUp() function
 // and make sure parent window stays the same
 if (iIndex == 4) {  
   popUp(sReDirect);
   // make sure parent window stays the same
   parent.history.go(0);
   return false;
   break;
 }
 // end new code
 

 	}
 
 if( bShouldPopup ) {
   window.open(sReDirect);
 }		
 else {
   location.href = sReDirect;
   }  
  }
 }
 function OnChange(inStr)
	{ 
		dropDownIndex = inStr;	
	}
	
	function KeyHandler(e) 
	{
    	if (document.all)
		{
			Key = window.event.keyCode;
		}
    	else
		{
			Key = e.which;
		}
		
    	if (Key == 13)
		{
        	if ( dropDownIndex ==  0)
			{ 
				ReDirectShortCut();
			}
			if ( dropDownIndex ==  1)
			{ 
				ReDirectCorpSite();
			}
		}
	}
	document.onkeypress = KeyHandler;

		
	//////////////////////////////////////////////////////////////////////////////////
	// 
	//////////////////////////////////////////////////////////////////////////////////

function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=no,location=0,statusbar=0,menubar=0,resizable=0,width=550,height=400,left = 237,top = 184');");
}

		
	//////////////////////////////////////////////////////////////////////////////////
	// 
	//////////////////////////////////////////////////////////////////////////////////

<!--
// ESOS Functions for logon and forgotten password entry points
   var esos_host = "ros.regence.com";
   function forgotPassword(site){
     var calling_url_cookie = site + "; path=/; domain=.regence.com";
	 document.cookie = "Calling_URL=" + calling_url_cookie;
     document.location = "https://" + esos_host + "/ebusiness/password/forgotPassword";
     return true;
   }
// -->

	
