/*
FUNCTION NAME: specifySeat
Hide the 'Seat' image and build a text box for the cell
for user to enter seat number into
*/
function specifySeat(passType,passNo,seg,seatReq)
{
var doc = document.form;
var df = document.forms["form"];
var noa = doc.noa.value;
var noc = doc.noc.value;
if (passType == "ADT")
{
var passagier = "Adult";
pass = "AD";
}
else if (passType == "CHD")
{
var passagier = "Child";
pass = "CH";
}
alert("pass = " + pass);
// If the user selected to specify their own seat
if (seatReq == "specify_seat")
{
for(s=0; s<=seg; s++)
{
if (document.getElementById("FL"+s) != null)
{
var seat_zelle = document.getElementById("FL"+s);
//seat_zelle.style.visibility = "hidden";
if (document.getElementById("seat_img"+s) != null)
{
var seat_img = document.getElementById("seat_img"+s);
seat_img.style.visibility = "hidden";
}
//var temp = "TEST";
alert("pass = " + pass);
temp = pass;
alert("temp = " + temp);
seat_zelle.innerHTML = "<input type='text' id='specify"+s+"' name='specify"+s+"' "+
"title='Insert Seat Number for Pax: "+ passagier + " " + passNo + " / Segment "+ parseFloat(s+1) +"' "+
"class='selects' size='5' onBlur='concatSeats(this.value,"+passNo+",this.id, "+pass+");' onKeyUp='this.value=this.value.toUpperCase(); return IsNumeric(this.value,this.id);' />";
//seat_zelle.onClick = "return test();";
bOpenWin = false;
var selectedSeats = true;
//alert("CHanged selectedSeats = " + selectedSeats);
}
}
}
}
www.crmpicco.co.uk