function showAddTestimonial()
{
	document.getElementById('AddTestimonial').style.display = "";
}

function CancelTestimonial()
{
	document.getElementById('AddTestimonial').style.display = "none";
}

function addTestimonial()
{
	var frma=window.document.Testimonial;
	if(!BlankField(frma.addtitle,'Please Enter Title'))return false;
	if(!BlankField(frma.addContent,'Please Enter Content'))return false;
	if(!BlankField(frma.addauthorDetails,'Please Enter Content'))return false;
	frma.method.value="addTestimonial";
	frma.action="index.cfm?page=testimonials"
	frma.submit();
}
	
function Login_focus(e,o){
if(o.firstTime){return}
o.firstTime=true
o.value=""
}

var newWin = null;
function popUp(strURL, strType, strHeight, strWidth) {
 if (newWin != null && !newWin.closed)
   newWin.close();
 var strOptions="";
 if (strType=="console")
   strOptions="resizable,height="+
     strHeight+",width="+strWidth;
 if (strType=="fixed")
   strOptions="status,height="+
     strHeight+",width="+strWidth;
 if (strType=="elastic")
   strOptions="toolbar,menubar,scrollbars,"+
     "resizable,location,height="+
     strHeight+",width="+strWidth;
 newWin = window.open(strURL, 'newWin', strOptions);
 newWin.focus();
}


function switchMenu(obj) {
	var lay = document.getElementById(obj);
	if ( lay.style.display != "none" ) {
		lay.style.display = 'none';
	}
	else {
		lay.style.display = '';
	}
}
