// JScript source code
	function putStart(date, month, year)
	{
		date =  month + '/' + date + '/' + year;
		document.forms(0).txtStartDate.value = date;

	}
	function putEnd(date, month, year)
	{
		date = month + '/' + date + '/' + year;
		document.forms(0).txtEndDate.value = date;

	}
	function putEndDisplay(date, month, year)
	{
		date = month + '/' + date + '/' + year;
		document.forms(0).txtEndDisplay.value = date;

	}
	function putDate(date, month, year)
	{
		date =  month + '/' + date + '/' + year;
		document.forms(0).txtDate.value = date;

	}
	function putAltDate(date, month, year)
	{
		date = month + '/' + date + '/' + year;
		document.forms(0).txtAltDate.value = date;

	}
	function newEditor(sName,nWidth,nHeight,sToolbar,sText){
		var oFCKeditor = new FCKeditor(sName,nWidth,nHeight,sToolbar,sText) ;
		oFCKeditor.BasePath = "../FCKeditor/";
		oFCKeditor.Create();
	}
	//determines the length of the content of the editor (without HTML markups)
	function getLength(instance)
	{
		// Get the editor instance that we want to interact with.
		var oEditor = FCKeditorAPI.GetInstance(instance) ;

		// Get the Editor Area DOM (Document object).
		var oDOM = oEditor.EditorDocument ;

		var iLength ;

		if ( document.all )		// If Internet Explorer.
		{
			iLength = oDOM.body.innerText.length ;
		}
		else					// If Gecko.
		{
			var r = oDOM.createRange() ;
			r.selectNodeContents( oDOM.body ) ;
			iLength = r.toString().length ;
		}

		return iLength;
	}
	
	//validate the search form
	function validateSearch(){
		if((!document.forms.frmSearch.txtPostal.value>'') && (!document.forms.frmSearch.txtCity.value>'')){
			alert('Please enter a search criteria!');
			document.frmSearch.txtPostal.focus();
			return;
		}
		if((document.forms.frmSearch.txtPostal.value>'') && (document.forms.frmSearch.txtCity.value>'')){
			alert('Please enter only one search criteria!');
			document.forms.frmSearch.txtPostal.value='';
			document.forms.frmSearch.txtCity.value='';
			document.frmSearch.txtPostal.focus();
			return;
		}			
		document.forms.frmSearch.doWhat.value='search';			
		document.forms.frmSearch.submit();
		return;
	}
	/*hides/unhides the personal address fields on the directory entry*/
	function setVisible(nID) {
		if(nID > 0){
			oDiv = document.getElementById("div" + nID);
			if(oDiv.className == "show"){
				oDiv.className = "preload";
			}else{
				oDiv.className = "show";
				//document.forms(0).txtPSuite.value = '';
				//document.forms(0).txtPBox.value = '';
				//document.forms(0).txtPLine1.value = '';
				//document.forms(0).txtPLine2.value = '';
				//document.forms(0).txtPCity.value = '';
				//document.forms(0).txtPProv.value = '';
				//document.forms(0).txtPPostal.value = '';
				//document.forms(0).txtPPhone.value = '';
				//document.forms(0).txtPFax.value = '';
				//document.forms(0).txtPEmail.value = '';
			}
		}
		return;			
	}
	//set the page content in session.asp
	function setASContent(nID) {
		var sName = "div";
		var oDiv = document.getElementsByTagName(sName);
		var oDiv2
		for(x=0;x<oDiv.length;x++){
			if(oDiv[x]==document.getElementById(nID)){
				oDiv[x].firstChild.className = "preload";
				oDiv[x].lastChild.className = "show";
			}else{
				oDiv[x].firstChild.className = "show";
				oDiv[x].lastChild.className = "preload";			
			}
		}
		return;			
	}

	//retrieve the hash from the url(Annual Session Display)
	function getHash(){
		var nLocation = document.location.hash.slice(1);
		nLocation = !isNaN(parseInt(nLocation))?parseInt(nLocation):1;	
		//alert(nLocation);
		setContent(nLocation);		
		return;		
	}
	
	//validate the continuing education input form
	function validateConEd(){
		if(!document.forms.frmConEd.txtTitle.value>''){
			alert('Please enter a \'Course Title\'!');
			document.frmConEd.txtTitle.focus();
			return;
		}
		if(!document.forms.frmConEd.txtSpeaker.value>''){
			alert('Please enter a \'Speaker\'!');
			document.frmConEd.txtSpeaker.focus();
			return;
		}
		if(!document.forms.frmConEd.txtStartDate.value>''){
			alert('Please enter a \'Start Date\'!');
			document.frmConEd.txtStartDate.focus();
			return;
		}
		if(!document.forms.frmConEd.txtEndDisplay.value>''){
			alert('Please enter a \'End Display\' date!');
			document.frmConEd.txtEndDisplay.focus();
			return;
		}
		if(!document.forms.frmConEd.selLocation.value>0){
			alert('Please enter a \'Location\'!');
			document.frmConEd.selLocation.focus();
			return;
		}
		document.forms.frmConEd.doWhat.value='save';			
		document.forms.frmConEd.submit();
		return;
	}
	
	function validatePword(){
	
		if(!document.forms.frmPWord.txtPWord.value>''){
			alert('Please enter your \'New Password\'!');
			document.frmPWord.txtPWord.focus();
			return;
		}
		if(!document.forms.frmPWord.txtConfirmPWord.value>''){
			alert('Please confirm your \'New Password\'!');
			document.frmPWord.txtConfirmPWord.focus();
			return;
		}
		if((document.forms.frmPWord.txtPWord.value.length<5)||(document.forms.frmPWord.txtPWord.value.length>12)){
			alert('Please choose a password between 5 and \n12 characters in length!');
			document.forms.frmPWord.txtPWord.value = "";
			document.forms.frmPWord.txtConfirmPWord.value = "";
			document.frmPWord.txtPWord.focus();
			return;
		}
		if(document.forms.frmPWord.txtPWord.value != document.forms.frmPWord.txtConfirmPWord.value){
			alert('The passwords entered do not match!\nPlease re-enter your new Password.');
			document.forms.frmPWord.txtPWord.value = "";
			document.forms.frmPWord.txtConfirmPWord.value = "";
			document.frmPWord.txtPWord.focus();
			return;
		}

		document.forms.frmPWord.doWhat.value = 'savepword';
		document.forms.frmPWord.submit();
		return;	
	
	}	
	
	function ConEdHelp(sName){
		//var sID = obj.value;
		//alert(sName);
		var sContent = '<p class=helptitle>Entry Form Help</p>';
		switch (sName){
		
		case "txtTitle":
			sContent += '<p class=help>This is a required field!</p>'
			sContent += '<p class=help>Please enter the Name or Title of the course.</p>'
			sContent += '<p class=help>Maximum length allowed is 250 characters.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtSpeaker":
			sContent += '<p class=help>This is a required field!</p>'
			sContent += '<p class=help>Please enter the full name of the speaker(s).</p>'
			sContent += '<p class=help>Separate multiple speakers with commas.</p>'
			sContent += '<p class=help>Maximum length allowed is 350 characters.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtBio":
			sContent += '<p class=help>Please enter a short biography for the speaker.</p>'
			sContent += '<p class=help>Maximum length allowed is 5000 characters.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtStartDate":
			sContent += '<p class=help>The Start Date is required!</p>'
			sContent += '<p class=help>If the start and end dates the same you may leave the End Date field empy.</p>'
			sContent += '<p class=help>Dates must be entered in mm/dd/yyyy format.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtLocation":
			sContent += '<p class=help>The Location is required!</p>'
			sContent += '<p class=help>Please enter the location of the course.</p>'
			sContent += '<p class=help>Maximum length allowed is 250 characters.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtDFee":
			sContent += '<p class=help>Please enter the Dentist fee for this course.</p>'
			sContent += '<p class=help>DO NOT enter the "$" sign, numbers only!</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtAFee":
			sContent += '<p class=help>Please enter the Associate fee for this course.</p>'
			sContent += '<p class=help>DO NOT enter the "$" sign, numbers only!</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtHours":
			sContent += '<p class=help>Please enter the CE Credit Hours for this course.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		case "txtEndDisplay":
			sContent += '<p class=help>The End Display date is required!</p>'
			sContent += '<p class=help>This is the date that the course will be removed from the web display.</p>'
			sContent += '<p class=help>Dates must be entered in mm/dd/yyyy format.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		
		default:
			sContent += '<p class=help>No additional comments for this field.</p>'
			oDiv = document.getElementById("conedHelp");
			oDiv.innerHTML = sContent;
		break;
		}
		return;			
	}
	
	function CERegForm(nCEID) {
		window.open("ceregform.asp?id=" + nCEID, "Registration", "top=20px,left=50px,status=yes,location=no,toolbar=no,width=680,height=600,resizable=no,scrollbars=yes");
	}

	//validate the directory input form
	function validatedirAdmin(){
		if(!document.forms.frmDir.txtFName.value>''){
			alert('Please enter a \'First Name\'!');
			document.frmDir.txtFName.focus();
			return;
		}
		if(!document.forms.frmDir.txtLName.value>''){
			alert('Please enter a \'Last Name\'!');
			document.frmDir.txtLName.focus();
			return;
		}
		if(!document.forms.frmDir.txtPACity.value>''){
			alert('Please enter a \'City\'!');
			document.frmDir.txtPACity.focus();
			return;
		}
		if(!document.forms.frmDir.txtPAProv.value>''){
			alert('Please enter a \'Province\' date!');
			document.frmDir.txtPAProv.focus();
			return;
		}
		if(!document.forms.frmDir.txtPAPostal.value>''){
			alert('Please enter a \'Postal Code\'!');
			document.frmDir.txtPAPostal.focus();
			return;
		}
		document.forms.frmDir.MemberID.disabled=false;
		document.forms.frmDir.doWhat.value='save';
		document.forms.frmDir.submit();
		return;
	}
	
		//validate the continuing education input form
	function validateLogin(){
		if(!document.forms.frmLogin.txtUserName.value>''){
			alert('Please enter your \'User Name\'!');
			document.frmLogin.txtUserName.focus();
			return;
		}
		if(!document.forms.frmLogin.txtPWord.value>''){
			alert('Please enter your \'Password\'!');
			document.frmLogin.txtPWord.focus();
			return;
		}
		document.forms.frmLogin.doWhat.value='login';			
		document.forms.frmLogin.submit();
		return;
	}
	
	function validateAS(){
		if(!document.forms.frmAS.txtTitle.value>''){
			alert('Please enter a \'Title\'!');
			document.frmAS.txtTitle.focus();
			return;
		}
		if(!document.forms.frmAS.txtEndDisplay.value>''){
			alert('Please enter the \'End Display\' date!');
			document.frmAS.txtEndDisplay.focus();
			return;
		}
		document.forms.frmAS.doWhat.value='save';			
		document.forms.frmAS.submit();
		return;
	}
	
	function validateLoc(){
		if(!document.forms.frmLocEntry.txtLocation.value>''){
			alert('Please enter a \'Location Name\'!');
			document.frmLocEntry.txtLocation.focus();
			return;
		}
		if(!document.forms.frmLocEntry.txtAddress.value>''){
			alert('Please enter the \'Address\' date!');
			document.frmLocEntry.txtAddress.focus();
			return;
		}
		document.forms.frmLocEntry.doWhat.value='save';			
		document.forms.frmLocEntry.submit();
		return;
	}
	
	function validateSession(){
		if(!document.forms.frmSessionEntry.txtTopic.value>''){
			alert('Please enter a \'Topic\'!');
			document.frmSessionEntry.txtTopic.focus();
			return;
		}
		if(!document.forms.frmSessionEntry.txtCEHours.value>''){
			alert('Please enter the \'CE Hours\' date!');
			document.frmSessionEntry.txtCEHours.focus();
			return;
		}
		document.forms.frmSessionEntry.doWhat.value='save';			
		document.forms.frmSessionEntry.submit();
		return;
	}
	
	function validateSummary(){
		document.forms.frmSummaryEntry.doWhat.value='save';			
		document.forms.frmSummaryEntry.submit();
		return;
	}
	function validateActivity(){
		document.forms.frmActivityEntry.doWhat.value='save';			
		document.forms.frmActivityEntry.submit();
		return;
	}
	function validateGolf(){
		document.forms.frmGolfEntry.doWhat.value='save';			
		document.forms.frmGolfEntry.submit();
		return;
	}
	function validateRegistration(){
		document.forms.frmRegEntry.doWhat.value='save';			
		document.forms.frmRegEntry.submit();
		return;
	}
	function validateExhibitors(){
		document.forms.frmExhibitorEntry.doWhat.value='save';			
		document.forms.frmExhibitorEntry.submit();
		return;
	}

	function validateContent(){
		if(!document.forms.frmContent.txtArticle.value>''){
			alert('Please enter an \'Article\'!');
			document.frmContent.txtArticle.focus();
			return;
		}
		document.forms.frmContent.doWhat.value='save';			
		document.forms.frmContent.submit();
		return;
	}
	
	function validateSpeaker(){
		if(!document.forms.frmSpeaker.txtFName.value>''){
			alert('Please enter a \'First Name\'!');
			document.frmSpeaker.txtFName.focus();
			return;
		}
		if(!document.forms.frmSpeaker.txtLName.value>''){
			alert('Please enter a \'Last Name\'!');
			document.frmSpeaker.txtLName.focus();
			return;
		}
		document.forms.frmSpeaker.doWhat.value='save';			
		document.forms.frmSpeaker.submit();
		return;
	}


	function ASHelp(sName){
	
	
	}

