function dynamicSubType(){
	var dd=document.getElementById("problem_type");
	if(dd.options[dd.selectedIndex].value=="0"){
		document.getElementById("dynamicContent").innerHTML=chooseProblemTxt;
	}else if(dd.options[dd.selectedIndex].value=="1"){
		dynamic_1(); // CrossPublication
	}else if(dd.options[dd.selectedIndex].value=="2"){
		dynamic_2(); // Customization
	}else if(dd.options[dd.selectedIndex].value=="3"){
		dynamic_3(); // DNEList
	}else if(dd.options[dd.selectedIndex].value=="4"){
		dynamic_4(); // Email
	}else if(dd.options[dd.selectedIndex].value=="5"){
		dynamic_5(); // Reporting Issue
	}else if(dd.options[dd.selectedIndex].value=="6"){
		dynamic_6(); // Setup
	}else if(dd.options[dd.selectedIndex].value=="7"){
		dynamic_7(); // Third Party Pixel
	}else if(dd.options[dd.selectedIndex].value=="8"){
		dynamic_8(); // Tracking
	}else if(dd.options[dd.selectedIndex].value=="9"){
		dynamic_9(); // Webservices
	}else if(dd.options[dd.selectedIndex].value=="10"){
		dynamic_10(); // Other
	}else if(dd.options[dd.selectedIndex].value=="11"){
		dynamic_11(); // Connection Problem
	}else if(dd.options[dd.selectedIndex].value=="12"){
		dynamic_12(); // Affiliate Login Issue
	}

	enableDisableSubType(); // enable or disable sub dropdown based on selection
}

// dynamically generate problem fields

var sfe;

function dynamic_1(){ // CrossPublication
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Cross Publication Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Campaign Issue','1');
	sfe.options[sfe.options.length] = new Option('Creative Issue','2');
	sfe.options[sfe.options.length] = new Option('Tracking Issue','3');
}

function dynamic_2(){ // Customization
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Customization Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Advertiser Interface','1');
	sfe.options[sfe.options.length] = new Option('Affiliate Interface','2');
}

