
function trim(stringToTrim) {
	return stringToTrim.replace(/^\s+|\s+$/g,"");
}

function openPortalOld() {
	window.open("https://www.iclassprov2.com/icpv2/pp/viking/HOME",'','resizable=yes,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,fullscreen=no,dependent=no,width=1024,height=600,status');
	return false;
}

function openRegForm() {
	window.open('https://app.jackrabbitclass.com/reg.asp?id=507893', 'regform', 'toolbar=0,width=950,height=600,resizable=1,scrollbars=1,status=0');
	return false;
}

function openLogin() {
	window.open('https://app.jackrabbitclass.com/portal/ppLogin.asp?id=507893', 'regform', 'toolbar=0,width=950,height=600,resizable=1,scrollbars=1,status=0');
	return false;
}

function comingSoon( name ) {
	alert( "The " + name + " will be available soon!  Please check back." );
} 

function showCookiePage( page ) {
	//alert( page );
	window.location = "cookies.php?pg=" + page + "#imageTable";
}

function showCupcakePage( page ) {
	//alert( page );
	window.location = "cupcakes.php?pg=" + page + "#imageTable";
}


// Place this render call where appropriate for Google +1 function.
(function() {
    var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
    po.src = 'https://apis.google.com/js/plusone.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
  })();

