function scrollingFnV(fixedTop,percentOfHeight){

if (self.innerWidth) 
{ 
 frameHeight = self.innerHeight; 
} 
else if (document.documentElement && document.documentElement.clientWidth) 
{ 
 frameHeight = document.documentElement.clientHeight; 
} 
else if (document.body) 
{
 frameHeight = document.body.clientHeight;
} 

if (frameHeight==0) 
{
 frameHeight = (self.screen.availHeight*.9);
} 

// the following two lines can used to adjust height and width
var fhgt=frameHeight-fixedTop;
fhgt=fhgt*percentOfHeight;
document.write('<div style="height:'+fhgt+';overflow: auto;">');
}

function scrollingFnVH(fixedTop, percentOfWidth){ //percentOfWidth=0.98

if (self.innerWidth) 
{ 
 frameWidth = self.innerWidth;
 frameHeight = self.innerHeight; 
} 
else if (document.documentElement && document.documentElement.clientWidth) 
{ 
 frameWidth = document.documentElement.clientWidth; 
 frameHeight = document.documentElement.clientHeight; 
} 
else if (document.body) 
{
 frameWidth = document.body.clientWidth; 
 frameHeight = document.body.clientHeight;
} 

if (frameHeight==0) 
{
 frameWidth = self.screen.availWidth; 
 frameHeight = (self.screen.availHeight*.9);
} 

// the following two lines can used to adjust height and width
var fhgt=frameHeight-fixedTop;
var fdth=frameWidth*percentOfWidth;

document.write('<div style="width:'+fdth+';height:'+fhgt+';overflow: auto;">');
}

function putToTopOfPage(aligned) {
var str='';

str+='<table cellpadding="0" cellspacing="0" align="';
str+=aligned;
str+='" onClick="document.location=\'#top\'" title="To Top of Page" style=\'cursor: pointer; \'>';
str+='<tr><td align="center"><img src="Pictures/arrowUp.gif" border="0" alt=""> <\/td><\/tr>';
str+='<tr><td align="center"><span style=\'font-size:12px;\'>Top <\/span><\/td><\/tr><\/table>';
document.write(str);
}
