	//------------------------------------------------------------------------------------------------
	//--- function SelectURL
	//------------------------------------------------------------------------------------------------
	function SelectURL() {

		var myURL;
		var index;
		var returnURL;
	
		if (top.window.redirected == "0")
		{
			myURL = top.location.href;
		}
		else
		{
			myURL = top.window.caller;
		}
		
		myURL=myURL.toLowerCase();
		//alert(myURL)
		
		index = myURL.indexOf("sg.");
		if (index != -1)
		{
			//returnURL =  'mucpdt.amadeusvista.com';
			returnURL =  'ncevistadev1.amadeusvista.com';
		}
		else
		{
			index = myURL.indexOf("sgdev.");
			if (index != -1)
			{
				returnURL =  'ncevistadev1.amadeusvista.com';
			}
			else
			{
				index = myURL.indexOf("mucpdt");
				if (index != -1)
				{
					returnURL =  'qualification.amadeusvista.com';
				}
				else
				{
					index = myURL.indexOf("ncepdt");
					if (index != -1)
					{
						returnURL = 'qualification.amadeusvista.com';
					}
					else
					{
						index = myURL.indexOf("qualification.1a.");
						if (index != -1)
						{
							returnURL = 'qualification.1a.amadeusvista.com';
						}
						else
						{
							index = myURL.indexOf("productqualification");
							if (index != -1)
							{
								returnURL = 'productQualification.amadeusvista.com';
							}
							else
							{
								index = myURL.indexOf("qualification");
								if (index != -1)
								{
									returnURL = 'qualification.amadeusvista.com';
								}
								else
								{
									index = myURL.indexOf("mucfvt");
									if (index != -1)
									{
										returnURL = 'acceptance.amadeusvista.com';
									}
									else
									{
										index = myURL.indexOf("acceptance.1a.");
										if (index != -1)
										{
											returnURL = 'acceptance.1a.amadeusvista.com';
										}
										else
										{
											index = myURL.indexOf("acceptance");
											if (index != -1)
											{
												returnURL = 'acceptance.amadeusvista.com';
											}
											else
											{
												index = myURL.indexOf("1a.");
												if(index != -1)
												{
													returnURL = '1a.amadeusvista.com';
												}
												else
												{
													returnURL = 'amadeusvista.com';
												}
											}
										}
									}
								}
							}
						}
					}
				}
			}
		}
		return returnURL;
	}


