var pictureGalleryImages = new Array();
var rnd = -1;
		
//Images should reside in - images/
if (pictureGalleryImages.length == 0){
pictureGalleryImages[0] = "bubbles1.gif"
pictureGalleryImages[1] = "bubbles2.gif"
pictureGalleryImages[2] = "bubbles3.gif"
pictureGalleryImages[3] = "bubbles4.gif"
pictureGalleryImages[4] = "bubbles5.gif"
}

function verifyglobalsearchform() {
	txtSearch = document.frmGlobalSearch.txtSearch.value;
	if (txtSearch == "") {
		window.alert ('Please enter a search term.');
		return false; }
	else {
		return true;
	}
}

var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
	if(pos=="random") {
		LeftPosition=(screen.width)?Math.floor(Math.random()*((screen.width-w)-75)):100;
		TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;
	}
	if(pos=="center") {
		LeftPosition=(screen.width)?(screen.width-w)/2:100;
		TopPosition=(screen.height)?(screen.height-h)/2:100;
	}
	else if((pos!="center" && pos!="random") || pos==null) {
		LeftPosition=0;
		TopPosition=20
	}

	settings='height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable=yes,status=yes,menubar=yes,toolbar=yes,location=yes';
	win=window.open(mypage,myname,settings);
	if(win.focus) {
		win.focus();
	}
}



function cr2k4pop(){
	NewWindow('../cr2004/index.asp','crSite',800,600,'yes','center');
}
function cr2k4popToIntro(){
	NewWindow('../cr2004/report/report_intro.asp','crSite',800,600,'yes','center');
}


/*
home page one
*/
function cr2k4popHome(){
	NewWindow('cr2004/index.asp','crSite',800,600,'yes','center');
}

