



/*	4 Image Popup	*/
function mypopup(url, imageHeight, imageWidth) {
	var image = image
	var newImageHeight = (parseInt(imageHeight) + 40); var newImageWidth = (parseInt(imageWidth) + 40);
	var yPos = ((screen.height / 2) - (parseInt(newImageHeight) / 2));
	var xPos = ((screen.width / 2) - (parseInt(newImageWidth) / 2));

	imageWindow = window.open(url, 'popupImages','toolbar=no,location=no,directories=no,status=yes,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=' + newImageWidth + ',height=' + newImageHeight + ',screenY=' + yPos + ',screenX=' + xPos + ',top=' + yPos + ',left=' + xPos);

	imageWindow.moveTo(xPos, yPos);
	imageWindow.resizeTo(parseInt(imageWidth), parseInt(newImageHeight));

	if (window.focus) {
		imageWindow.focus();
	}
}

/*	4 Conditions Popup	*/
var win = null;
function NewWindow(mypage,myname,w,h,scroll){
LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
settings = 'height='+h+',width='+w+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',resizable';
win = window.open(mypage,myname,settings);
}

/*	4 Conditions Checkbox on checkout_confirmation.php	*/
function check_agree(TheForm) {
  if (TheForm.agree.checked) {
    return true;
  } else {
    //	alert(unescape('<?php echo CONDITION_AGREEMENT_ERROR; ?>'));
		alert('Please read our conditions of use and agree to them. If you do not, your order will not be processed.');
    return false;
  }
}
	
/*	4 Row Effects	*/	
function rowOverEffect(object) {
  if (document.checkout_confirmation.elements[object].parentNode.parentNode.className != 'moduleRowSelected') {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
  }
}
function rowOutEffect(object) {
  if (document.checkout_confirmation.elements[object].checked) {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
  } else {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'infoBoxContents';
  }
}
function checkboxRowEffect(object) {
  document.checkout_confirmation.elements[object].checked = !document.checkout_confirmation.elements[object].checked;
  if(document.checkout_confirmation.elements[object].checked) {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowSelected';
  } else {
    document.checkout_confirmation.elements[object].parentNode.parentNode.className = 'moduleRowOver';
  }
}



	
	
	
	
	