
function ba_CheckBoxItem (FieldName,Text,Mandatory){
ba_SpacerRow(currentTableColumns,"5","");
document.write('<tr valign="middle" align="left">');
ba_MFI(Mandatory,FieldName);
colspan=1
textspan=1
if(Text!=""){
document.write('<td valign="middle" colspan="',textspan,'" style="',localStyle,'"><span id=',FieldName,'Lbl>',Text,'</span></td>');}
else{colspan++}
document.write('<td valign="middle" colspan=',colspan,'> <input style="font-size:120%; font-family:Verdana;" type="checkbox"  name="',FieldName,'"');
document.write('/></td>');
document.write('<td><img src="/cms/s.gif"></td></tr>');
}
function apis_Continue(TableWidth,BackText,BackLink,ContinueText,ContinueLink){
document.write('<table width="' + TableWidth +'" border="0" cellpadding="0" cellspacing="0">');
if (ContinueText != "") {
document.write('<tr><td align="right">');
apis_actionButton(ContinueText,ContinueLink);
document.write('</td></tr>');
}
if (BackText != ""){
document.write('<tr><td align="left" class="maintextintro"><a href="'+BackLink+'"><img src="/cms/global/images/icons/icon_blue_revarrow.gif" width="12" border="0"/> '+BackText+'</a></td></tr>');
}
document.write('</table>');
}
function cug_blueactionButton(buttonText,URL,buttonWidth){
document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor="#EFEFEF"><tr><td>');
document.write('<table width="' + buttonWidth + '" border="2" cellspacing="0" cellpadding="4" bordercolorlight="#EFEFEF" bordercolordark="Black"><tr>');
document.write('<td class="nlsubmit" style="background-color:#666699;" align="center"><div id="submitLayer"><a class="actiontextnounderline" href="' + URL + '">' + buttonText + ' <img src="/cms/global/images/icons/icon_white_triangle.gif" border="0" width="15" alt="&gt;" height="10" /></a></div></td>');
document.write('</tr></table></td></tr></table>');
}
function start_againRHS(TableWidth,Text,URL){
document.write('<table width="' + TableWidth +'" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr ><td align="right" class="maintextintro"><a href="'+URL+'">'+Text+'<img src="includes/icon_blue_triangle.gif" vspace="0" hspace="4" width="8" height="8" alt="" /></a></td></tr>');
document.write('</table>');
}
function apis_actionButton(buttonText,URL){
document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor="#EFEFEF"><tr><td>');
document.write('<table border="2" cellspacing="0" cellpadding="4" bordercolorlight="#EFEFEF" bordercolordark="Black"><tr>');
document.write('<td class="nlsubmit" align="center"><div id="submitLayer"><a class="actiontextnounderline" href="' + URL + '">' + buttonText + ' <img src="/cms/global/images/icons/icon_white_triangle.gif" border="0" width="15" alt="&gt;" height="10" /></a></div></td>');
document.write('</tr></table></td></tr></table>');
}
function cug_blueButton(TableWidth,Text,Link){
document.write('<table width="' + TableWidth +'" border="0" cellpadding="0" cellspacing="0">');
document.write('<tr><td align="right">');
document.write('<table border="0" cellspacing="0" cellpadding="0" bgcolor="#EFEFEF"><tr><td>');
document.write('<table border="2" cellspacing="0" cellpadding="4" bordercolorlight="#EFEFEF" bordercolordark="Black"><tr>');
document.write('<td class="nlsubmit" style="background-color:#666699;" align="center"><div id="submitLayer"><a class="actiontextnounderline" href="' + Link + '">' + Text + ' <img src="/cms/global/images/icons/icon_white_triangle.gif" border="0" width="15" alt="&gt;" height="10" /></a></div></td>');
document.write('</tr></table></td></tr></table></td></tr>');
document.write('</table>');
}
function adultNumberDropdown(dropdownName, selected){
document.writeln('<select class="date" name="' + dropdownName + '">');
people=new Array("1","1","2","2","3","3","4","4","5","5","6","6");
for(i=0; i<people.length;i++)
{
if(selected==people[i])
document.writeln('<option value="' + people[i] + '" selected>');
else
document.writeln('<option value="' + people[i] + '">');
i++;
document.writeln(people[i] + '</option>');
}
document.writeln('</select>');
}
function childInfantNumberDropdown(dropdownName, selected){
document.writeln('<select class="date" name="' + dropdownName + '">');
people=new Array("0","0","1","1","2","2","3","3","4","4","5","5");
for(i=0; i<people.length;i++)
{
if(selected==people[i])
document.writeln('<option value="' + people[i] + '" selected>');
else
document.writeln('<option value="' + people[i] + '">');
i++;
document.writeln(people[i] + '</option>');
}
document.writeln('</select>');
}
function dayDropdown(dropdownName, selected,isDepDay)
{
document.writeln('<select class="date" name="' + dropdownName + '">');
day=new Array();
for(j=1; j<32; j++)
{
day[j]=j;
}
if(isDepDay=="true"){
if(selected=="")
{
var someDate = new Date( );
someDate.setDate(someDate.getDate( ) + 14);
selected = day[someDate.getDate()];
}
}else if(isDepDay=="false"){
if(selected=="")
{
var someDate = new Date( );
someDate.setDate(someDate.getDate( ) + 21);
selected = day[someDate.getDate()];
}
}else if(selected="")
{
today = new Date();
dayIdx = today.getDate();
selected = day[dayIdx];
}
for(i=1; i < day.length; i++)
{
if(selected==day[i])
document.writeln('<option value="' + day[i] + '" selected>');
else
document.writeln('<option value="' + day[i] + '">');
document.writeln(day[i] + '</option>');
}
document.writeln('</select>');
}
var returnMonthFlag=true;
var departMonthFlag=false;
function cug_month (FieldName,Selected,Options,Values)
{
OptionsArray=Options.split(':');
ValueArray=Values.split(':');
document.write('<select class="month" name="',FieldName,'" onChange="setMonth(returnMonthFlag)">');
for(var i=0;i<OptionsArray.length;i++)
{
if (OptionsArray[i] == Selected) {selected='selected="selected"'} else {selected=""};
document.write('<option value="',ValueArray[i],'" ',selected,'>',OptionsArray[i],'</option>');
}
document.write('</select>');
}
function cug_TextItem (FieldName,Text,Mandatory,Value,Size,Maxlength, inputType,helpText){
if(Size==""){Size="18"}
ba_SpacerRow(currentTableColumns,"5","");
document.write('<tr valign="middle" align="left">');
ba_MFI(Mandatory,FieldName);
colspan=1
textspan=1
if(Size=="0"){textspan++}
if(Text!=""){
document.write('<td valign="middle" colspan="',textspan,'" class="nltablecontentprimarystrongbgnone"><span id=',FieldName,'Lbl>',Text,'</span></td>');}
else{colspan++}
if(Size!="0"){
document.write('<td valign="middle" colspan=',colspan,'> <input style="font-size:120%; font-family:Verdana;" type="',inputType,'" size="',Size,'" name="',FieldName,'" maxlength="',Maxlength,'" value="',Value,'" ');
document.write('/></td>');}
document.write('<td class="nltablecontentprimarynobg">',helpText,'</td></tr>');
}
function cug_SelectList (FieldName,Selected,Options,Values) {
OptionsArray=Options.split(':');
ValueArray=Values.split(':');
if(FieldName=='retRng' || FieldName=='depRng')
document.write('<select class="day" name="',FieldName,'">');
else
document.write('<select class="select" name="',FieldName,'">');
for(var i=0;i<OptionsArray.length;i++) {
if (ValueArray[i] == Selected) {selected='selected="selected"'} else {selected=""};
document.write('<option value="',ValueArray[i],'" ',selected,'>',OptionsArray[i],'</option>');
}
document.write('</select>');
}
function cug_SelectItem (FieldName,Text,Mandatory,Selected,Options,OptionsCode,Header, EventHandler, Action){
var OptionsArray = Options.split(':');
if (OptionsCode==""){
OptionsCode = Options;
}
OptionsCodeArray = OptionsCode.split(':');
ba_MFI(Mandatory,FieldName);
document.write('<select class="select" name="',FieldName,'" ');
if(EventHandler && EventHandler != null && Action && Action != null){
document.write(EventHandler + '="' + Action + '" ');
}
document.write('>');
if(Header != ""){document.write('<option value="">',Header,'</option>');}
for(var i=0;i<OptionsArray.length;i++) {
if (OptionsCodeArray[i] == Selected || OptionsArray[i].toUpperCase() == Selected.toUpperCase()) {selected="selected"} else {selected=""};
document.write('<option value='+OptionsCodeArray[i]+' '+selected+'>'+OptionsArray[i]+'</option>');
}
document.write('</select>');
}
