function openURL(url){
	window.top.location.href=url;
}


function localopenURL(a,b){	
	url=a+document.getElementById(b).innerHTML;
	
	window.top.location.href=url;
}

function escapeUrl(url,authorName){
  if (url == 'http://www.unibook.com/ja/') {
	var finalurl = url + authorName;
  }
  else {
	var finalurl = url + getEncodeValue(authorName);
  }

openURL(finalurl);
}

function getEscapeUrl(url,authorName){
		var finalurl = url + getEncodeValue(authorName);
		return finalurl;
}

function getEncodeValue(val){
	val = encodeURIComponent(val).replace(/%2F/g, '/');

	return val.replace(/%26/g, '%2526').replace(/%23/g, '%2523').replace(/%20/g, '-').replace(/\./g, '%252E').replace(/\/\//g, '/%252F').replace(/%2B/g, '%252B');
}
