
function PuncteLucruFrame()
{
	this.base = PopupFrame;
	this.oldValues;
	
	this.createPuncteLucruFrame = function()
	{
		var form = this.createFormTable();
		this.content = form;
		this.createFrame();
		
		}
	this.createFormTable = function()
						{
							var form = this.createForm("puncteLucruForm");
							var table = this.createTable();
							var tbody = document.createElement("tbody");
							var tr = document.createElement("tr");
							var td = this.createColumn("left","verde","","");
							    td.appendChild(document.createTextNode("Setati punctele de lucru (centrele de inchiriere / predare a vehiculelor)"));
								tr.appendChild(td);
								tbody.appendChild(tr);
                            // tarife
							
             // date personale
							var tr = document.createElement("tr");
							var td = this.createColumn("left","comm_t","","");
							var dp = this.createDatePersonale();
							    td.appendChild(dp);
								tr.appendChild(td);
								tbody.appendChild(tr);

                           // submit button
						   tbody.appendChild(this.createSubmitButton("trimite","Seteaza punctele de lucru",function(){checkPuncteLucruForm();}));

								table.appendChild(tbody);
								form.appendChild(table);
							return form;
							}
    this.createDatePersonale = function()
							{
								var table = this.createTable();
								    table.style.borderTop = "1px dotted CCCCCC";
								var tbody = document.createElement("tbody");
								var tr = document.createElement("tr");
								var td = this.createColumn("left","r_text","","");
								  	td.appendChild(document.createTextNode("Puncte de lucru*"));
									tr.appendChild(td);
                                var td = this.createColumn("left","r_text","","");
								var puncte = this.createTextArea("puncteLucru","comm_t","8","45");
								    if (this.oldValues.length>0) puncte.appendChild(document.createTextNode(this.oldValues));
								    td.appendChild(puncte);
								    tr.appendChild(td);
								    tbody.appendChild(tr);
							    var tr = document.createElement("tr");
								var td = this.createColumn("left","r_text","","");
								  	td.colSpan=2;
									td.appendChild(document.createTextNode("separati punctele de lucru prin virgula -> de ex : oras1, oras2"));
									tr.appendChild(td);
                                    tbody.appendChild(tr);
								table.appendChild(tbody);
								return table;
								}
	   
}
PuncteLucruFrame.prototype = new PopupFrame;


////================
function PuncteLucru()
{
	this.base = PuncteLucruFrame;
	this.createPuncteLucru = function()
							{
		                        var page = location.href;
								this.title = "Seteaza punctele de lucru";
                                
								this.createPuncteLucruFrame();
							}
	
}
PuncteLucru.prototype = new PuncteLucruFrame;