function dynamic_3(){ // DNEList
	clearMenu();
	sfe.options[sfe.options.length] = new Option('DNE List Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('New List','1');
	sfe.options[sfe.options.length] = new Option('Existing List','2');
}

function dynamic_4(){ // Email
	clearMenu();
	sfe.options[sfe.options.length] = new Option('E-mail Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Automated E-mail','1');
	sfe.options[sfe.options.length] = new Option('Manual E-mail','2');

}

function dynamic_5(){ // Reporting Issue
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Reporting Issue Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Admin Interface','1');
	sfe.options[sfe.options.length] = new Option('Advertiser Interface','2');
	sfe.options[sfe.options.length] = new Option('Affiliate Interface','3');
}

function dynamic_6(){ // Setup
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Setup Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Campaigns','1');
	sfe.options[sfe.options.length] = new Option('Creatives','2');
	sfe.options[sfe.options.length] = new Option('Payment Scripts','3');
}

function dynamic_7(){ // Third Party Pixel
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Third Party Pixel','1');
	changeCont();
}

function dynamic_8(){ // Tracking
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Tracking Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Hosted','1');
	sfe.options[sfe.options.length] = new Option('Imported','2');
	sfe.options[sfe.options.length] = new Option('Pixel Tracking','3');
}

function dynamic_9(){ // Webservices
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Webservices Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Admin','1');
	sfe.options[sfe.options.length] = new Option('Affiliate','2');

}

function dynamic_10(){ // Other
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Other','1');
	changeCont();
}

function dynamic_11(){ // Connection Problem
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Connection Subcategory','0');
	sfe.options[sfe.options.length] = new Option('------------------------------------- ','0');
	sfe.options[sfe.options.length] = new Option('Interface Down','1');
	sfe.options[sfe.options.length] = new Option('Interface Perfomance Issue','2');
}

function dynamic_12(){ // Connection Problem
	clearMenu();
	sfe.options[sfe.options.length] = new Option('Affiliate Interface Login Subcategory','1');
	changeCont();
}


function changeCont(){
	var dd=document.getElementById("problem_type");
if(dd.options[dd.selectedIndex].value=="1"){  // cross publication
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=campaign_issue;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=creative_issue;
		}else if(sfe.options[sfe.selectedIndex].value=="3"){
			document.getElementById("dynamicContent").innerHTML=tracking_issue;
		}
}else if(dd.options[dd.selectedIndex].value=="2"){  // customization
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=advertiser_interface;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=affiliate_interface;
		}
}else if(dd.options[dd.selectedIndex].value=="3"){  // DNE List
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=existing_list;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=new_list;
		}
}else if(dd.options[dd.selectedIndex].value=="4"){  // E-mail
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=automated_email;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=manual_email;
		}
}else if(dd.options[dd.selectedIndex].value=="5"){  // Reporting Issue
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=admin_interface;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=advertiser_interface2;
		}else if(sfe.options[sfe.selectedIndex].value=="3"){
			document.getElementById("dynamicContent").innerHTML=affiliate_interface2;
		}
}else if(dd.options[dd.selectedIndex].value=="6"){  // Setup
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=campaigns;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=creatives;
		}else if(sfe.options[sfe.selectedIndex].value=="3"){
			document.getElementById("dynamicContent").innerHTML=payment_scripts;
		}

}else if(dd.options[dd.selectedIndex].value=="7"){  // Third Party Pixel
			document.getElementById("dynamicContent").innerHTML=third_party_pixel;

}else if(dd.options[dd.selectedIndex].value=="8"){  // Tracking
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=hosted;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=imported;
		}else if(sfe.options[sfe.selectedIndex].value=="3"){
			document.getElementById("dynamicContent").innerHTML=pixel_tracking;
		}
}else if(dd.options[dd.selectedIndex].value=="9"){  // Webservices
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=admin;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=affiliate;
		}

}else if(dd.options[dd.selectedIndex].value=="10"){  // Other
			document.getElementById("dynamicContent").innerHTML=other;

}else if(dd.options[dd.selectedIndex].value=="11"){  // Connection Problem
		if(sfe.options[sfe.selectedIndex].value=="0"){
			document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;	
		}else if(sfe.options[sfe.selectedIndex].value=="1"){
			document.getElementById("dynamicContent").innerHTML=interface_down;
		}else if(sfe.options[sfe.selectedIndex].value=="2"){
			document.getElementById("dynamicContent").innerHTML=interface_performance_issue;
		}

}else if(dd.options[dd.selectedIndex].value=="12"){  // Affiliate Interface Login
			document.getElementById("dynamicContent").innerHTML=affiliate_interface_login;

}
}



function clearMenu(){
	document.getElementById("dynamicContent").innerHTML=chooseSUBproblemTxt;
	document.getElementById("dynamicContent").style.display="inline";
	sfe=document.getElementById("sub_problem_type");
	sfe.options.length=0; 
}

function enableDisableSubType(){
	if(document.getElementById("problem_type").options[document.getElementById("problem_type").selectedIndex].value=="0"){
		document.getElementById("sub_problem_type").disabled=true;
	}else{
		document.getElementById("sub_problem_type").disabled=false;
	}
}



// ##############################################################
// START dynamic input areas ####################################

// Connection Issue

var interface_down="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Wan IP Address: "+
"</td><td>"+
"<input type='text' value='' name='wan_ip_address' id='wan_ip_address' class='required' /> "+
"<a class='ipaddress' href='http://www.whatismyip.com/' target='_blank'>Get my IP Address</a></td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Ping Request: <font class='footnoteAsterisk'>  </font> "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment2' />"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Trace Route: <font class='footnoteAsterisk'>  </font> "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment3' />"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Additional<br />information: "+
"</td><td>"+
"<textarea name='connection_issue_notes' id='connection_issue_notes' class='textareaDynamic'></textarea> "+
"</td></tr></table>"+
"<br /><br />"+
"<font class='footnoteAsterisk'> </font><font class='footnoteText'>"+
"<strong> </strong>"+
""+
"</font>"+
"<br /><br />"+
"<font class='footnoteAsterisk'> </font><font class='footnoteText'>"+
"<strong> </strong>"+
""+
"</font>";