//--Start
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
//slider's width
var swidth=158;
//slider's height
var sheight=150;
//slider's speed
var sspeed=2;

//messages: change to your own; use as many as you'd like; set up Hyperlinks to URLs as you normally do: <a target=... href="... URL ...">..message..</a>
var singletext=new Array()
singletext[0]='<p class=centercontent>This is a message</p>';
singletext[1]='<p class=centercontent>Use this for announcements</p>';
singletext[2]='<p class=centercontent>This is great!</p>';
singletext[3]='<p class=centercontent>This is another message</p>';

//if (singletext.length>1)
//	i=1;
//else
//	i=0;
	
var sText = '';
for(x=0;x<singletext.length;x++){
	sText += singletext[x]
}
//  End -->

function start(){
	if (document.all){
		ieslider1.style.top=sheight;
		iemarquee(ieslider1, sText);
	}
	else if (document.layers){
		document.ns4slider.document.ns4slider1.top=sheight;
		document.ns4slider.document.ns4slider1.visibility='show';
		ns4marquee(document.ns4slider.document.ns4slider1, sText);
	}
	else if (document.getElementById&&!document.all){
		document.getElementById('ns6slider1').style.top=sheight;
		ns6marquee(document.getElementById('ns6slider1'),sText);
	}
}
function iemarquee(whichdiv, sText){
	iediv=eval(whichdiv)
	if (iediv.style.pixelTop>0&&iediv.style.pixelTop<=sspeed){
		iediv.style.pixelTop=0;
		setTimeout("iemarquee(iediv, sText)",100);
	}
	if (iediv.style.pixelTop>=sheight*-1){
		iediv.style.pixelTop-=sspeed;
		setTimeout("iemarquee(iediv, sText)",100);
	}else{
		iediv.style.pixelTop=sheight;
		iediv.innerHTML=sText;
		//if (i==singletext.length-1)
		//	i=0;
		//else
		//	i++;
	}
}
function ns4marquee(whichlayer,sText){
	ns4layer=eval(whichlayer)
	if (ns4layer.top>0&&ns4layer.top<=sspeed){
		ns4layer.top=0;
		setTimeout("ns4marquee(ns4layer,sText)",100);
	}
	if (ns4layer.top>=sheight*-1){
		ns4layer.top-=sspeed;
		setTimeout("ns4marquee(ns4layer,sText)",100);
	}else{
		ns4layer.top=sheight;
		ns4layer.document.write(sText);
		ns4layer.document.close();
		//if (i==singletext.length-1)
		//	i=0;
		//else
		//	i++;
	}
}
function ns6marquee(whichdiv, sText){
	ns6div=eval(whichdiv);
	if (parseInt(ns6div.style.top)>0&&parseInt(ns6div.style.top)<=sspeed){
		ns6div.style.top=0;
		setTimeout("ns6marquee(ns6div,sText)",100);
	}
	if (parseInt(ns6div.style.top)>=sheight*-1){
		ns6div.style.top=parseInt(ns6div.style.top)-sspeed;
		setTimeout("ns6marquee(ns6div,sText)",100);
	}
	else{
		ns6div.style.top=sheight;
		ns6div.innerHTML=sText;
		//if (i==singletext.length-1)
		//	i=0;
		//else
		//	i++;
	}
}


