<!--
//------ Real Garant Versicherung AG
//------ Scripts.js / Nov 2007
//------ Author: Granas (www.granas.ch)
//
		//------------------------------------------------------------------------------
		function fnRealGarantPageTitle()
			{
				var strTitle = "givit"
				if(document.title != "") strTitle = strTitle + " - " + document.title;
				document.title = strTitle;
			}
		//------------------------------------------------------------------------------
		function fnRealGarantSearchContact(strContainerIDsAndPostalCodesDelimited, strFormFieldID, strContainerIDPrefix)
	        {
				if (!document.getElementById(strFormFieldID)) return false;
				var objFormField = document.getElementById(strFormFieldID);
	            var aryContainerIDsAndPostalCodesCollection = strContainerIDsAndPostalCodesDelimited.split(";");
				if (aryContainerIDsAndPostalCodesCollection.length < 1) return false;
				var aryContainerIDAndPostalCodes = null;
				var aryPostalCodes = null;
				var strPostalCodeSubstring = "";
				var intContainerID = 1;
				var blnPostalCodeFound = false;
				//
				if (document.getElementById(strContainerIDPrefix + 'NotFound')) document.getElementById(strContainerIDPrefix + 'NotFound').style.display = "none";
				for (var i = 0; i < aryContainerIDsAndPostalCodesCollection.length; i++)
					{
						aryContainerIDAndPostalCodes = aryContainerIDsAndPostalCodesCollection[i].split("|")
						if (aryContainerIDAndPostalCodes.length == 2)
							{
								if (document.getElementById(strContainerIDPrefix + aryContainerIDAndPostalCodes[0])) document.getElementById(strContainerIDPrefix + aryContainerIDAndPostalCodes[0]).style.display = "none";
								aryPostalCodes = aryContainerIDAndPostalCodes[1].split(",");
								if (aryPostalCodes.length > 0)
									{
										for (var j = 0; j < aryPostalCodes.length; j++)
											{
												if (objFormField.value.length > 1) strPostalCodeSubstring = objFormField.value.substring(0, 2);
												if (strPostalCodeSubstring.toLowerCase() == aryPostalCodes[j].toLowerCase())
													{
														intContainerID = aryContainerIDAndPostalCodes[0];
														blnPostalCodeFound = true;
														break;
													}
											}
									}
							}
					}
				if (blnPostalCodeFound)
					{
						if (document.getElementById(strContainerIDPrefix + intContainerID)) document.getElementById(strContainerIDPrefix + intContainerID).style.display = "block";
					}
				else
					{
						if (document.getElementById(strContainerIDPrefix + 'NotFound')) document.getElementById(strContainerIDPrefix + 'NotFound').style.display = "block";
					}
	        }
	//------------------------------------------------------------------------------
//-->