var interface_performance_issue="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Wan IP Address: "+
"</td><td>"+
"<input type='text' value='' name='wan_ip_address' id='wan_ip_address' class='required' /> "+
"<a class='ipaddress' href='http://www.whatismyip.com/' target='_blank'>Get my IP Address</a></td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Ping Request: <font class='footnoteAsterisk'>  </font> "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment2' />"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Trace Route: <font class='footnoteAsterisk'>  </font> "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment3' />"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Additional<br />information: "+
"</td><td>"+
"<textarea name='connection_issue_notes' id='connection_issue_notes' class='textareaDynamic'></textarea> "+
"</td></tr></table>"+
"<br /><br />"+
"<font class='footnoteAsterisk'> </font><font class='footnoteText'>"+
"<strong></strong>"+
""+
"</font>"+
"<br /><br />"+
"<font class='footnoteAsterisk'> </font><font class='footnoteText'>"+
"<strong></strong>"+
""+
"</font>";


// Cross Publication 

var campaign_issue="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Parent Network: "+
"</td><td>"+
"<input type='text' value='' name='parent_network' id='parent_network' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Child Network: "+
"</td><td>"+
"<input type='text' value='' name='child_network' id='child_network' class='required' /> "+
"</td></tr></table>";

var creative_issue="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Creative ID: "+
"</td><td>"+
"<input type='text' value='' name='creative_id' id='creative_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Parent Network: "+
"</td><td>"+
"<input type='text' value='' name='parent_network' id='parent_network' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Child Network: "+
"</td><td>"+
"<input type='text' value='' name='child_network' id='child_network' class='required' /> "+
"</td></tr></table>";

var tracking_issue="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Parent Network: "+
"</td><td>"+
"<input type='text' value='' name='parent_network' id='parent_network' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Child Network: "+
"</td><td>"+
"<input type='text' value='' name='child_network' id='child_network' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Source Code: "+
"</td><td>"+
"<textarea name='source_code' id='source_code' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Tracking Pixel: "+
"</td><td>"+
"<input type='text' value='' name='tracking_pixel' id='tracking_pixel' class='required' /> "+
"</td></tr></table>";

// Customization

var advertiser_interface="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Page Being Customized: "+
"</td><td>"+
"<input type='text' value='http://' name='page_being_customized' id='page_being_customized' class='urlAddr' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"HTML: "+
"</td><td>"+
"<textarea name='html' id='html' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Screen Shot: "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment1' /> "+
"</td></tr></table>";

var affiliate_interface="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Page Being Customized: "+
"</td><td>"+
"<input type='text' value='http://' name='page_being_customized' id='page_being_customized' class='urlAddr' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"HTML: "+
"</td><td>"+
"<textarea name='html' id='html' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Screen Shot: "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment1' /> "+
"</td></tr></table>";


// DNE List

var existing_list="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"List Name: "+
"</td><td>"+
"<input type='text' value='' name='list_name' id='list_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"List Number: "+
"</td><td>"+
"<input type='text' value='' name='list_number' id='list_number' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Email Address of Unsubscriber: "+
"</td><td>"+
"<input type='text' value='' name='email_address_of_unsubscriber' id='email_address_of_unsubscriber' class='required' /> "+
"</td></tr></table>";

var new_list="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"List Name: "+
"</td><td>"+
"<input type='text' value='' name='list_name' id='list_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"List Number: "+
"</td><td>"+
"<input type='text' value='' name='list_number' id='list_number' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Email Address of Unsubscriber: "+
"</td><td>"+
"<input type='text' value='' name='email_address_of_unsubscriber' id='email_address_of_unsubscriber' class='required' /> "+
"</td></tr></table>";


// Email

var automated_email="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Email Type: "+
"</td><td>"+
"<input type='text' value='' name='email_type' id='email_type' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Intended Recipient: "+
"</td><td>"+
"<input type='text' value='' name='intended_recipient' id='intended_recipient' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Time Sent: "+
"</td><td>"+
"<input type='text' value='' name='time_sent' id='time_sent' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Sent: "+
"</td><td>"+
"<input type='text' value='' name='date_sent' id='date_sent' class='required' /> "+
"</td></tr></table>";

var manual_email="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Intended Recipient: "+
"</td><td>"+
"<input type='text' value='' name='intended_recipient' id='intended_recipient' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Time Sent: "+
"</td><td>"+
"<input type='text' value='' name='time_sent' id='time_sent' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Sent: "+
"</td><td>"+
"<input type='text' value='' name='date_sent' id='date_sent' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Subject of E-mail: "+
"</td><td>"+
"<input type='text' value='' name='subject_of_email' id='subject_of_email' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Contents of Email: "+
"</td><td>"+
"<textarea name='contents_of_email' id='contents_of_email' class='textareaDynamic'></textarea> "+
"</td></tr></table>";


