
//======== suggestion frame
function SuggestionFrame()
{
	this.base = PopupFrame;
	
	this.createSuggestionFrame = function()
	{
		var form = this.createFormTable();
		this.content = form;
		this.createFrame();
		
		}
	this.createFormTable = function()
						{
							var form = this.createForm("suggestionForm");
							var table = this.createTable();
							var tbody = document.createElement("tbody");
							var tr = document.createElement("tr");
							var td = this.createColumn("left","verde","","");
							    td.appendChild(document.createTextNode("Trimiteti-ne sugestii pentru perfectionarea modului de administrare"));
								tr.appendChild(td);
								tbody.appendChild(tr);
                
							// preferinte
							tbody.appendChild(this.createTextAreaMesaj("preferinte","Sugestii : ","16","70"));


		                	// submit button
						   tbody.appendChild(this.createSubmitButton("trimite","Trimite Sugestie",function(){checkSuggestionForm();}));

								table.appendChild(tbody);
								form.appendChild(table);
							return form;
							}
}
SuggestionFrame.prototype = new PopupFrame;

//// = ========= ContactFrame
function ContactFrame()
{
	this.base = PopupFrame;

	this.createContactFrame = function()
	{
		var form = this.createFormTable();
		this.content = form;
		this.createFrame();
		
		}
	this.createFormTable = function()
						{
							var form = this.createForm("contactForm");
							var table = this.createTable();
							var tbody = document.createElement("tbody");
							var tr = document.createElement("tr");
							var td = this.createColumn("left","verde","","");
							    td.appendChild(document.createTextNode("Contacteaza agentia"));
								tr.appendChild(td);
								tbody.appendChild(tr);
                            
							// preferinte
							tbody.appendChild(this.createTextAreaMesaj("preferinteContact","Preferinte : ","5","40"));
                
							// date personale
							var dp = this.createLinesTable("Date Personale",
								                           new Array("numeContact","telefonContact","mailContact"),
								                           new Array("Nume*","Telefon*","E-mail*"));
						   tbody.appendChild(dp);
                           
							// submit button
						   tbody.appendChild(this.createSubmitButton("trimite","Trimite Mesaj",function(){checkContactForm();}));

								table.appendChild(tbody);
								form.appendChild(table);
							return form;
							}
 }
ContactFrame.prototype = new PopupFrame;

