var im = new Array(8);

for (i=1; i < 10; i++) {
	im[i] = new Image();
	im[i].onerror = img_onError;
	im[i].src = imgPath + i + '.jpg';
}

function img_onError() {
  this.error = true;
	this.src = 'images/white.jpg';
}

function nav(qd) {
  if( im[qd].error != true ){
	 document.getElementById('naviPic').src = im[qd].src;
  }
}


function cb() {
	var t = window.open('callback/','cb','width=338, height=362, status=no, statusbar=no,scrollbars=no,adressbar=no,locationbar=no,toolbar=no');
	t.focus();
}
