    function newwindow() {
        window.open('cvv_help.php','jav','width=500,height=550,resizable=no,toolbar=no,menubar=no,status=no');
    }

    function popupstsWindow(url) {
            newwindow=window.open(url,'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150');
    }

	function show(id) {
	    var d = document.getElementById(id);
		if (d)
		    var display = d.style.display;
		for (var i = 1; i<=20; i++) {
			if (document.getElementById('answer_q'+i)) {document.getElementById('answer_q'+i).style.display='none';}
		}
	    if (d) {
			if (display == 'none')
	 		    d.style.display='block';
		}
	}

    function popupWindow(url) {
            newwindow=window.open(url,'name','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,left=150');
    }
    
	function session_win() {
        window.open("<?php echo tep_href_link(FILENAME_INFO_SHOPPING_CART); ?>","info_shopping_cart","height=460,width=430,toolbar=no,statusbar=no,scrollbars=yes").focus();
    }
	
    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';
	  }
	}

	function check_agree(TheForm) {
	  if (TheForm.agree.checked) {
	    return true;
	  } else {
	    alert(unescape('Please read our conditions of use and agree to them. If you do not do so, your order will not be processed.'));
	    return false;
	  }
	}

	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)
	}