//hs.graphicsDir = '/highslide/graphics/';
//hs.showCredits = false;

function test()
{
    var url = location.href;
    if (url.indexOf('.') == -1)
	{
	    if (url.length != url.lastIndexOf("/"))
	    location.href=location.href + "/";
	}
}

function searchaction(searchtype,facetsk,type,Categorysk)
{
	var url = location.href;
	var _path;
	if (url.indexOf('htm')!= -1)
	{
		var _index =url.lastIndexOf("/")
	     _path  = url.substring(0,_index+1)
	
	}
	else
	{
	//debugger
	var _length = url.length;
	if  (url.substring(_length -1 ,_length) == "/")
		 _path = location.href.substring(0,url.lastIndexOf("/")+1);
	else
		 _path = location.href + "/"; 
	}
    document.getElementById("hdnSearchCondition").value=searchtype;
    document.getElementById("hdnFacetSK").value=facetsk;
    document.getElementById("hdnCategorySK").value=Categorysk;
    document.forms[0].action =_path +  type;
    document.forms[0].method="POST";
    document.forms[0].submit();
}

