function open_window(uRL) {
	var window_height = 50, window_width = 300;
	var win = window.open(uRL, "window","toolbar=no, width="+window_width+", height="+window_height+" ,status=no, scrollbars=no, resizable=no, menubar=no");
}

function ld(theurl) {
	document.getElementById("url").href = theurl;
	document.getElementById("url").click();
}

function set_div_height(id,h){document.getElementById(id).style.height=h+"px";}
function trigger_flash(id,fnctn){
	if(document.getElementById(id)[fnctn]!=undefined){
		var args="";
		for(var i=2; i<arguments.length; i++){ if(i>2){args+=", ";} args+="\""+arguments[i]+"\"";}
		eval("document.getElementById('"+id+"')."+fnctn+"("+args+")");
		return true;
	}return false;
}
function shareOnFacebook($url){popup({url:'http://www.facebook.com/sharer.php?u='+encodeURIComponent($url),width:960,height:540,scrollbars:false});}
function shareOnTwitter($url,$text){popup({url:'http://twitter.com/share?url='+encodeURIComponent($url)+'&text='+encodeURIComponent($text),width:600,height:350,scrollbars:false});}
function shareOnSkyrock($url){popup({url:'http://www.skyrock.com/m/blog/share.php?u='+encodeURIComponent($url),width:1024,height:650,scrollbars:true});}
function popup(config){
	//alert(JSON.stringify(config));
	 var width  = config.width;
	 var height = config.height;
	 var left   = (screen.width-width)/2;
	 var top    = (screen.height-height)/2;
	 var params = 'width='+width+',height='+height;
	 params += ', top='+top+',left='+left;
	 params += ', directories=no';
	 params += ', location=no';
	 params += ', menubar=no';
	 params += ', resizable=no';
	 params += ', scrollbars='+(config.scrollbars?'yes':'no');
	 params += ', status=no';
	 params += ', toolbar=no';
	 newwin=window.open(config.url,'window94',params);
	 if(window.focus){newwin.focus()}
	 return false;
}
