var currentWin;

function showSimpurlPop(lclUrl) {
	currentWin=window.open("/"+shortalArea+"simpurl/add?pop=yes&url="+escape(lclUrl),'wndShortalPop','width=600,height=400,top=30,left=30');
	currentWin.focus();
}

function showConveyPop(lclUrl) {
	currentWin=window.open("/"+shortalArea+'convey/?pop=yes&url='+escape(lclUrl), 'wndShortalPop','width=600,height=400,top=30,left=30');
	currentWin.focus();

}


function showDialog(lclUrl) {
	currentWin=window.open(lclUrl, 'wndShortalPop','width=600,height=400,top=30,left=30');
	currentWin.focus();

}

function showSeeMore(lclUrl) {
	currentWin=window.open(lclUrl, 'wndShortalPop','scrollbars,width=400,height=550,top=20,left=20');
	currentWin.focus();

}

        function setHP()
        {
    itemObj = document.getElementById("svenSetHP");
    itemObj.style.behavior = "url(#default#homepage)";
    itemObj.setHomepage(document.location.href);
        }


function hideCopyBox() {
	document.getElementById("copyBox").style.display="none";
}

function showCopyBox(url) {
	url=unescape(url);
	//url=url.replace(/%/g,escape('%'));
	//url=url.replace(/\?/g,escape('?'));
	//url=url.replace(/&/g,escape('&'));
	url=url.replace(/ /g,'+');

	document.getElementById("copyURL").value=url;
	document.getElementById("copyBox").style.display="block";
	document.getElementById("copyBox").style.border="solid 15px #ffffff";
	document.getElementById("copyURL").focus();
	document.getElementById("copyURL").select();
}