//-->end

	function winImage(nID){	
		window.open("image.asp?id=" + nID, "Images", "top=150px,left=325px,status=no,location=no,toolbar=no,width=400,height=300,resizable=no,scrollbars=no");
	}
	//opens a new window for editing/adding a new location
	function winLocation(nASID, nLocationID){	
		window.open("location.asp?id=" + nASID + '&loc=' + nLocationID, "Location", "top=20px,left=225px,status=yes,location=yes,toolbar=no,width=600,height=500,resizable=no,scrollbars=yes");
	}
	//opens a new window for editing/adding a new session
	function winSession(nASID, nID){	
		window.open("assessions.asp?id=" + nASID + '&ses=' + nID, "Location", "top=20px,left=225px,status=yes,location=yes,toolbar=no,width=700,height=575,resizable=no,scrollbars=yes");
	}
	function winRegistration(nASID, nID){	
		window.open("asreginfo.asp?id=" + nASID + '&sum=' + nID, "Registration", "top=20px,left=225px,status=yes,location=yes,toolbar=no,width=600,height=500,resizable=no,scrollbars=yes");
	}
	function winActivity(nASID, nID){	
		window.open("asactivity.asp?id=" + nASID + '&loc=' + nID, "Location", "top=20px,left=225px,status=yes,location=yes,toolbar=no,width=600,height=500,resizable=no,scrollbars=yes");
	}
	function winSummary(nASID, nID){	
		window.open("assummary.asp?id=" + nASID + '&sum=' + nID, "Summary", "top=20px,left=225px,status=yes,location=yes,toolbar=no,width=600,height=500,resizable=no,scrollbars=yes");
	}

	