﻿// JScript File

function getJSPH(ph) {
	var t;
	switch (ph) {
		  //cariera.js
	     case "Cariera_CompletatiNume":
			t = "- You have to fill in the field \"Name \";\n"; break;
		case "Cariera_CompletatiPrenume":
			t = "- You have to fill in the field \"Lastname\";\n"; break;
		case "Cariera_CompletatiTelefon":
			t = "- You have to fill in the field \"Phone\";\n"; break;	
		case "Cariera_CompletatiTelefonCorect":
			t ="- \"Phone\" field should contain a correct phone number;\n"; break;	
		 case "Cariera_EmailValid":
			t = "- \"Email\" field should contain a correct email address;\n"; break;	
		case "Cariera_RemediatiProblemele":
			t = "Please rectify the following problems:\n"; break;			
		//contact	
		case "Contact_CompletatiNume":
			t = "- You have to fill in the field \"Name\";\n"; break;
	   case "Contact_TelefonValid":
			t ="- \"Phone\" field should contain a correct phone number;\n"; break;		
		case "Contact_CompletatiEmailSauTelefon":
			t = "- You have to fill in a correct phone number or email address;\n"; break;       		
        case "Contact_EmailValid":
			t = "- \"Email\" field should contain a correct email address;\n"; break;	
		case "Contact_AlegeDestinatar":
			t = "- You have to choose \"Addressee\;\n"; break;
	   case "Contact_Mesaj":
			t = "- You have to fill in \"Your message\";\n"; break;						
		case "Contact_FormularIncomplet":
			t = "The form is not complete:\n"; break;
		default:
			t = "Undefined message!";	
	}
	
	return t;
}

