function startAll() {
	if (ajaxuse) async_start() ;
	isPlaced = true ;
}


function setColor(obj, mbackcolor, mforecolor, mbordercolor) {

	if (typeof mbackcolor != "undefined") obj.style.backgroundColor  = mbackcolor ;
	if (typeof mforecolor != "undefined") obj.style.color = mforecolor ;
	if (typeof mbordercolor != "undefined") obj.style.borderColor  = mbordercolor ;

}

function ifrLocate(url) {

		if (document.all) document.frames["ifrbase"].location.href = url ;
		else if (document.getElementById && !document.all) document.getElementById("ifrbase").contentDocument.location.href = url ;
		
}

function wpop(murl,mwidth,mheight,mscroll,mresiz) {
	if (typeof murl != "undefined") {
		if (typeof mwidth == "undefined") var mwidth=640 ;
		if (typeof mheight == "undefined") var mwidth=480 ;
		if (typeof mscroll == "undefined") var mscroll=0 ;
		if (typeof mresiz == "undefined") var mresiz=1 ;
		
		var mpop = window.open (murl,"mpop","width="+mwidth+",height="+mheight+",scrollbars="+mscroll+",resizable="+mresiz) ;
		mpop.focus() ;
		
	}
}

function nospam (muser,mdomain) {
	if (typeof mdomain == "undefined") var mdomain="relaismonforte.it" ;
	location.href = "mailto:"+muser+"@"+mdomain ;
}


function openGallery (url) {

	gallery = window.open (url, "gallery", "fullscreen=1,scrollbars=0") ;
	gallery.focus() ;
	
}

function openVideo(mflv, mvol, mwidth, mheight) {

	var url = "videolaunch.php?flv="+mflv+"&vol="+mvol+"&w="+mwidth+"&h="+mheight ;
	var mchar = "scrollbars=0,resizable=0,width="+mwidth+",height="+mheight ;
	video = window.open (url, "video", mchar) ;
	video.focus() ;
	

}
