﻿function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
function goToConfirm(Id){
  if (confirm ('This property has already been added to your Shopping Cart.'))
    location = "custpropgrid.asp?id=" + Id;
}
function swapPicPrev1(){	
	cnt = cnt - 1	
	if ( cnt == 0 ) {
		cnt = piccnt + 1
	}
	document.pdform.PhotoGalleryImage.value = "Photo " + cnt + " of " + (piccnt + 1);
	document.pdform.mainimage.src = eval('pic' + cnt);
	if ( cnt == 1 ) {
		cnt = piccnt + 2
	}
}
function swapPicNext1(){	
	cnt = cnt + 1	
	if ( cnt > (piccnt + 1)) {
		cnt = 1
	}
	document.pdform.PhotoGalleryImage.value = "Photo "+cnt+" of "+(piccnt+1);
	document.pdform.mainimage.src = eval('pic' + cnt);
}

function swapPicNum(num){
	cnt = num;
	document.pdform.PhotoGalleryImage.value = "Photo " + cnt + " of " + (piccnt + 1);
	document.pdform.mainimage.src = eval('pic' + cnt);
}
