 
 
  var ifSubmitForm = "no";
  var contextRoot  = "/P2G_PortalWeb";
  var contextPath  = "/hubpib";
var message="This function is not allowed within HSBC Internet banking.";
 
window.history.forward(1);
document.oncontextmenu = function(){return false}

if (navigator.appName == "Netscape")
{
   document.onkeypress = function(e) {
   	var c = document.layers ? e.which : document.all ? event.keyCode : e.keyCode;		
   	if (c == 116) {
		alert(message);
		return false;
	}
   }
}
else {
	document.onkeydown = function(){
		if(window.event && window.event.keyCode == 116) 
        	{ 
			window.event.keyCode = 505;
  		}

		if(window.event && window.event.keyCode == 505) {
			alert(message);
			return false; 
		}
	}
}



var ifSubmitFormNoFrame = false;



if(parent != null && parent.ifSubmitForm != null) 
{ 
	parent.ifSubmitForm = "no";
} 


function setHttpReqCrtlFlg()
{
	if(parent != null && parent.ifSubmitForm != null)
	{
		parent.ifSubmitForm = "yes";
	}
}


function chgLocation(link)
{
	setHttpReqCrtlFlg();
	location.replace(link);
	return;
}


 	
function goToNewLocation(link)
{
	
	

}


	

function goToNewLocation2(cRoot, link)
{
	
	
	

}





function formSubmit3(reqType)
{

}












 
function formSubmit(form)
{
	if(!checkIfSubmittedForm())
	{
		setHttpReqCrtlFlg();
		form.submit();
	}
	return;
}





function form1Submit() 
{

}



function formSubmit2(id)
{

	alert("The javascript function 'formSubmit2(id)' is obsolete.");
}


function checkIfSubmittedForm()
{
  if(parent != null && parent.ifSubmitForm != null && parent.ifSubmitForm=="yes")
  {
    return true;
  }
  else
  {
    return false;
  }
}






 
function checkIfSubmittedFormNoFrame()
{
   
}






 
function setIfSubmittedFormNoFrame(flag)
{

}






 
function inputFormSubmitNoFrame()
{

}







 
function formSubmitNoFrame(form)
{

}







 
   
function chgLocationNoFrame(link)
{

 
}









 
function showPopupNoFrame(popup)
{

}



function click1(e)
{
	if (document.all)
	{
		if (event.button == 2)
		{ 
			alert(message); 
			return false; 
		} 
	} 
	if (document.layers) 
	{ 
		if (e.which == 3 || e.which == 2) 
		{ 
			alert(message); submitForm = "no"; 
 			return false; 
		} 
	} 
}

function click2(e) 
{ 
	if (e.which == 3 || e.which == 2) 
	{ 
		alert(message); 
		return false; 
	} 
} 

var s = navigator.appVersion; 
var len = s.length; 
var t = s.substring (0, 3); 
var ver = parseFloat(t); 

if ( (navigator.appName == "Netscape") && (ver >=5)) 
	document.onmouseup=click2; 
else 
	document.onmousedown=click1;


if (navigator.appName == "Netscape")
{
    window.onfocus = function()
    {
        if (document.inputForm)
        {
            for (var i = 0; i < document.inputForm.length; i++)
            {
                document.inputForm[i].onkeypress = function(e)
                {
                    var c = document.layers ? e.which : document.all ? event.keyCode : e.keyCode;		
                    if (document.inputForm[i].type != "textarea" && (c == 13 || c == 3)) return false;
                };
            }
        }
        window.onfocus = null;
    };
}
else
{
    document.onkeypress = function(e)
    {
        var c = document.layers ? e.which : document.all ? event.keyCode : e.keyCode;
        if ((document.activeElement.type == "text" || document.activeElement.type == "password") && (c == 13 || c == 3)) return false;
    };
}
