var _nDelay = 2000; // Delay in milliseconds

function framedPage(sPage){
//alert("framedPage");
	var sURL = "frameset.aspx";
	if(window.top==window){
		if(sPage.length>0){
			sURL += "?dest="+sPage
		}
		setTimeout("redirect('"+sURL+"')",_nDelay);
	}
}

function nonFramedPage(sPage){
//alert("nonFramedPage");
	if(window.top!=window){
		setTimeout("redirect('"+sPage+"')",_nDelay);
	}
}

function redirect(sDestPage){
//alert("redirect");
	window.top.location.href=sDestPage;
}