function setSRC(){
	// Set the form SRC value for Ad Tracking or Redesign SRC on both CSG Splash page form and header search form
	document.ypform.SRC.value = document.ypform_.SRC.value = (SRC_param == '') ? 'csg2' : SRC_param;
}

function showBusList(show) {
	toggleContent(show,'buslist_hdr');
	toggleContent(show,'buslist');
	if (show == 1) {
		toggleContent(0,'view-bus');		
		window.location.hash="bus-list";
	} else {
		toggleContent(1,'view-bus');				
		setFocus();
	}
}
function removeAnchor() {
	//Remove anchor from url
	var url = window.location.toString();
	var anchor_index = url.indexOf('#');
	if (anchor_index != -1) {
		url = url.substring(0, anchor_index);
	}
	// Remove &buslist=1 request parameter
	var buslist_index = url.indexOf('&buslist=1');
	if (buslist_index != -1) {
		url = url.substring(0, buslist_index);
	}
	window.location=url;
}
function verify_standalone(stform) {
	 var keywd = stform.C.value;
	 keywd = keywd.replace( /^\s+/g, "" );
	 keywd = keywd.replace( /\s+$/g, "" ); 
	if (keywd == "" || keywd == "Required field" || keywd == "ex: Electrician") {
		stform.C.value = "Required field";
		stform.C.style.color = "red";
		stform.C.focus();
		
		return false;
	}
	
	var location= stform.L.value;
	if ( location == "ex: New York, NY 10002") {
		stform.L.value = "Enter valid city and state or zip code";
		stform.L.style.color = "red";
		stform.L.focus();
		
		return false;
	}
   
	keywd = keywd.replace( /ex: Electrician/g, "" ); 
	keywd = keywd.replace( /Required field/g, "" ); 
	stform.C.value = keywd;
	
	location = location.replace(/ex: New York, NY 10002/g,"");
	location = location.replace(/Enter valid city and state or zip code/g,"");
	stform.L.value = location;
	
	return true;
}

function omniTrackCSG(section, action) {
	var s=s_gi(s_account);

	// Mod by Sarayu, 08/06/2009
	// Per Keefe: Event30 should only be triggered if it occurs on the Homepages
	//s.linkTrackVars='prop37,events';
	//s.linkTrackEvents='event30';
	//s.events='event30';
	
	s.linkTrackVars='prop37';
	s.prop37=section+':'+action;
	//alert(s.prop37);
	s.tl(this,'o','Link Name');
}