// Reporting Issue

var admin_interface="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID: "+
"</td><td>"+
"<input type='text' value='' name='affiliate_id' id='affiliate_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Report Name: "+
"</td><td>"+
"<input type='text' value='' name='report_name' id='report_name' class='required' /> "+
"</td></tr></table>";

var advertiser_interface2="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr></table>";

var affiliate_interface2="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID: "+
"</td><td>"+
"<input type='text' value='' name='affiliate_id' id='affiliate_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr></table>";


// Setup

var campaigns="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Creative Type: "+
"</td><td>"+
"<select class='dropdown_input' id='creative_type' name='creative_type'>"+
"<option value='contextual'>Contextual</option>"+
"<option value='coupon_code'>Coupon Code</option>"+
"<option value='custom_landing'>Custom Landing</option>"+
"<option value='email'>E-mail</option>"+
"<option value='html'>HTML</option>"+
"<option value='image'>Image</option>"+
"<option value='sms'>SMS</option>"+
"<option value='text'>Text</option>"+
"<option value='zipped'>Zipped</option>"+
"</select>"+
"</td></tr></table>";

var creatives="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Banner ID: "+
"</td><td>"+
"<input type='text' value='' name='banner_id' id='banner_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Creative Type: "+
"</td><td>"+
"<select class='dropdown_input' id='creative_type' name='creative_type'>"+
"<option value='contextual'>Contextual</option>"+
"<option value='coupon_code'>Coupon Code</option>"+
"<option value='custom_landing'>Custom Landing</option>"+
"<option value='email'>E-mail</option>"+
"<option value='html'>HTML</option>"+
"<option value='image'>Image</option>"+
"<option value='sms'>SMS</option>"+
"<option value='text'>Text</option>"+
"<option value='zipped'>Zipped</option>"+
"</select>"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Contents of Creative: "+
"</td><td>"+
"<textarea name='contents_of_creative' id='contents_of_creative' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Linking URL: "+
"</td><td>"+
"<input type='text' value='http://' name='linking_url' id='linking_url' class='urlAddr' /> "+
"</td></tr></table>";

var payment_scripts="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID(s): "+
"</td><td>"+
"<input type='text' value='' name='affiliate_ids' id='affiliate_ids' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Month Scripts Ran: "+
"</td><td>"+
"<input type='text' value='' name='monthly_scripts_ran' id='monthly_scripts_ran' class='required' /> "+
"</td></tr></table>";


// third party pixel

var third_party_pixel="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID: "+
"</td><td>"+
"<input type='text' value='' name='affiliate_id' id='affiliate_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Source Code of<br>Confirmation Page: "+
"</td><td>"+
"<textarea name='source_code_of_confirmation_page' id='source_code_of_confirmation_page' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Tracking Pixel: "+
"</td><td>"+
"<textarea name='tracking_pixel' id='tracking_pixel' class='textareaDynamic'></textarea> "+
"</td></tr></table>";


// Tracking

var hosted="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Creative Code: "+
"</td><td>"+
"<textarea name='creative_code' id='creative_code' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr></table>";

var imported="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Import Method: "+
"</td><td>"+
"<input type='text' value='' name='input_method' id='input_method' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"File Imported: "+
"</td><td>"+
"<input type='file' name='helpdesk_attachment1' /> "+
"</td></tr></table>";

var pixel_tracking="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Campaign Name: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Campaign ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_id' id='campaign_id' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Creative Code: "+
"</td><td>"+
"<textarea name='creative_code' id='creative_code' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Date Range: "+
"</td><td>"+
"<input type='text' value='' name='date_range' id='date_range' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Source Code of Confirmation Page: "+
"</td><td>"+
"<textarea name='source_code_of_confirmation_page' id='source_code_of_confirmation_page' class='textareaDynamic'></textarea> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Tracking Pixel: "+
"</td><td>"+
"<textarea name='tracking_pixel' id='tracking_pixel' class='textareaDynamic'></textarea> "+
"</td></tr></table>";


// Webservices


