function showHideShipFields1()
{
	x = document.form_info;
	if(x.shipCheck1.checked == 1){
		document.getElementById('shipFields1').style.display = 'block';
	}
	else{
		document.getElementById('shipFields1').style.display = 'none';
	}
}
function showHideShipFields2()
{
	x = document.form_info1;
	if(x.shipCheck2.checked == 1){
		document.getElementById('shipFields2').style.display = 'block';
	}
	else{
		document.getElementById('shipFields2').style.display = 'none';
	}
}
function showHideShipFields3()
{
	x = document.formPayment;
	if(x.shipCheck3.checked == 1){
		document.getElementById('shipFields3').style.display = 'block';
	}
	else{
		document.getElementById('shipFields3').style.display = 'none';
	}
}
function showHideShipFields4()
{
	x = document.formPayment;
	if(x.shipCheck4.checked == 1){
		document.getElementById('shipFields4').style.display = 'block';
	}
	else{
		document.getElementById('shipFields4').style.display = 'none';
	}
}
function showHideShipFields5()
{
	x = document.formPayment;
	if(x.shipCheck5.checked == 1){
		document.getElementById('shipFields5').style.display = 'block';
	}
	else{
		document.getElementById('shipFields5').style.display = 'none';
	}
}
function showHideShipFields6()
{
	x = document.formPayment;
	if(x.shipCheck6.checked == 1){
		document.getElementById('shipFields6').style.display = 'block';
	}
	else{
		document.getElementById('shipFields6').style.display = 'none';
	}
}
function valid_form_payment()
{
	x = document.formPayment;
	if(x.prenom.value=="" || x.nom.value=="" || x.adresse.value=="" || x.ville.value=="" || x.codePostal.value=="" || x.tel.value=="" || x.courriel.value==""){
        alert("ADRESSE DE FACTURATION: Les champs indiqués avec un astérisque sont obligatoires.");
    	return false;
	}
    else if(x.shipCheck.checked == 1){
    	if(x.shipPrenom.value=="" || x.shipNom.value=="" || x.shipAdresse.value=="" || x.shipVille.value=="" || x.shipCodePostal.value==""){
        	alert("ADRESSE DE LIVRAISON: Les champs indiqués avec un astérisque sont obligatoires.");
    		return false;
    	}
	}
    else if(x.carteNo.value=="" || x.carteCVV.value=="" || x.carteExp.value==""){
    	alert("INFORMATIONS CARTE DE CRÉDIT: Les champs indiqués avec un astérisque sont obligatoires.");
    	return false;
    }
    x.bSubmit.disabled = true;
	return true;
}
function openpop( url, width, height, options)
{
  if ( ! options ) options = "scrollbars=1,menubar=0,toolbar=0,location=0,status=0,resizable=1,left=1,top=1";
  var newWin = window.open( url,'', "width=" + width + ",height=" + height + "," + options );
}





