function cOuttitle(object)
{
	object.style.backgroundColor="B4C2D3";
}
function cOntitle(object)
{
	object.style.backgroundColor="C7B9F3";
}

function changeBG(color,id)
{
	document.getElementById(id).style.backgroundColor=color;
}

function changeBackGround(color,id)
{
	id.style.backgroundColor=color;
}
function changeBorder(color,id)
{
	document.getElementById(id).style.borderColor=color;
}
function validate(text,link)
{
	if(confirm(text))
	{
		window.location.href=link;
	}
}

function changeFont(id,type,value)
{
	if(type=="size")
	{
		document.getElementById(id).size=value;
	}
	else if(type=="type")
	{
		document.getElementById(id).style.fontFamily=value;
	}
	else if(type=="color")
	{
		document.getElementById(id).style.fontColor=arr;

	}
}
	function foreColor(id)
	{

		var arr = showModalDialog("includes/colorSelector.aspx","","status:no; dialogWidth:433px; dialogHeight:250px" );
		if (arr != null)
			document.getElementById(id).value=arr;
			document.getElementById("sample").color=arr;
		
	}

var currentFrame="150,*";
function hidemenu(id)
{
	if(parent.content.cols!="0,*")
	{
		document.getElementById(id).style.backgroundImage='url(images/oToc.jpg)';
		currentFrame=parent.content.cols;
		parent.content.cols="0,*";
	}
	else
	{
		document.getElementById(id).style.backgroundImage='url(images/cToc.jpg)';
		parent.content.cols=currentFrame;
	}
}
function redirectMain(strURL)
{
  	parent.main.location.href=strURL;
}
