// You will need to include argUtils.js before including this file
//
// pass in any number of name:value pairs 
// e.g.	newPortalArea("pn");
// 		newPortalArea("vn", "taxiid", "5009", "imageId", "400066"); 
//
function newPortalArea(area, name, value)
{
	var curArgs = getGenericArgs();
	if(curArgs != "") curArgs= "?" + curArgs;

	curArgs= updateArgValue(curArgs, "uc", top.UserCode);
	curArgs= updateArgValue(curArgs, "un", top.UserName);

    // Skip area and process the args
    var len = newPortalArea.arguments.length;
    var args = newPortalArea.arguments;
    for(var i=1; i < len; i+=2) 
		curArgs= updateArgValue(curArgs, args[i], args[i+1]);

	var newHref= "../html/index.asp" + curArgs + "&area=" + area;
    setTimeout("setNewPortalArea(" + "'" +  newHref + "')", 500); // Call "timeoutFunction" in 500

	return false;
}

// Don't know if this is still needed
function setNewPortalArea(newHref)
{
	top.location.href= newHref;
}

