
function writeChildbox()
{
var childs = document.getElementById('child').value;

if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
var url="make_boxes.php?childs="+childs;

xmlhttp.open("GET",url,false);
xmlhttp.send(null);
document.getElementById('childbox').innerHTML=xmlhttp.responseText;
}

function cardform()
{
var cardtype = document.getElementById('cardtype').value;
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
var url="make_cardfrm.php?cardtype="+cardtype;

xmlhttp.open("GET",url,false);
xmlhttp.send(null);
document.getElementById('msd').innerHTML=xmlhttp.responseText;
}


function removeInfo(Booking_Id,extra_Id)
{
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
var Booking_Id=Booking_Id;
var extra_Id=extra_Id;
var url="extraupdate.php?Booking_Id="+Booking_Id+"Extra_Id="+extra_Id;

xmlhttp.open("GET",url,false);
xmlhttp.send(null);
document.getElementById('childbox').innerHTML='';
}

function ClearTextBoxes(inputName)
{ 
var inputName;
document.getElementById(inputName).value = ''; 
}


