function getFileName(){
	var strFileName = window.location.pathname.toLowerCase() ;
	strFileName = strFileName.substring(strFileName.lastIndexOf("/")+1) ;
	
	switch(strFileName) {
		case "products_02_02.aspx" : 
			var strProdSerID = func_GetQuery('SeriID') ;
			return window.location.pathname + ((strProdSerID != null) ? '?SeriID=' + strProdSerID : '') ;
			break ;
		case "solutions_01.aspx" :
		case "solutions_01_01.aspx" :
			var strPID = func_GetQuery('PID') ;
			return window.location.pathname + ((strPID != null) ? '?PID=' + strPID : '') ;
			break ;
		default :
			return window.location.pathname ; 
	}
	/* // bak 2007-11-21
	var strProdSerID = func_GetQuery('SeriID') ;
	return window.location.pathname + ((strProdSerID != null) ? '?SeriID=' + strProdSerID : '') ;
	*/
}

function func_GetQuery( QueryName ) {
	QueryName = QueryName.toUpperCase()

	var strQuery = location.search.replace('?', '') ;
	var strTemp ;
	
	if ( strQuery != '' ) {
		var strArgs = strQuery.split('&') ; 
		for (var i = 0 ; i < strArgs.length ; i++) {
			strArgs[i] = strArgs[i].toUpperCase() ;
			strTemp = strArgs[i].split('=') ; 
			if (strTemp.length == 2 && strTemp[0] == QueryName) {
				return strTemp[1] ;
			}
		}
	}
	return null ;
}