	var xmlhttpSearch;
	var xmlDoc;
	var Parameter = "";	
	var GMapCompany = "";
	var TotalRecord = "";
	var RecPerPage = "";
	var RemainderDivision = "";
	var GoogleMarker = [];
	var ContentMarker = [];
	var aTitleTab1 = [];
	var aTitleTab2 = [];
	var aContentTab1 = [];
	var aContentTab2 = [];
	var TypeSearch = "basic";
	
	function ChangeState(id)
	{
		//Get Dropdown object of Country list
		var ddlCountry = document.getElementById(id);
		//Get Dropdow object of State list
		var ddlState = document.getElementById("ddlState");
		//Get Text object of State
		var txtState = document.getElementById("txtState");
		
		//if not united state then don't show the State list but show the text to input their state/province
		if(ddlCountry.options[ddlCountry.selectedIndex].value != "United States")
		{
			//Hide State List
			ddlState.style.display = "none";
			//Show Textbox to input state/province
			txtState.style.display = "";
		}	
		else
		{
			//Show State List
			ddlState.style.display = "";
			//Hide Textbox to input state/province
			txtState.style.display = "none";
		}
	}
	
	function Search()
	{		
		//Clear the parameter
		Parameter = "";
		
		//Hide Back and Continue Button
		var divcontent2 = document.getElementById("content2");
		divcontent2.style.display = "none";
		//Get Search Terms object
		var txtSearch = document.getElementById("txtSearch");
		//Search Terms value
		Parameter += "SearchTerms=" + txtSearch.value;
		//Get Dropdown Country list
		var ddlCountry = document.getElementById("ddlCountry");
		
		//Selected Country value
		Parameter += "&Country=" + ddlCountry.options[ddlCountry.selectedIndex].value;
		
		//if not united state then use value from text input otherwise get from dropdown state list
		if(ddlCountry.options[ddlCountry.selectedIndex].value != "United States")
		{
			//Get text input state object
			var txtState = document.getElementById("txtState");
			//Get State value
			Parameter += "&State=" + txtState.value;
		}
		else
		{
			//Get drop down state object
			var ddlState = document.getElementById("ddlState");
			//Get Selected State value
			Parameter += "&State=" + ddlState.options[ddlState.selectedIndex].value;
		}
		
		//Get Text input for Zip Code Object
		var txtZipCode = document.getElementById("txtZipCode");
		//Get Zip Code value
		Parameter += "&ZipCode=" + txtZipCode.value;		
		
		//Get Radius selected
		var ddlRadius = document.getElementById("ddlRadius");
		Parameter += "&Radius=" + ddlRadius.options[ddlRadius.selectedIndex].value;
		
		//Get All Language Object
		var msLanguage = document.getElementById("Language");			
		var LanguageValue = " ";
		
		for(var i = 0; i < msLanguage.length; i++)
		{
			if(msLanguage.options[i].selected)
			{
				//Search Any Language
				if(msLanguage.options[i].id == 0)
				{
					LanguageValue += 0 +",";
					break;
				}
				//Search specific language
				else
				{
					LanguageValue += msLanguage.options[i].id + ",";
				}
			}
		}
		//remove the last delimiter
		LanguageValue = LanguageValue.substring(0, LanguageValue.length - 1);
		//Set Parameter value for language
		Parameter += "&Language=" + LanguageValue;
		
		
		//Get All Partnerships Object			
		var msPartnerships = document.getElementById("Partnerships");
		var PartnershipValue = " ";
		
		for(var i = 0; i < msPartnerships.length; i++)
		{
			if(msPartnerships.options[i].selected)
			{
				//Search Any Partnerships
				if(msPartnerships.options[i].id == 0)
				{
					PartnershipValue += 0 + ",";
					break;
				}
				//Search Specific Partnerships
				else
				{
					PartnershipValue += msPartnerships.options[i].id + ",";
				}
			}
		}
		//remove the last delimiter
		PartnershipValue = PartnershipValue.substring(0, PartnershipValue.length - 1);
		//Set Parameter value for Partnerships
		Parameter += "&Partnerships=" + PartnershipValue;
		
		
		//Get All Service Var			
		var msServiceVar = document.getElementById("ServiceVar");
		var ServiceVarValue = " ";
		
		for(var i = 0; i < msServiceVar.length; i++)
		{
			if(msServiceVar.options[i].selected)
			{
				//Search Any Service Var
				if(msServiceVar.options[i].id == 0)
				{
					ServiceVarValue += 0 + ",";
					break;
				}
				//Specific Service Var
				else
				{
					ServiceVarValue += msServiceVar.options[i].id + ",";
				}
			}
		}
		//Remove the last delimiter
		ServiceVarValue = ServiceVarValue.substring(0, ServiceVarValue.length - 1);
		//Set Parameter value for Service Var
		Parameter += "&ServiceVar=" + ServiceVarValue;
		
		//Request Search page first for Rendered control to rendered result search	
		RequestPage('home.php');
		//Request Search		
		BeginRequestSearch();
	}
	
	function Search2()
	{
		//~ if(TypeSearch == "basic")
		//~ {
			//~ //Check Keyword search
			//~ var txtKeyword = document.getElementById("txtKeyword");
			//~ //No Keyword to search
			//~ if(txtKeyword.value == "")
			//~ {
				//~ alert("Please fill in a keyword to search.");
				//~ return;
			//~ }
		//~ }
		//~ else if(TypeSearch == "advanced")
		//~ {
			
			//~ var txtSearch = document.getElementById("txtSearch");
			//~ //No Keyword to search
			//~ if(txtSearch.value == "")
			//~ {
				//~ alert("Please fill keyword to search.");
				//~ return;
			//~ }
		//~ }
		
		//Clear Content List Vendor
		var divResultSearch = document.getElementById("ResultSearch");
		divResultSearch.innerHTML = "";
		
		//Hide Back and Continue Button
		var divcontent2 = document.getElementById("content2");
		divcontent2.style.display = "none";
		
		//Render Div for Google Map
		var divMap = document.getElementById("map");
		divMap.innerHTML = "<div id=\"GoogleMap\" style=\"width:508px; height:292px;\"></div>";
		
		//Show ModalBackground
		revealModal('modalPage', '');
		
		//Search
		BasicSearch();
		
		//~ if(TypeSearch == "basic")
			//~ BasicSearch();
		//~ else if(TypeSearch == "advanced")
			//~ AdvancedSearch();
	}
	
	function BasicSearch()
	{
		//Set search type to basic
		Parameter = "SearchType=basic";
		//Get Search Terms object
		var txtKeyword = document.getElementById("txtKeyword");
		//Search Terms value			
		Parameter += "&Keyword=" + txtKeyword.value;
		
		//Get Radius selected
		var ddlRadius1 = document.getElementById("ddlRadius1");
		Parameter += "&Radius=" + ddlRadius1.options[ddlRadius1.selectedIndex].value;
		
		var txtLocation = document.getElementById("txtLocation");
		//Search Terms value			
		Parameter += "&Location=" + txtLocation.value;
		
		//~ alert(Parameter);
		//Request Search
		BeginRequestSearch();
	}
	
	function AdvancedSearch()
	{
		//Set search type to advanced
		Parameter = "SearchType=advanced";		
		
		//Get Selected Service Var
		var ServiceVarM = document.getElementById("ServiceVarM");
		var ServiceVarValue = " ";
		
		for(var i = 0; i < ServiceVarM.length; i++)
		{
			if(ServiceVarM.options[i].selected)
			{
				//Search Any Service Var
				if(ServiceVarM.options[i].id == 0)
				{
					ServiceVarValue += 0 + ",";
					break;
				}
				//Specific Service Var
				else
				{
					ServiceVarValue += ServiceVarM.options[i].id + ",";
				}
			}
		}
		//Remove the last delimiter
		ServiceVarValue = ServiceVarValue.substring(0, ServiceVarValue.length - 1);
		
		//Get Selected Language
		var ddlLanguage = document.getElementById("Language");
		var LanguageId = ddlLanguage.options[ddlLanguage.selectedIndex].id;
		
		//Get Selected Industry
		var ddlIndustry = document.getElementById("Industry");
		var IndustryId = ddlIndustry.options[ddlIndustry.selectedIndex].id;
		
		//Set Parameter value for Service Var
		Parameter += "&ServiceVar=" + ServiceVarValue + "&LanguageId=" + LanguageId + "&IndustryId=" + IndustryId;
				
		//Get Search Terms object
		var txtSearch = document.getElementById("txtSearch");
		//Search Terms value
		Parameter += "&SearchTerms=" + txtSearch.value;
		
		//Get Dropdown Country list
		var ddlCountry = document.getElementById("ddlCountry");		
		//Selected Country value
		Parameter += "&Country=" + ddlCountry.options[ddlCountry.selectedIndex].value;
		
		//if not united state then use value from text input otherwise get from dropdown state list
		if(ddlCountry.options[ddlCountry.selectedIndex].value != "United States")
		{
			//Get text input state object
			var txtState = document.getElementById("txtState");
			//Get State value
			Parameter += "&State=" + txtState.value;
		}
		else
		{
			//Get drop down state object
			var ddlState = document.getElementById("ddlState");
			//Get Selected State value
			Parameter += "&State=" + ddlState.options[ddlState.selectedIndex].value;
		}
		
		//Get Text input for Zip Code Object
		var txtZipCode = document.getElementById("txtZipCode");
		//Get Zip Code value
		Parameter += "&ZipCode=" + txtZipCode.value;		
		
		//Get Radius selected
		var ddlRadius = document.getElementById("ddlRadius");
		Parameter += "&Radius=" + ddlRadius.options[ddlRadius.selectedIndex].value;		
		
		//Request Search		
		BeginRequestSearch();
	}
	
	function SearchByCountry(country)
	{
		//Clear Content List Vendor
		var divResultSearch = document.getElementById("ResultSearch");
		divResultSearch.innerHTML = "";
		
		//Hide Back and Continue Button
		var divcontent2 = document.getElementById("content2");
		divcontent2.style.display = "none";
		
		//Render Div for Google Map
		var divMap = document.getElementById("map");
		divMap.innerHTML = "<div id=\"GoogleMap\" style=\"width:508px; height:292px;\"></div>";
		
		//Show ModalBackground
		revealModal('modalPage', '');
		
		//Search Terms
		Parameter = "SearchType=basic&Keyword=&Radius=&Location=&Country=" + country;		
		
		//Request Search
		BeginRequestSearch();
	}
	
	function GetLatLng()
	{
		//Get Location Object
		var txtLocation = document.getElementById("txtLocation");
		//Check Location Value
		if(txtLocation.value != null && txtLocation.value != "")
		{	
			//Use Google Geocoder to get Latitude and Longitude for that Zip Code
			var CompanyGeocoder = new GClientGeocoder();
			CompanyGeocoder.getLatLng(txtLocation.value, function(point)
											{
												if(!point)
												{
													//~ Parameter += "&Latitude=0&Longitude=0";													
													document.getElementById("Latitude").value = 0 ;
													document.getElementById("Longitude").value = 0 ;
												}
												else
												{
													//~ Parameter += "&Latitude=" + point.lat() + "&Longitude=" + point.lng() + "";
													document.getElementById("Latitude").value = point.lat() ;
													document.getElementById("Longitude").value = point.lng() ;														
												}
											}
								);		
		}
		else
		{
			//~ //Parameter += "&Latitude=0&Longitude=0";		
			document.getElementById("Latitude").value = 0;
			document.getElementById("Longitude").value = 0 ;			
		}		
	}
	
	function BeginRequestSearch()
	{	
		//Get object span Rendered or not
		var sHome = document.getElementById("sHome");
		//Span not yet rendered
		if(sHome == null)
		{			
			setTimeout("BeginRequestSearch();", 300);
		}
		//Span Rendered
		else
		{
			//Get Latitude and Longitude from ZipCode Search terms
			//~ Parameter += "&Latitude=34.168536&Longitude=-118.369804";
			GetLatLng();
			
			//Request Search
			RequestPageSearch('resultsearch.php', Parameter);
		}
	}

	function RequestPageSearch(url, parameter)
	{
		//Hide Content Home
		var sContentHome = document.getElementById("sContentHome");
		sContentHome.style.display = "none";
		
		//Get Location Object
		var txtLocation = document.getElementById("txtLocation");
		
		var Latitude = document.getElementById("Latitude");
		var Longitude = document.getElementById("Longitude");
		
		//~ alert(Latitude.value);
		
		//Check value of Latitude and Longitude in Input Hidden, there is a result from Google or no
		if(txtLocation.value != null && txtLocation.value != "")
		{
			if(Longitude.value == "")
			{
				setTimeout("RequestPageSearch('" + url + "', '" + parameter + "')", 300);								
				return;
			}
		}
		
		parameter += "&Latitude=" + Latitude.value + "&Longitude=" + Longitude.value + "";
		//alert(Latitude.value + " = " + Longitude.value);
		//~ parameter += "&Latitude=34.168536&Longitude=-118.369804";		
		
		//Clear Latitude and Longitude value
		Latitude.value = "";
		Longitude.value = "";
		
		xmlhttpSearch=null;
		// code for Mozilla, etc.
		if (window.XMLHttpRequest)
		{
			xmlhttpSearch=new XMLHttpRequest();
		}
		// code for IE
		else if (window.ActiveXObject)
		{
			xmlhttpSearch=new ActiveXObject("Microsoft.XMLHTTP");
		}
		if (xmlhttpSearch!=null)
		{
			  xmlhttpSearch.open("POST",url,true);
			  
			  xmlhttpSearch.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			  xmlhttpSearch.setRequestHeader("Content-length", parameter.length);
			  xmlhttpSearch.setRequestHeader("Connection", "close");
			  
			  xmlhttpSearch.onreadystatechange=StateChangeSearch;
			  xmlhttpSearch.send(parameter);
		}
		else
		{
			alert("Your browser does not support XMLHTTP.");
		}
	}
	
	function StateChangeSearch()
	{				
		//readyState, 0 = uninitialized
		//		1 = loading
		//		2 = loaded
		//		3 = interactive
		//		4 = complete
		
		//Completed Request
		if (xmlhttpSearch.readyState==4)
		  {
			// Status value just 404 and 200, 404 = "Not Found" & 200 = "Ok"
			//~ alert(xmlhttpSearch.status);
			if (xmlhttpSearch.status==200)
			{				
				//Get Response from next page
				var ResponseSearchXML = xmlhttpSearch.responseText;	// response				
				//~ alert(ResponseSearchXML);
				importXML2(ResponseSearchXML);
			}
			else
			{
				//Hide Modal Background
				hideModal('modalPage')
				alert("Problem retrieving data");
			}
		  }
	}
	
	
	//First Type of Import String XML to XMl Document
	function importXML(xmlString)
	{	
		//Mozilla etc
		if (document.implementation && document.implementation.createDocument)
		{				
			var parser = new DOMParser();
			xmlDoc = parser.parseFromString(xmlString,"text/xml");		
		
			setTimeout("RenderXMLValue();", 300);
		}
		//IE
		else if (window.ActiveXObject)
		{
			xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
			xmlDoc.async = false;
			xmlDoc.onreadystatechange = function () 
								{ 
									if (xmlDoc.readyState == 4)
										RenderXMLValue();
								}
			xmlDoc.loadXML(xmlString);
		}
		else
		{
			alert('Your browser can\'t handle this script');
			return;
		}
	}
	
	//Second Type of Import String XML to XMl Document
	function importXML2(xmlString)
	{
		xmlDoc = null;
		try //Internet Explorer
		{
			xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
			xmlDoc.async="false";
			xmlDoc.loadXML(xmlString);
		}  
		catch(e)
		{
			try // Firefox, Mozilla, Opera, etc.
			{
				parser=new DOMParser();
				xmlDoc=parser.parseFromString(xmlString,"text/xml");
			}
			catch(e)
			{
				alert(e.message);
				return;
			}
		}
		  
		RenderXMLValue();
	}
	
	function RenderXMLValue()
	{	
		//Get span for render Result
		var sResultSearch = document.getElementById("ResultSearch");
		//Render Result Search
		sResultSearch.innerHTML = "";
		
		//Get result by tag name
		var RowResult = xmlDoc.getElementsByTagName("Row");
		
		//Get Record Per Page
		var RecPerPageResult = xmlDoc.getElementsByTagName("RecPerPage");		
		
		//Get Filter Object
		var FilterResultBy = document.getElementById("FilterResultBy");
		
		//~ //Get Pagination Object
		var Pagination = document.getElementById("pag");
		
		//Get Dropdown Language Object
		var ddlLanguage = document.getElementById("Language");
		
		//Get Dropdown Industry Object
		var ddlIndustry = document.getElementById("Industry");
		
		var Result = "";		
		
		//Pagination Not yet rendered
		if(Pagination == null)
		{			
			setTimeout("RenderXMLValue();", 300);
		}
		//Pagination Rendered
		else
		{		   
			//~ //New script to get div inside iframe
			//~ var ifGMap = document.getElementById("ifGMap");
			//~ var dGoogleMap = ifGMap.contentWindow.document.getElementById("GoogleMap");
			
			//Old Script for get Div Google Map
			var dGoogleMap = document.getElementById("GoogleMap");
		
			if(RowResult.length > 0)
			{	
				//Show Google Map
				dGoogleMap.style.display = "";
			
				TotalRecord = RowResult.length;
				RecPerPage = RecPerPageResult[0].childNodes[0].nodeValue;
				TotalPage = Math.ceil(TotalRecord / RecPerPage);
				RemainderDivision = TotalRecord % RecPerPage;
				
				//Get object for Render Page Selected
				var pPage = document.getElementById("pPage");				
				//Create Dropdownlist of page
				var ddlPage = "Page: <select id=\"ResultPagination\" onchange=\"SelectedPagination(this.id)\">";				
				for(var tPage = 0; tPage < TotalPage; tPage++)
				{
					var PageNo =  parseInt(tPage) + 1;
					ddlPage += "<option value=\"" + PageNo + "\">" + PageNo + "</option>";
				}				
				ddlPage += "</select>";
				
				pPage.innerHTML = ddlPage;				
				Result = PaginationResult("1");
				
				//~ //Show FilterResultBy
				//~ FilterResultBy.style.display = "";
		
				//Show Pagination
				Pagination.style.display = "";
			}
			else
			{
				//Hide Google Map
				dGoogleMap.style.display = "none";
				//Confirmation
				Result = "Not result found";
				//~ //Hide FilterResultBy
				//~ FilterResultBy.style.display = "none";
				//Hide Pagination
				Pagination.style.display = "none";
				
				//~ //Set Selected Language to any
				//~ ddlLanguage.selectedIndex = 0;
				//~ //Set Selected Industry to any
				//~ ddlIndustry.selectedIndex = 0;
			}
			//Render Result Search
			sResultSearch.innerHTML = Result;
			//~ Latitude = "0";
			//~ Longitude = "0";
			//Hide Modal Background
			hideModal('modalPage');
		}
	}
	
	function SelectedPagination(id)
	{
		//Get Object element selected page
		var ResultPagination = document.getElementById(id);
		
		//Get span for render Result
		var sResultSearch = document.getElementById("ResultSearch");
		
		//Render Result Search
		sResultSearch.innerHTML = PaginationResult(ResultPagination.options[ResultPagination.selectedIndex].value);
	}
	
	function PaginationResult(Page)
	{	
		//Start Row
		var StartRecord = (Page * RecPerPage) - RecPerPage;
		//End Row
		var EndRecord = Page * RecPerPage;
		var Result = "";
		
		//if selected page is the last page and remainder of division is not 0 then the end record is Remainder of division
		if(Page == TotalPage && RemainderDivision != 0)
			EndRecord = StartRecord + RemainderDivision;
		
		//Page Result
		var pPageResult = document.getElementById("pPageResult");
		pPageResult.innerHTML = "Result " + (StartRecord + 1) + " - " + EndRecord + " of " + TotalRecord;		
	
		//Get result by tag name
		var RowResult = xmlDoc.getElementsByTagName("Row");
	
		//Get ZipCode object
		var txtZipCode = document.getElementById("txtZipCode");
		//Get Div Element for Rendered Google Map
		var dGoogleMap = document.getElementById("GoogleMap");
		//Contruct GMap
		GMapCompany = new GMap2(dGoogleMap);
		//~ //Add Direction Control To Google Map
		GMapCompany.addControl(new GLargeMapControl());
		
		//Add Tabs Control To Select Map, Satellite or Hybrid
		GMapCompany.addControl(new GMapTypeControl());
		
		//Start with an empty GLatLngBounds object
		var bounds = new GLatLngBounds();
		
		//~ //Set Center Point of GMap, if search condition without zipcode then default Latitude and Longitude the first search result,  otherwise from Latitude and Longitude of that ZipCode
		//~ if(txtZipCode.value == null || txtZipCode.value == "")
			//~ GMapCompany.setCenter(new GLatLng(RowResult[StartRecord].childNodes[22].childNodes[0].nodeValue,  RowResult[StartRecord].childNodes[23].childNodes[0].nodeValue), 3); //Latitude, Longitude
		//~ else
			//~ GMapCompany.setCenter(new GLatLng(document.getElementById("Latitude").value, document.getElementById("Longitude").value), 3);
			
		GMapCompany.setCenter(new GLatLng(0,0),0);		
		
		for(var i = StartRecord; i < EndRecord; i++)
		{
		
			var CompanyPathLogo = "";
			var CompanyId = "";
			var CompanyName =  "";
			var FirstName = "";
			var LastName = "";
			var ContactPhone = "";
			var ContactEmail = "";
			var CompanyWebsite = "";
			var CompanyDescription = "";
			var Address1 =  "";
			var City = ""; 
			var State = "";
			var ZipCode = "";
			var Country = "";
			var Latitude = "";
			var Longitude = "";
			var IndustryId = "";
			
			//Check Company Path Logo
			if(RowResult[i].childNodes[16].childNodes[0] != null)
				CompanyPathLogo = RowResult[i].childNodes[16].childNodes[0].nodeValue;
			//Check Company Id
			if(RowResult[i].childNodes[0].childNodes[0] != null)
				CompanyId = RowResult[i].childNodes[0].childNodes[0].nodeValue;
			//Check Company Name
			if(RowResult[i].childNodes[3].childNodes[0] != null)
				CompanyName = RowResult[i].childNodes[3].childNodes[0].nodeValue;			
			//Check First Name
			if(RowResult[i].childNodes[4].childNodes[0] != null)
				FirstName = RowResult[i].childNodes[4].childNodes[0].nodeValue;
			//Check Last Name
			if(RowResult[i].childNodes[5].childNodes[0])
				LastName = RowResult[i].childNodes[5].childNodes[0].nodeValue;
			//Check ContactPhone
			if(RowResult[i].childNodes[7].childNodes[0] != null)
				ContactPhone = RowResult[i].childNodes[7].childNodes[0].nodeValue;
			//Check Contact Email
			if(RowResult[i].childNodes[6].childNodes[0] != null)
				ContactEmail = RowResult[i].childNodes[6].childNodes[0].nodeValue;			
			//Check Company Website
			if(RowResult[i].childNodes[8].childNodes[0] != null)
				CompanyWebsite = RowResult[i].childNodes[8].childNodes[0].nodeValue;			
			//Check Company Description
			if(RowResult[i].childNodes[20].childNodes[0] != null)
				CompanyDescription = RowResult[i].childNodes[20].childNodes[0].nodeValue;
			//Check Address 1
			if(RowResult[i].childNodes[9].childNodes[0] != null)
				Address1 = RowResult[i].childNodes[9].childNodes[0].nodeValue;
			//Check City
			if(RowResult[i].childNodes[11].childNodes[0] != null)
				City = RowResult[i].childNodes[11].childNodes[0].nodeValue;		
			//Check State
			if(RowResult[i].childNodes[13].childNodes[0] != null)
				State = RowResult[i].childNodes[13].childNodes[0].nodeValue;
			//Check ZipCode
			if(RowResult[i].childNodes[12].childNodes[0] != null)
				ZipCode = RowResult[i].childNodes[12].childNodes[0].nodeValue;			
			//Check Country
			if(RowResult[i].childNodes[14].childNodes[0] != null)
				Country = RowResult[i].childNodes[14].childNodes[0].nodeValue;			
			//Check Latitude
			if(RowResult[i].childNodes[22].childNodes[0] != null)
				Latitude = RowResult[i].childNodes[22].childNodes[0].nodeValue;	
			//Check Longitude
			if(RowResult[i].childNodes[23].childNodes[0] != null)
				Longitude = RowResult[i].childNodes[23].childNodes[0].nodeValue;		
			//Check IndustryId
			if(RowResult[i].childNodes[24].childNodes[0] != null)
				IndustryId = RowResult[i].childNodes[24].childNodes[0].nodeValue;
				
			//alert("Latitude : " + Latitude + "  === Longitude : " + Longitude);
			
			if(Latitude != 0)
				bounds.extend(new GLatLng(Latitude, Longitude));
			
			Result += RenderResult(i, CompanyPathLogo, CompanyId, CompanyName, FirstName, LastName, ContactPhone, ContactEmail, CompanyWebsite, CompanyDescription, Address1, City, State, ZipCode, Country, Latitude, Longitude, IndustryId);		
		}
		
		//determine the zoom level from the bounds
		GMapCompany.setZoom(GMapCompany.getBoundsZoomLevel(bounds));
		//determine the centre from the bounds
		GMapCompany.setCenter(bounds.getCenter());
		
		//~ alert("Bounds = " + bounds + " ----  bounds center : " + bounds.getCenter());
		
		return Result;
	}
	
	function RenderResult(Index, CompanyPathLogo, CompanyId, CompanyName, FirstName, LastName, ContactPhone, ContactEmail, CompanyWebsite, CompanyDescription, Address1, City, State, ZipCode, Country, Latitude, Longitude, IndustryId)
	{	
		var TempContent = "";
		//Get Latitude and Longitude
		var point = new GLatLng(Latitude, Longitude);  // Latitude and Longitude
		var ToHere = "";
		var FromHere = "";
		
		
		var TitleTab1 = "Company";
		var TitleTab2 = "Directions";
		
		var CWebsite = DecodeTag(CompanyWebsite);
		
		if(CWebsite .length > 25)	
			CWebsite = CWebsite.substring(0, 26) + "...";
		
		var ContentTab1 ="<div id=\"results_wrapGMap\">" +
						"<h3><a href=\"javascript:OpenViewProfile(" + CompanyId + ")\">" + DecodeTag(CompanyName) + "</a></h3>" + //Company Name
						Address1 + "<br/>" + City + " " + State + " " + ZipCode + "<br/>" + Country + "<br/>" +
						"<a href=\"javascript:OpenCompanyWebsite('" + DecodeTag(CompanyWebsite) + "')\">" + CWebsite + "</a><br/><br/>" +
					    "</div>";
					     
		var ContentTab2 =	 "<div id=\"results_wrapGMap\">" + 
							"<div>Directions: <a href=\"javascript:ToHere()\">To Here</a> - <a href=\"javascript:FromHere()\">From Here</a><br/>" +
								//To Here
								"<div id=\"ToHere\">" +
									"<form action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\">" +	
										"Start Address: <input type=\"text\" size=40 maxlength=40 name=\"saddr\" id=\"saddr\" value=\"\" /><br>" +
										"<input value=\"Get Directions\" type=\"submit\">" +
										"<input type=\"hidden\" name=\"daddr\" value=\"" + Address1 + " " + ZipCode + "\"/>" +
									"</form>" +
								"</div>" +
								//From Here
								"<div id=\"FromHere\" style=\"display:none;\">" +
									"<form action=\"http://maps.google.com/maps\" method=\"get\" target=\"_blank\">" +
										"End Address:  <input type=\"text\" size=40 maxlength=40 name=\"daddr\" id=\"daddr\" value=\"\" /><br>" +
										"<input value=\"Get Directions\" type=\"submit\">" +
										"<input type=\"hidden\" name=\"saddr\" value=\"" + Address1 + " " + ZipCode + "\"/>" +
									"</form>" +
								"</div>" +
							"</div>" +
						"</div>";
						
		var LinkBubleInfo = "<h2>" + DecodeTag(CompanyName )+ "</h2>"; //Company Name
		
		if(Latitude != 0)
		{
			//Create Tabbed Marker
			GMapCompany.addOverlay(CreateTabbedMarker(Index, point, TitleTab1, TitleTab2, ContentTab1, ContentTab2));
			//LinkBubleInfo = "<h1><a href=\"javascript:FocusMarker2('" + Index + "')\">" + DecodeTag(CompanyName) + "</a></h1>"; //Company Name
			LinkBubleInfo = "<a href=\"javascript:FocusMarker2('" + Index + "')\">" + DecodeTag(CompanyName) + "</a>"; //Company Name
		}
		
		var test = "<p>this is a paragraph</p>";
		var ContactName = DecodeTag(FirstName) + " " + DecodeTag(LastName);
		
		//~ TempContent = "<div>" +						
						//~ "<div style=\"float:left; width:100%\">" +
							//~ "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" +
								//~ "<tr>" +
									//~ "<td width=\"176\" height=\"8\">" + "<img src=\"Images/imgBox_top.gif\" />" + "</td>" +
									//~ "<td class=\"contentContent\" width=\"435\" rowspan=\"3\">" +
										//~ "<div class=\"contentBlock\">" +
											//~ "<b class=\"headContent\">" + LinkBubleInfo + "</b><br/>" + //CompanyName
											//~ DecodeTag(CompanyDescription) + 
										//~ "</div>" +
									//~ "</td>" +
									//~ "<td class=\"contentContact\" width=\"150\" rowspan=\"3\"><b class=\"headContact\">Contact Information</b><br/>" +
										//~ ContactName + "<br/>" +
										//~ DecodeTag(ContactPhone) + "<br/>" +
										//~ "<a href=\"javascript:EmailPopup('" + CompanyId + "', '" + DecodeTag(ContactEmail) + "', '" + DecodeTag(CompanyName) + "', '" + ContactName + "')\">Send Email</a> <br/> " + 	//Contact Email
										//~ //"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\">" + CWebsite + "</a><br/>" + //Company Website
										//~ "<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\" title=\"" + CompanyWebsite + "\">Website</a><br/>" + //Company Website										
										//~ "<div id=\"" + CompanyId + "\" class=\"btnViewProfile\" click=\"OpenViewProfile(this.id)\">" + //Give button view profile with CompanyId
											//~ "<a href=\"javascript:OpenViewProfile(" + CompanyId + ")\"></a>" +
										//~ "</div>" +
									//~ "</td>" +
								//~ "</tr>" +
								//~ "<tr>" +
									//~ "<td align=\"center\" valign=\"middle\" class=\"mid_img\" >" + 
										//~ "<div class=\"contentImage\">" +							
											//~ "<img id=\"imgPathLogo" + Index + "\" src=\"" + DecodeTag(CompanyPathLogo) + "\" />" +  //Path Logo Company
										//~ "</div>" +
									//~ "</td>" +
								//~ "</tr>" +
								//~ "<tr>" +
									//~ "<td width=\"176\" height=\"8\">"  + "<img src=\"Images/imgBox_bot.gif\" />" + "</td>" +
								//~ "</tr>" +
							//~ "</table>" +
						//~ "</div>" +
					//~ "</div>";	
					
			//~ TempContent = "<div>" +						
						//~ "<div style=\"float:left; width:100%\">" +
							//~ "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" +
								//~ "<tr>" +
									//~ "<td width=\"176\" height=\"8\">" +										
										//~ "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">"  +
											//~ "<tr>" +
												//~ "<td width=\"176\" height=\"8\">" + 
													//~ "<img src=\"Images/imgBox_top.gif\" />" + 
												//~ "</td>" +
											//~ "</tr>" +
											//~ "<tr>" +
												//~ "<td align=\"center\" valign=\"middle\" class=\"mid_img\" >" + 
													//~ "<div class=\"contentImage\">" +							
														//~ "<img id=\"imgPathLogo" + Index + "\" src=\"" + DecodeTag(CompanyPathLogo) + "\" />" +  //Path Logo Company
													//~ "</div>" +
												//~ "</td>" +
											//~ "</tr>" +
											//~ "<tr>" +
												//~ "<td width=\"176\" height=\"8\">"  + "<img src=\"Images/imgBox_bot.gif\" />" + "</td>" +
											//~ "</tr>" +
										//~ "</table>" +
									//~ "</td>" +
									//~ "<td class=\"contentContent\" width=\"435\" rowspan=\"3\">" +
										//~ "<div class=\"contentBlock\">" +
											//~ "<b class=\"headContent\">" + LinkBubleInfo + "</b><br/>" + //CompanyName
											//~ DecodeTag(CompanyDescription) + 
										//~ "</div>" +
									//~ "</td>" +
									//~ "<td class=\"contentContact\" width=\"150\" rowspan=\"3\"><b class=\"headContact\">Contact Information</b><br/>" +
										//~ ContactName + "<br/>" +
										//~ DecodeTag(ContactPhone) + "<br/>" +
										//~ "<a href=\"javascript:EmailPopup('" + CompanyId + "', '" + DecodeTag(ContactEmail) + "', '" + DecodeTag(CompanyName) + "', '" + ContactName + "')\">Send Email</a> <br/> " + 	//Contact Email
										//~ //"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\">" + CWebsite + "</a><br/>" + //Company Website
										//~ "<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\" title=\"" + CompanyWebsite + "\">Website</a><br/>" + //Company Website										
										//~ "<div id=\"" + CompanyId + "\" class=\"btnViewProfile\" click=\"OpenViewProfile(this.id)\">" + //Give button view profile with CompanyId
											//~ "<a href=\"javascript:OpenViewProfile(" + CompanyId + ")\"></a>" +
										//~ "</div>" +
									//~ "</td>" +
								//~ "</tr>" +
							//~ "</table>" +
						//~ "</div>" +
					//~ "</div>";
					
			//~ TempContent = "<div>" +						
							//~ "<div style=\"float:left; width:100%\">" +
								//~ "<table border=\"1\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" +
									//~ "<tr>" +
										//~ "<td width=\"176\" height=\"8\" align=\"left\" valign=\"bottom\">" + "<img src=\"Images/imgBox_top.gif\" />" + "</td>" +
										//~ "<td colspan=\"2\" width=\"585\" class=\"topLine\">&nbsp;</td>" +
									//~ "</tr>" +
									//~ "<tr>" +
										//~ "<td align=\"center\" valign=\"middle\" class=\"mid_img\">" + 
											//~ "<div class=\"contentImage\">" +							
												//~ "<img id=\"imgPathLogo" + Index + "\" src=\"" + DecodeTag(CompanyPathLogo) + "\" />" +  //Path Logo Company
											//~ "</div>" +
										//~ "</td>" +
										//~ "<td class=\"contentContent\" width=\"435\">" +
											//~ "<div class=\"contentBlock\">" +
												//~ "<b class=\"headContent\">" + LinkBubleInfo + "</b><br/>" + //CompanyName
												//~ DecodeTag(CompanyDescription) + 
											//~ "</div>" +
										//~ "</td>" +
										//~ "<td class=\"contentContact\" width=\"150\"><b class=\"headContact\">Contact Information</b><br/>" +
											//~ ContactName + "<br/>" +
											//~ DecodeTag(ContactPhone) + "<br/>" +
											//~ "<a href=\"javascript:EmailPopup('" + CompanyId + "', '" + DecodeTag(ContactEmail) + "', '" + DecodeTag(CompanyName) + "', '" + ContactName + "')\">Send Email</a> <br/> " + 	//Contact Email
											//~ //"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\">" + CWebsite + "</a><br/>" + //Company Website
											//"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\" title=\"" + CompanyWebsite + "\">Website</a><br/>" + //Company Website										
											//~ "<div id=\"" + CompanyId + "\" class=\"btnViewProfile\" click=\"OpenViewProfile(this.id)\">" + //Give button view profile with CompanyId
												//~ "<a href=\"javascript:OpenViewProfile(" + CompanyId + ")\"></a>" +
											//~ "</div>" +										
										//~ "</td>" +
									//~ "</tr>" +
									//~ "<tr>" +
										//~ "<td width=\"176\" height=\"8\" align=\"left\" valign=\"top\">"  + "<img src=\"Images/imgBox_bot.gif\" />" + "</td>" +
										//~ "<td colspan=\"2\" width=\"585\" class=\"bottomLine\">&nbsp;</td>" +
									//~ "</tr>" +
								//~ "</table>" +
							//~ "</div>" +
						//~ "</div>";	
						
				TempContent = "<div>" +						
								"<div style=\"float:left; width:100%\">" +
									"<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" +
										"<tr>" +
											"<td width=\"176\" height=\"8\" align=\"left\" valign=\"bottom\"></td>" +
											"<td colspan=\"2\" width=\"585\" class=\"topLine\">&nbsp;</td>" +
										"</tr>" +
										"<tr>" +
											"<td valign=\"top\">" + 
												//~ "<div class=\"imgLogo\">" +
													//~ "<div class=\"top_img\"><img src=\"Images/imgBox_top.gif\" /></div>" +
													//~ "<div class=\"mid_img\">" +
														//~ "<img id=\"imgPathLogo" + Index + "\" src=\"" + DecodeTag(CompanyPathLogo) + "\" />" +  //Path Logo Company
													//~ "</div>" +
													//~ "<div class=\"bot_img\"><img src=\"Images/imgBox_bot.gif\" /></div>" +
												//~ "</div>" +
												"<table cellpadding=\"0\" cellspacing=\"0\" >" +
													"<tr>" +
														"<td class=\"top_img\"><img src=\"Images/imgBox_top.gif\" /></td>"+
													"</tr>" +
													"<tr>" +
														"<td class=\"mid_img\">" +
															"<img id=\"imgPathLogo" + Index + "\" src=\"" + DecodeTag(CompanyPathLogo) + "\" />" +  //Path Logo Company
														"</td>"+
													"</tr>" +
													"<tr>" +
														"<td class=\"bot_img\"><img src=\"Images/imgBox_bot.gif\" /></td>"+
													"</tr>" +
												"</table>" +
											"</td>" +
											"<td class=\"contentContent\" width=\"435\">" +
												"<div class=\"contentBlock\">" +
													"<b class=\"headContent\">" + LinkBubleInfo + "</b><br/>" + //CompanyName
													DecodeTag(CompanyDescription) + 
												"</div>" +
											"</td>" +
											"<td class=\"contentContact\" width=\"150\"><b class=\"headContact\">Contact Information</b><br/>" +
												ContactName + "<br/>" +
												DecodeTag(ContactPhone) + "<br/>" +
												"<a href=\"javascript:EmailPopup('" + CompanyId + "', '" + DecodeTag(ContactEmail) + "', '" + DecodeTag(CompanyName) + "', '" + ContactName + "')\">Send Email</a> <br/> " + 	//Contact Email
												//"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\">" + CWebsite + "</a><br/>" + //Company Website
												//~ //"<a href=\"javascript:OpenCompanyWebsite('"+ DecodeTag(CompanyWebsite)  +"')\" title=\"" + CompanyWebsite + "\">Website</a><br/>" + //Company Website										
												"<div id=\"" + CompanyId + "\" class=\"btnViewProfile\" click=\"OpenViewProfile(this.id)\">" + //Give button view profile with CompanyId
													"<a href=\"javascript:OpenViewProfile(" + CompanyId + ")\"></a>" +
												"</div>" +
											"</td>" +
										"</tr>" +
										"<tr>" +
											"<td width=\"176\" height=\"8\" align=\"left\" valign=\"top\"></td>" +
											"<td colspan=\"2\" width=\"585\" class=\"bottomLine\">&nbsp;</td>" +
										"</tr>" +
									"</table>" +
								"</div>" +
							"</div>";	
	
	
		return TempContent;
	}
	
	function FocusMarker(Index)
	{
		GoogleMarker[Index].openInfoWindowHtml(ContentMarker[Index]);
	}
	
	function FocusMarker2(Index)
	{
		document.documentElement.scrollTop = "100px";
		GoogleMarker[Index].openInfoWindowTabsHtml([new GInfoWindowTab(aTitleTab1[Index], aContentTab1[Index]), new GInfoWindowTab(aTitleTab2[Index], aContentTab2[Index])]);
	}
	
	function CreateMarker(point, CompanyId, CompanyName, FirstName, LastName, ContactPhone, ContactEmail, CompanyWebsite)
	{		
		//Bubble Content
		var CompanyContent = "";		
		//Create marker
		var Marker = new GMarker(point);
		//Add Bubble Info on Marker
		GEvent.addListener(Marker, "click", function()
								    {
									CompanyContent = "<div id=\"results_wrapGMap\">" +
														"<div id=\"resultsGMap\">" +
															"<h1><a href=\"viewprofile.php?cid=" + CompanyId + "&vp=1\">" + DecodeTag(CompanyName) + "</a></h1>" +  // Company name
															"<p>" +
																"<div id=\"contactGMap\">" +
																	"<strong>Contact Information</strong><br/>" +
																	FirstName + " " + LastName + "<br/>" + //First Name and Last Name
																	ContactPhone + "<br/>" + //Contact Phone
																	ContactEmail + "<br/>" + //Contact Email
																	"<a href=\"" + CompanyWebsite + "\">" + CompanyWebsite + "</a><br/><br/>" + //Company Website
																	//~ "<div id=\"" + CompanyId + "\" class=\"view_btn\" click=\"ViewProfile(this.id)\">" + //Give button view profile with CompanyId
																		//~ "<a href=\"viewprofile.php?cid=" + CompanyId + "\"></a>" +
																	 //~ "</div>" +
																"</div>" +
															"</p>" +
													       "</div>" +
												       "</div>";
									
									Marker.openInfoWindowHtml(CompanyContent);
								    }
					    );
		return Marker;
	}
	
	function CreateMarker2(Point, Content, Index)
	{
		//Create marker
		var Marker = new GMarker(Point);
		//Add Bubble Info on Marker
		GEvent.addListener(Marker, "click", function()
								    {
									Marker.openInfoWindowHtml(Content);
								    }
					    );
		
		//Save marker and content bubble info to array for later to show again from Company Name Link
		GoogleMarker[Index] = Marker;
		ContentMarker[Index] = Content;
		
		return Marker;
	}
	
	function CreateTabbedMarker(Index, Point, TitleTab1, TitleTab2, ContentTab1, ContentTab2)
	{
		//Create Marker
		var Marker = new GMarker(Point);
		//Add Bubble Tabbed Info On Marker
		GEvent.addListener(Marker, "click", function()
								{
									Marker.openInfoWindowTabsHtml([new GInfoWindowTab(TitleTab1,ContentTab1), new GInfoWindowTab(TitleTab2,ContentTab2)]);
								}
					  );
		
		//Save marker and content bubble info to array for later to show again from Company Name Link
		GoogleMarker[Index] = Marker;
		aTitleTab1[Index] = TitleTab1;
		aTitleTab2[Index] = TitleTab2;
		aContentTab1[Index] = ContentTab1;
		aContentTab2[Index] = ContentTab2;
		
		//Return the Marker Object
		return Marker;
	}
	
	function ToHere()
	{
		var dToHere = document.getElementById("ToHere");
		var dFromHere = document.getElementById("FromHere");
		
		//Show Form To Here and Hide Form From Here
		dToHere.style.display = "";
		dFromHere.style.display = "none";
	}
	
	function FromHere()
	{
		var dToHere = document.getElementById("ToHere");
		var dFromHere = document.getElementById("FromHere");
		
		//Hide Form To Here and Show Form From Here
		dToHere.style.display = "none";
		dFromHere.style.display = "";
	}
	

	function ShowBasicSearch()
	{
		TypeSearch = "basic";
		var BasicSearch = document.getElementById("BasicSearch");
		var AdvancedSearch = document.getElementById("AdvancedSearch");
		
		BasicSearch.style.display = "";
		AdvancedSearch.style.display = "none";
	}
	
	function ShowAdvancedSearch()
	{
		TypeSearch = "advanced";
		var BasicSearch = document.getElementById("BasicSearch");
		var AdvancedSearch = document.getElementById("AdvancedSearch");
		
		BasicSearch.style.display = "none";
		AdvancedSearch.style.display = "";
	}
	
	function Clear()
	{		
		//Clear Search Terms
		var txtSearch = document.getElementById("txtSearch");
		txtSearch.value = "";
		
		//Set to Default Country United States
		var ddlCountry = document.getElementById("ddlCountry");
		//Set default selected value on United States
		for(var i = 0 ; i < ddlCountry.length; i++)
		{
			if(ddlCountry.options[i].value == "United States")
				ddlCountry.selectedIndex = i;
		}
		
		//Show Dropdown State
		var ddlState = document.getElementById("ddlState");
		ddlState.style.display = "";
		
		//Set Default Selected value on CA
		//~ for(var i = 0; i < ddlState.length; i++)
		//~ {
			//~ if(ddlState.options[i].value == "CA")
				//~ ddlState.selectedIndex = i;
		//~ }
		ddlState.selectedIndex = 0;
		
		//Hide Text input for State and Clear the value
		var txtState = document.getElementById("txtState");
		txtState.style.display = "none";
		txtState.value = "";
		
		//Claer value on Zip Code
		var txtZipCode = document.getElementById("txtZipCode");
		txtZipCode.value = "";
		
		//Clear All selected language
		var sLanguage = document.getElementById("Language");
		//Clear All selected Language
		for(var i = 0; i < sLanguage.length; i++)		
			sLanguage.options[i].selected = false;		
		
		//Clear All Selected Partnerships
		var sPartnerships = document.getElementById("Partnerships");
		for(var i = 0; i < sPartnerships.length; i++)
			sPartnerships.options[i].selected = false;
		
		
		//Clear All Selected Service Var
		var sServiceVar = document.getElementById("ServiceVar");
		for(var i = 0; i < sServiceVar.length; i++)
			sServiceVar.options[i].selected = false;
			
		//~ Get Pagination Object
		var Pagination = document.getElementById("pag");
		//Hide Pagination
		Pagination.style.display = "none";
		
		//Get span for render Result
		var sResultSearch = document.getElementById("ResultSearch");
		//Clear Result
		sResultSearch.innerHTML = "";
	}
	
	function Clear2()
	{
		//Clear For Basic Search
		var txtLocation = document.getElementById("txtLocation");
		var ddlServiceVarS = document.getElementById("ServiceVarS");
		
		txtLocation.value = "";
		ddlServiceVarS.selectedIndex = 0;
		
		//Clear for Advanced Search
		var ddlServiceListM = document.getElementById("ServiceVarM");
		var txtSearch = document.getElementById("txtSearch");
		var ddlCountry = document.getElementById("ddlCountry");
		var ddlStates = document.getElementById("ddlState");
		var txtState = document.getElementById("txtState");
		var txtZipCode = document.getElementById("txtZipCode");
		var ddlRadius = document.getElementById("ddlRadius");
		
		for(var i = 0; i < ddlServiceListM.length; i++)
			ddlServiceListM.options[i].selected = false;
		
		ddlServiceListM.selectedIndex = 0;
		
		txtSearch.value = "";
		
		//Set default selected value on United States
		for(var i = 0 ; i < ddlCountry.length; i++)
		{
			if(ddlCountry.options[i].value == "United States")
				ddlCountry.selectedIndex = i;
		}
		
		//~ for(var i = 0; i < ddlStates.length; i++)
		//~ {
			//~ if(ddlStates.options[i].value == "All")
				//~ ddlStates.selectedIndex = i;
		//~ }
		ddlStates.selectedIndex = 0;
		ddlStates.style.display = "";
		
		txtState.style.display = "none";
		txtState.value = "";
		
		txtZipCode.value = "";
		
		ddlRadius.selectedIndex = 0;
	}
	
	function Clear3()
	{
		//Get object to clear
		var txtKeyword = document.getElementById("txtKeyword");
		var txtLocation = document.getElementById("txtLocation");
		var ddlRadius1 = document.getElementById("ddlRadius1");
		//Clear value
		txtKeyword.value = "";
		txtLocation.value = "";
		ddlRadius1.selectedIndex = 0;
	}
	
	function OpenViewProfile(CompanyId)
	{
		var url = "viewprofile.php?cid=" + CompanyId + "&vp=1";	
		window.location = url;
		
		//~ var windowViewProfile = window.open(url, "ViewProfile");
		//~ windowViewProfile.focus();
	}
	
	function OpenCompanyWebsite(CompanyWebsite)
	{
		var WindowCompanyWebsite = window.open(CompanyWebsite, "CompanySite")
		WindowCompanyWebsite.focus();
	}