/*Img rollover function*/
function rollover(name,source){
    document.images[name].src=source;
}

function openReferencePopup(sFolder, iFileCount, sTitle)
	{
			window.open("../common/referencepopup.asp?sFolder=" + sFolder + "&iFileCount=" + iFileCount + "&sTitle=" + sTitle ,"", "toolbar=0,width=1000 height=600 top=0,left=0,scrollbars=1");
	}

arImageList = new Array ();

function preLoadCatImages(images_array) {
	for(loop = 0; loop < images_array.length; loop++)
	{
           arImageList[loop] = new Image(); 
           arImageList[loop].src = images_array[loop];
	}
}
function openwindowref(url)
{
	window.open(url, "", "toolbar=0,width=600, height=550, top=50,left=50,scrollbars=yes"); 
}

function openwindow(url)
{
	window.open(url, "", "toolbar=0,width=500, height=500, top=50,left=300,scrollbars=no"); 
}
function openwindow1(url,w,h)
{
	window.open(url, "", "toolbar=0, width=" + w + ",height=" + h + ", top=50,left=50,scrollbars=1"); 
}
function leave_site(url)
{
	window.open("../common/outsidelink.asp?url=" + url,"", "toolbar=0,width=550, height=325, top=50,left=50,scrollbars=yes"); 
}
function leave_site1(url)
{
	window.open(url,"", "toolbar=0,width=500, height=180, top=50,left=50,scrollbars=yes"); 
}
function leave_site2(url)
{
	window.open(url,"", "toolbar=0,width=1000, height=600, top=0,left=0,scrollbars=yes"); 
}
function leave_site3(url)
{
	alert(url)
	window.open("common/outsidelink.asp?url="+ url,"", "toolbar=0,width=500, height=225, top=50,left=50,scrollbars=yes"); 
}
function Trim(TRIM_VALUE){
if(TRIM_VALUE.length < 1){
return"";
}
TRIM_VALUE = RTrim(TRIM_VALUE);
TRIM_VALUE = LTrim(TRIM_VALUE);
if(TRIM_VALUE==""){
return "";
}
else{
return TRIM_VALUE;
}
} //End Function

function RTrim(VALUE){
var w_space = String.fromCharCode(32);
var v_length = VALUE.length;
var strTemp = "";
if(v_length < 0){
return"";
}
var iTemp = v_length -1;

while(iTemp > -1){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(0,iTemp +1);
break;
}
iTemp = iTemp-1;

} //End While
return strTemp;

} //End Function

function LTrim(VALUE){
var w_space = String.fromCharCode(32);
if(v_length < 1){
return"";
}
var v_length = VALUE.length;
var strTemp = "";

var iTemp = 0;

while(iTemp < v_length){
if(VALUE.charAt(iTemp) == w_space){
}
else{
strTemp = VALUE.substring(iTemp,v_length);
break;
}
iTemp = iTemp + 1;
} //End While
return strTemp;
} //End Function	