
<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_showHideLayers() { //v3.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
	if (obj.style) { 
		obj=obj.style; v=(v=="show")?'visible':(v="hide")?'hidden':v; 
	}
    obj.visibility=v; 
  }
}

function openComPanel() {
	var i = document.domain.indexOf('.');
	var theDomain = document.domain.substring(0,i);
	var titleComp = "comPanel"+theDomain;
	MM_openBrWindow('/aworlds/Presence/comPanel.php?siteid=1',titleComp,'resizable=yes,scrollbars=yes,width=200,height=450');
//alert (titleComp);
}
function openNewComPanel(sid,loggedin) {
	var i = document.domain.indexOf('.');
	var theDomain = document.domain.substring(0,i);
	var titleComp = "comPanel"+theDomain;
	var webobjectUrl = "http://38.144.92.98/cgi-bin/WebObjects/WhosOnline"
	MM_openBrWindow(webobjectUrl+'?SID='+sid+'&loggedin='+loggedin,titleComp,'resizable=yes,scrollbars=yes,width=225,height=500');
}
function openUrlNewComPanel(url,sid,loggedin) {
	var i = document.domain.indexOf('.');
	var theDomain = document.domain.substring(0,i);
	var titleComp = "comPanel"+theDomain;
	var webobjectUrl = url;
	MM_openBrWindow(webobjectUrl+'?SID='+sid+'&loggedin='+loggedin,titleComp,'resizable=yes,scrollbars=yes,width=225,height=500');
}

function loadFocus(i) {
	document.forms[0].elements[i].focus();
}

function locationParent() {
	parent.location.href = "/377";
}
function bb_index_locationParent( $pageid, $categoryid) {
//alert('hello '+$pageid + ' ' + $categoryid);
	parent.location.href = "/"+ $pageid + "&form_categoryid=" + $categoryid;
}
function image_gallery_changeType( $pageid, $imagetypeid) {
//alert('hello '+$pageid + ' ' + $categoryid);
	parent.location.href = "/"+ $pageid + "/image/gallery&imagetypeid=" + $imagetypeid;
}

function image_recent_changeType( $pageid, $imagetypeid) {
//alert('hello '+$pageid + ' ' + $categoryid);
	parent.location.href = "/"+ $pageid + "/image/recent&imagetypeid=" + $imagetypeid;
}

function send_background(bg_url, imageid) {
	document.getElementById("testarea").style.backgroundImage = 'url('+bg_url+')';

	document.getElementById("bgimage").value=imageid;
}

function send_color(color) {

	if (document.all.target_color.checked) {
		document.all.color.style.color=color; 
		document.all.color.value=color;
		
		document.all.testarea.style.color=color;
		
		
	} else if (document.all.target_a_link.checked) {
	
		document.all.alinker.style.color=color; 
		document.all.alinker.value=color;
				
		document.all.ex_alink.style.color=color;
		
	} else if (document.all.target_a_active.checked) {

		document.all.a_active.style.color=color; 
		document.all.a_active.value=color;
		
		document.all.ex_active.style.color=color;
		
	} else if (document.all.target_a_visited.checked) {
		document.all.a_visited.style.color=color; 
		document.all.a_visited.value=color;
		
		document.all.ex_visited.style.color=color;

	} else if (document.all.target_a_hover.checked) {
		document.all.a_hover.style.color=color; 
		document.all.a_hover.value=color;
		
		document.all.ex_hover.style.color=color;
		
	} else if (document.all.target_background.checked) {
		document.all.bgcolor.style.color=color; 
		document.all.bgcolor.value=color;
		

		document.getElementById("testarea").style.backgroundColor=color;
		//document.all.testarea.style.background=color;
	}
}


function textCounter(field, countfield, maxlimit) {
	if (field.value.length > maxlimit) // if too long...trim it!
		field.value = field.value.substring(0, maxlimit);
	else 
		// otherwise, update 'characters left' counter
		countfield.value = maxlimit - field.value.length;
}

-->

