var imagenumber = 8 ;
var randomnumber = Math.random() ;
var rand1 = Math.round( (imagenumber-1) * randomnumber) + 1 ;
images = new Array
images[1] = '<IMG SRC="images/homepage/rotate/pic1.jpg" width="652" height="225">';
images[2] = '<IMG SRC="images/homepage/rotate/pic2.jpg" width="652" height="225">';
images[3] = '<IMG SRC="images/homepage/rotate/pic3.jpg" width="652" height="225">';
images[4] = '<IMG SRC="images/homepage/rotate/pic4.jpg" width="652" height="225">';
images[5] = '<IMG SRC="images/homepage/rotate/pic5.jpg" width="652" height="225">';
images[6] = '<IMG SRC="images/homepage/rotate/pic6.jpg" width="652" height="225">';
images[7] = '<IMG SRC="images/homepage/rotate/pic7.jpg" width="652" height="225">';
images[8] = '<IMG SRC="images/homepage/rotate/pic8.jpg" width="652" height="225">';
var headerImage = images[rand1];

function isNull(fieldValue) {
	var temp = trim(fieldValue);
	if(temp.length > 0) {
		return false;
	} else {
		return true;
	}
}

function trim(sInString) {
  sInString = sInString.replace( /^\s+/g, "" );// strip leading
  return sInString.replace( /\s+$/g, "" );// strip trailing
}
