
function getcssid() 
{
	var idx = document.location.href.indexOf('?');
	if (idx != -1) 
	{
		var cssID = document.location.href.substring(idx+1, document.location.href.length);
	}
	else
	{
		return 1;
	}
	return cssID;
}

function selecturl(s) 
{
	var gourlid = s.options[s.selectedIndex].value;

	var end = document.URL.indexOf('?');
	if (end == -1) 
	{
		end = document.URL.length
	}
	var gourl = document.URL.substring(0, end);

	window.top.location.href = gourl + "?" + gourlid;
}