var admin="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"API Call: "+
"</td><td>"+
"<select id='api_call' name='api_call' class='dropdown_input'>"+
"<option value='addAffiliate'>addAffiliate</option>"+
"<option value='addLead'>addLead</option>"+
"<option value='cancelSales'>cancelSales</option>"+
"<option value='creativeBlackList'>creativeBlackList</option>"+
"<option value='expireCreative'>expireCreative</option>"+
"<option value='exportAffiliateInformation'>exportAffiliateInformation</option>"+
"<option value='getAffiliateClicksByDate'>getAffiliateClicksByDate</option>"+
"<option value='getAffiliateCommissions'>getAffiliateCommissions</option>"+
"<option value='getAffiliateInfo'>getAffiliateInfo</option>"+
"<option value='getAffiliateLeadsByDate'>getAffiliateLeadsByDate</option>"+
"<option value='getAffiliatePayoutPercentage'>getAffiliatePayoutPercentage</option>"+
"<option value='getAffiliateProductCommission'>getAffiliateProductCommission</option>"+
"<option value='getClickDetails'>getClickDetails</option>"+
"<option value='getClickStats'>getClickStats</option>"+
"<option value='getSubIDStats'>getSubIDStats</option>"+
"<option value='getTransactionDetails'>getTransactionDetails</option>"+
"<option value='get_all_stats'>get_all_stats</option>"+
"<option value='get_coupon_code_creatives'>get_coupon_code_creatives</option>"+
"<option value='get_url'>get_url</option>"+
"<option value='recordAllSales'>recordAllSales</option>"+
"<option value='recordHostedLead'>recordHostedLead</option>"+
"<option value='recordLead'>recordLead</option>"+
"<option value='recordLineItemSalesValidated'>recordLineItemSalesValidated</option>"+
"<option value='recordProductSale'>recordProductSale</option>"+
"<option value='recordSale'>recordSale</option>"+
"<option value='recordSale2'>recordSale2</option>"+
"<option value='recordSale3'>recordSale3</option>"+
"<option value='recordXMLTransaction'>recordXMLTransaction</option>"+
"<option value='record_sale_by_priority_code'>record_sale_by_priority_code</option>"+
"<option value='removeLead'>removeLead</option>"+
"<option value='revAffiliateSalesByTransID'>revAffiliateSalesByTransID</option>"+
"<option value='setAffiliateClicksByDate'>setAffiliateClicksByDate</option>"+
"<option value='setAffiliateLeadsByDate'>setAffiliateLeadsByDate</option>"+
"<option value='setAffiliatePayoutPercentage'>setAffiliatePayoutPercentage</option>"+
"<option value='setCreativeStartDate'>setCreativeStartDate</option>"+
"<option value='updateLineItemSaleStatus'>updateLineItemSaleStatus</option>"+
"<option value='updateSaleStatus'>updateSaleStatus</option>"+
"<option value='updateSaleStatusString'>updateSaleStatusString</option>"+
"<option value='updateTransactionID'>updateTransactionID</option>"+
"<option value='update_priority_code_status'>update_priority_code_status</option>"+
"<option value='validateAffiliate'>validateAffiliate</option>"+
"<option value='verifyAffiliateLogin'>verifyAffiliateLogin</option>"+
"<option value='other'>-------------------------------</option>"+
"<option value='other'>OTHER</option>"+
"</select>"+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Code: "+
"</td><td>"+
"<textarea name='code' id='code' class='textareaDynamic'></textarea> "+
"</td></tr></table>";

