/*<script type="text/javascript" charset="utf-8" src="/scripts/standard.js"></script>*/

/* open new window*/
function openpopup(url, windowtarget) 
{
    window.open(url, windowtarget, 'width=610,height=575,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0,left=0,top=0');
}


/* set bookmark */
function setBookmark()
{
  var brty = navigator.appName;
  var brve = navigator.appVersion;
  var url=parent.document.location.href; 
  var titel = document.title; 
  if (brty.indexOf("Explorer")>-1)
  {
    window.external.AddFavorite(url, unescape('Sembcorp Industries'));
  }
  else
  {
    alert(unescape("Your Browser does not support this feature"));
  }
}
function setBookmark(lang)
{
  bookmarkurl = location.href;
  if (document.all) {
     window.external.AddFavorite(bookmarkurl,document.title);
     } else {
       alert('Your Browser does not support this feature');
    }
}


/* back to top */
function Top()
{
 document.location.href="#pagetop";
}

/* Email page */
function isInPublishMode()
	{
		return true;
		
	}

	function launchPostingEmail(object)
	{
		if (isInPublishMode())
		{
			var title = escape(window.document.title);
			var url = escape(window.location.href.replace("{",escape("{")).replace("}",escape("}")));
			if (title.length == 0)
			{
				title = url;
			}
			window.location.href = "mailto:?subject=" + title + "&body=" + url;

			try
			{
				// Adding WebTrend tracking
				dcsMultiTrack('DCS.dcsuri','/UserTools/Email','WT.ti','User Tool - Email');
			}
			catch(e)
			{
			}
		}
	}

