		function changeCSS() 
		 {
			document.getElementById('cssHolder').setAttribute('href',GetQueryString());
		 }
		 
		 function ParentschangeCSS() 
		 {
		   
			document.getElementById('cssHolder').setAttribute('href',GetCookieCSS());
		 }
		 function GetQueryString()
		 {

			var myUrl=window.location.search;
			var query=myUrl.split('=');
			var key=query[0].replace('?','');
			var value=query[1]
			value = value.replace('\\','/');
			value = trim(value);
			value = value.substring(0,4);
			value = value + '.css';
			value = '../StyleSheet/centers/' + value;
			return value;
		}
		
		function trim(str)
		{
			return str.replace(/^\s*|\s*$/g,"");
		}


		function GetCookieCSS() 
		 {
		   
			var mycookie = unescape(document.cookie);
			if (mycookie.indexOf("COMPANYID") > -1) 
			{
				  
         		value = mycookie.substring(mycookie.indexOf("COMPANYID=")+10, mycookie.length);
				value  = value.substring(0,((value.indexOf(";")>-1)?value.indexOf(";"):value.length));
				value = trim(value);
				value = value + '.css';
				value = '../StyleSheet/centers/' + value;
				document.getElementById('cssHolder').setAttribute('href',value);
			
			}
           return value;
								
		 }