var affiliate="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID: "+
"</td><td>"+
"<input type='text' value='' name='campaign_name' id='campaign_name' class='required' /> "+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"API Call: "+
"</td><td>"+
"<select id='api_call' name='api_call' class='dropdown_input'>"+
"<option value='addAffiliate'>addAffiliate</option>"+
"<option value='addLead'>addLead</option>"+
"<option value='cancelSales'>cancelSales</option>"+
"<option value='creativeBlackList'>creativeBlackList</option>"+
"<option value='expireCreative'>expireCreative</option>"+
"<option value='exportAffiliateInformation'>exportAffiliateInformation</option>"+
"<option value='getAffiliateClicksByDate'>getAffiliateClicksByDate</option>"+
"<option value='getAffiliateCommissions'>getAffiliateCommissions</option>"+
"<option value='getAffiliateInfo'>getAffiliateInfo</option>"+
"<option value='getAffiliateLeadsByDate'>getAffiliateLeadsByDate</option>"+
"<option value='getAffiliatePayoutPercentage'>getAffiliatePayoutPercentage</option>"+
"<option value='getAffiliateProductCommission'>getAffiliateProductCommission</option>"+
"<option value='getClickDetails'>getClickDetails</option>"+
"<option value='getClickStats'>getClickStats</option>"+
"<option value='getSubIDStats'>getSubIDStats</option>"+
"<option value='getTransactionDetails'>getTransactionDetails</option>"+
"<option value='get_all_stats'>get_all_stats</option>"+
"<option value='get_coupon_code_creatives'>get_coupon_code_creatives</option>"+
"<option value='get_url'>get_url</option>"+
"<option value='recordAllSales'>recordAllSales</option>"+
"<option value='recordHostedLead'>recordHostedLead</option>"+
"<option value='recordLead'>recordLead</option>"+
"<option value='recordLineItemSalesValidated'>recordLineItemSalesValidated</option>"+
"<option value='recordProductSale'>recordProductSale</option>"+
"<option value='recordSale'>recordSale</option>"+
"<option value='recordSale2'>recordSale2</option>"+
"<option value='recordSale3'>recordSale3</option>"+
"<option value='recordXMLTransaction'>recordXMLTransaction</option>"+
"<option value='record_sale_by_priority_code'>record_sale_by_priority_code</option>"+
"<option value='removeLead'>removeLead</option>"+
"<option value='revAffiliateSalesByTransID'>revAffiliateSalesByTransID</option>"+
"<option value='setAffiliateClicksByDate'>setAffiliateClicksByDate</option>"+
"<option value='setAffiliateLeadsByDate'>setAffiliateLeadsByDate</option>"+
"<option value='setAffiliatePayoutPercentage'>setAffiliatePayoutPercentage</option>"+
"<option value='setCreativeStartDate'>setCreativeStartDate</option>"+
"<option value='updateLineItemSaleStatus'>updateLineItemSaleStatus</option>"+
"<option value='updateSaleStatus'>updateSaleStatus</option>"+
"<option value='updateSaleStatusString'>updateSaleStatusString</option>"+
"<option value='updateTransactionID'>updateTransactionID</option>"+
"<option value='update_priority_code_status'>update_priority_code_status</option>"+
"<option value='validateAffiliate'>validateAffiliate</option>"+
"<option value='verifyAffiliateLogin'>verifyAffiliateLogin</option>"+
"<option value='other'>-------------------------------</option>"+
"<option value='other'>OTHER</option>"+
"</select>"+
"</td></tr>"+
"<tr valign='middle'><td class='inputTitle'>"+
"Code: "+
"</td><td>"+
"<textarea name='code' id='code' class='textareaDynamic'></textarea> "+
"</td></tr></table>";


// Other

var other="	<br /><br /><table><tr valign='middle'><td class='inputTitle'>"+
"Other: "+
"</td><td>"+
"<textarea name='other' id='other'  class='textareaDynamic'></textarea> "+
"</td></tr></table>";


// Affiliate Interface Login

var affiliate_interface_login="<span class='directionsToFix'>"+
"<strong>Solution:</strong>"+
"<ol type='1'>"+
"<li>"+
"Clear out your cookies"+
"</li>"+
"<li>"+
"Clear out your cache"+
"</li>"+
"<li>"+
"Close your browser and try to log back on."+
"</li>"+
"<li>"+
"Make sure the cookie was deleted."+
"</li>"+
"<li>"+
"Go to your browser and set exception to allow cookies from Direct Track"+
"    <ol type='A'>"+
"	<li>"+
"	Firefox - Go to Tools - Options - Privacy - Exception Button.<br />Select Allow then put in the URL of Direct Track Domain: Example (Something.directtrack.com) "+
"	</li>"+
"	<li>"+
"    IE - Go to Tools - Internet Options - Security - Trusted Sites -<br />Sites Button  then put in the URL of Direct Track Domain: Example (Something.directtrack.com)"+
"	</li>"+
"	</ol>"+
"</ol>"+
"<br />"+
"This will fix you Log In problems. Otherwise, please send in the following information:"+
"<br /><br />"+
"<table><tr valign='middle'><td class='inputTitle'>"+
"Affiliate ID: "+
"</td><td>"+
"<input type='text' value='' name='affiliate_id' id='affiliate_id' class='required' /> <span class='instructions'>Example: CD1</span>"+
"</td></tr>"+
"	<tr valign='middle'><td class='inputTitle'>"+
"Password: "+
"</td><td>"+
"<input type='password' value='' name='password' id='password' class='required' /> "+
"</td></tr></table>"+
"</span>";
