function changeLocation(cbo){
	if(cbo.value != ""){
		document.location.href = cbo.value;	
	}
}

function popIt(Src_,Width_,Height_){
	myWindow = window.open("images/" + Src_ , 'Photo', 'toolbar=no,resizable=yes,scrollbars=yes,width=' + Width_ + ',height=' + Height_ + ',screenX=0,screenY=0');	
}

function popWindow(Src_,Width_,Height_){
	myWindow = window.open(Src_ , 'GJMariage', 'toolbar=no,resizable=yes,scrollbars=yes,width=' + Width_ + ',height=' + Height_ + ',screenX=0,screenY=0');	
}

function confirmDelete(Message_,ObjectID_){
	if(confirm(Message_)){
		document.location.href = 'index.php?Id=Cart&Action=DeleteItem&ItemID=' + ObjectID_;
	}
}

function ValideSendToFriend(){
	var error = 0;
	
	if(document.forms['frmSendToFriend'].Name.value != ""){
		document.getElementById('yourname').style.color = "#000000";
	}else{
		document.getElementById('yourname').style.color = "#FF0000";
		error = 1;
	}
	
	if(document.forms['frmSendToFriend'].Email.value != ""){
		document.getElementById('youremail').style.color = "#000000";
	}else{
		document.getElementById('youremail').style.color = "#FF0000";
		error = 1;
	}
	
	if(document.forms['frmSendToFriend'].Subject.value != ""){
		document.getElementById('yoursubject').style.color = "#000000";
	}else{
		document.getElementById('yoursubject').style.color = "#FF0000";
		error = 1;
	}
	
	if(document.forms['frmSendToFriend'].FriendEmail.value != ""){
		document.getElementById('friendemail').style.color = "#000000";
	}else{
		document.getElementById('friendemail').style.color = "#FF0000";
		error = 1;
	}
	
	if(document.forms['frmSendToFriend'].FriendName.value != ""){
		document.getElementById('friendname').style.color = "#000000";
	}else{
		document.getElementById('friendname').style.color = "#FF0000";
		error = 1;
	}

	
	if(error == 0){
		return true;	
	}else{
		return false;	
	}
}

function changeSearchBox(Txt_){
	if(Txt_.value == document.getElementById("SearchForDefault").value){
		Txt_.value = "";	
	}
}

function switchPrice(Chk_,PrixDiademe_,PrixVoile_,LabelDiademe_,LabelVoile_){
	if(Chk_.checked == true){
		document.getElementById("PrixDiademe").innerHTML = LabelVoile_ + 	PrixVoile_;
	}else{
		document.getElementById("PrixDiademe").innerHTML = LabelDiademe_ + 	PrixDiademe_;	
	}
}