function ChangeUrl(newLoc) {
	newPage = newLoc.options[newLoc.selectedIndex].value
	
	if (newPage != "") {
	  top.location = newPage
		}
	}

//fckeditor
function FCKeditor_OnComplete( editorInstance )
{
	var oCombo = document.getElementById( 'cmbSkins' ) ;

	// Get the active skin.
	var sSkin = editorInstance.Config['SkinPath'] ;
	sSkin = sSkin.match( /[^\/]+(?=\/$)/g ) ;

	oCombo.value = sSkin ;
	oCombo.style.visibility = '' ;
}

function ChangeSkin( skinName )
{
	window.location.href = window.location.pathname + "?Skin=" + skinName ;
}

  /*
function check(active)
  {
	
	  
			if (document.getElementById("active").checked=true); {
				 alert(" on " +active);
				 else {
				 alert("nothing");
				 }
 			}
  }

  	/*var sayit = document.forms.domainForm.active.value;
	var sayit = '';
	var sayit = document.getElementById('active').value;
	
	var sayit = document.getElementById('active').value;

	
	if (sayit == 'on') {
		strActive = '-1';
		alert (" on " + strActive);
	}
		else {
		strActive = '0';
		alert (strActive);

}

var activeOption = -1;

for (i=0, i<document.forms.domainForm.active.length; i++);
	{
	if document.forms.domainForm.active[i].checked) {
		activeOption = i
		strActive = '-1'
	}
	if (activeOption == -1) }
		alert (" on " + activeOption);
	}
}



if (document.getElementById("active").checked=true) {
	strActive = "-1";
	alert(strActive);
	}
	else {
	strActive = "0";
	alert(strActive);
}
*/

//document.getElementById("active").checked=false;
//var sayit= '';
//  sayit = document.getElementById("active").value=active;

//AJAX List Pages  -  listpages.asp
var xmlHttp


function showDomain(str)
{

xmlHttp=GetXmlHttpObject();
if (xmlHttp==null)
  {
  alert ("Your browser does not support AJAX, sorry. Send an e-mail to: inquirey@thinkcyber.com");
  return;
  } 
var url="getdomain.asp";
url=url+"?q="+str;
//url=url+"&strActive="+strActive;
url=url+"&sid="+Math.random();
xmlHttp.onreadystatechange=stateChanged;
xmlHttp.open("GET",url,true);
xmlHttp.send(null);
}

function stateChanged() 
{ 
if (xmlHttp.readyState==4)
{ 
document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}