var category = new Array();
var querytype = new Array();
var queryvals = new Array();
var subquery = new Array();
queryvals[0]=""
queryvals[1]="Corporate";
queryvals[2]="Travel Agent";
queryvals[3]="Domestic Flights";
queryvals[4]="Domestic Hotels/Packages";
queryvals[5]="International Flights";
queryvals[6]="International Hotels/Packages";
queryvals[7]="International US Inbound";
queryvals[8]="International UK Inbound";
queryvals[9]="Franchise";
queryvals[10]="Affiliates";
queryvals[11]="White Label";
queryvals[12]="Mobile";

querytype[0]="Select the Travel Category"
querytype[1]="Corporate";
querytype[2]="Travel Agent";
querytype[3]="Domestic Flights";
querytype[4]="Domestic Hotels/Packages";
querytype[5]="International Flights";
querytype[6]="International Hotels/Packages";
querytype[7]="International US Inbound";
querytype[8]="International UK Inbound";
querytype[9]="Franchise";
querytype[10]="Affiliates";
querytype[11]="White Label";
querytype[12]="Mobile";

subquery[0]="Select the Type of Travel";
subquery[1]="Business Partnership:Business Partnership";
subquery[2]="Business Partnership:Business Partnership";
subquery[3]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Bus/Car:Bus/Car,Cash On Delivery:Cash On Delivery";
subquery[4]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Supplier/Vendor/Hotel:Supplier/Vendor/Hotel,Bus/Car:Bus/Car,Cash On Delivery:Cash On Delivery";
subquery[5]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Bus/Car:Bus/Car,Cash On Delivery:Cash On Delivery";
subquery[6]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Supplier/Vendor/Hotel:Supplier/Vendor/Hotel,Bus/Car:Bus/Car,Cash On Delivery:Cash On Delivery";
subquery[7]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Supplier/Vendor/Hotel:Supplier/Vendor/Hotel,Cash On Delivery:Cash On Delivery";
subquery[8]="Sales:Sales,Customer Service:Customer Service,Advertisement:Advertisement,Website:Website,Supplier/Vendor/Hotel:Supplier/Vendor/Hotel,Cash On Delivery:Cash On Delivery";
subquery[9]="Business Partnership:Business Partnership";
subquery[10]="Business Partnership:Business Partnership";
subquery[11]="Business Partnership:Business Partnership";
subquery[12]="Sales:Sales,Customer Service:Customer Service";

// Creating Two Dimensional Array of [QUERY][SUB-QUERY] Fields.
var category= new Array(11);
for (i=0; i <=12; i++){
	category[i]=new Array(8);
}
category[0][0]="Select the Category";
category[1][0]="Feedback:Feedback,General Information:General Information";
category[2][0]="Feedback:Feedback,General Information:General Information";
category[3][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[3][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[3][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[3][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[3][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[3][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
//Amendment:,Booking Error:,Booking Status:,Complaint:,Compliments:,Cancellation:,Feedback:,Fraud/Suspect:,General Information:,Group Booking:,Payment Error:,Promotion:,Refund:,Sales Enquiry:,Supplier Information:,Telephone Lines Not working:,Tickets/Voucher not received:,Website Down:lptalisma@yatraonline.com
category[4][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[4][6]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[5][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[5][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[5][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[5][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[5][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[5][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[6][6]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[7][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][2]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][3]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][4]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[8][5]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Visa Services:Visa Services,Website Down:Website Down";
category[9][0]="Feedback:Feedback,General Information:General Information";
category[10][0]="Feedback:Feedback,General Information:General Information";
category[11][0]="Feedback:Feedback,General Information:General Information";
category[12][0]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";
category[12][1]="Amendment:Amendment,Booking Error:Booking Error,Booking Status:Booking Status,Complaint:Complaint,Compliments:Compliments,Cancellation:Cancellation,Feedback:Feedback,Fraud/Suspect:Fraud/Suspect,General Information:General Information,Group Booking:Group Booking,Payment Error:Payment Error,Promotion:Promotion,Refund:Refund,Sales Enquiry:Sales Enquiry,Supplier Information:Supplier Information,Telephone Lines Not working:Telephone Lines Not working,Tickets/Voucher not received:Tickets/Voucher not received,Website Down:Website Down";

function populateQueryType(field){ 

	field.length = querytype.length;
        for (var i = 0; i < querytype.length; i++){ 
			field[i].text = querytype[i]; field[i].value = queryvals[i];
       	} field.selectedIndex = 0;
}

function populateCategory(field, source){
		var categories;
		var parentCtgIndex;
		if(field.name == 'subquery'){
			categories = subquery[source.selectedIndex];
		}else{
			parentCtgIndex = document.getElementById("query").selectedIndex;
			categories = category[parentCtgIndex][source.selectedIndex];
		}
	    var categ = categories.split(",");
	
	    var categoryCodes = new Array();
	    var categoryNames = new Array();
	    for (var i = 0; i < categ.length; i++){ 
			var categoryPair = categ[i].split(":"); 
			categoryCodes[i] = categoryPair[1]; 
			categoryNames[i] = categoryPair[0];
	   	}
        field.length = categoryCodes.length;
        for (var i = 0; i < categoryCodes.length; i++) { 
			field[i].text = categoryNames[i]; 
			field[i].value = categoryCodes[i]; 
		}

        field.selectedIndex = 0;
}



function emailValue(){
	document.feedbackForm.emailid.value = document.feedbackForm.category.value;
}



function init(){
	populateQueryType(document.feedbackForm.query);
	populateCategory(document.feedbackForm.subquery, document.feedbackForm.query);
	populateCategory(document.feedbackForm.category, document.feedbackForm.query);
}
