/* =============================================================================== */ 
/*  Name: fullscreen                                                               */
/*  Function: this is going to cause IE to go into a kind of fullscreen mode       */
/*  Call: fullscreen()                                                             */
/*  Supported Browsers: IE5.x,IE6.x                                                */
/*  Author: Dimitris Anoyatis                                                      */
/*  E-Mail(s):dosida@hotmail.com,dosida@softhome.net                               */
/*  Version: 1.0.3                                                                 */
/*  Status: Freeware (Actually Mentionware; just mention me on your webpage)       */
/*  Requirements: Just keep this with the script please... Not 2 much 2 ask is it? */
/*                                                                                 */
/*                   Hope you find this script useful :)                           */
/* =============================================================================== */
function fullscreen(){
	alert("To enter Fullscreen mode, please press F11.  To exit Fullscreen press F11 again")
//	var hdiff,wid,hit;
//	if(window.screenTop)
//	{
//	window.open("viewlesson.asp?LessonID=<%=request("LessonID")%>","LessonPage", "status=yes,toolbar=no,menubar=no,location=no",1);
//	}
//	else
//	{
//	wid=screen.width+13;
//	hit=screen.height+26;
//	window.open("viewlesson.asp?LessonID=<%=request("LessonID")%>","thewindow2","fullscreen=1,height="+hit+",width="+wid,1)	
//	}
}

function restore(){
	alert("To enter Fullscreen mode, please press F11.  To exit Fullscreen press F11 again")
//	if(window.screenTop)
//	{
//	window.open("viewlesson.asp?LessonID=<%=request("LessonID")%>","LessonPage", "status=yes,toolbar=yes,menubar=yes,location=yes",1);
//	}
//	else
//	{
//	window.close();
//	}
}

function SendMessage()
	{	
	var MessLoc;
	MessLoc = document.getElementById('f13').options[document.getElementById('f13').selectedIndex].value;	
	document.location='../Messages/Compose.asp?UserID='+MessLoc;
	}
function SendMessage2()
	{	
	var MessLoc;
	MessLoc = document.getElementById('f13').value;	
	document.location='../Messages/Compose.asp?UserID='+MessLoc;
	}	
function PreviewPlan(address, type)
	{	
	//alert(document.getElementById('f3').options[0] + "-" + document.getElementById('f3').selectedIndex)
	if(document.getElementById('f3').options[0] && document.getElementById('f3').selectedIndex != -1)
		{
		var MessLoc;
		if(type=='doc')
			{
			MessLoc = document.getElementById('f3').options[document.getElementById('f3').selectedIndex].value;	
			document.getElementById('DocID').value=MessLoc;
			tempForm.action=address;
			tempForm.target="_blank";
			tempForm.submit();	
			}
		else
			{
			MessLoc = document.getElementById('f3').options[document.getElementById('f3').selectedIndex].innerHTML;	
			window.open(address + MessLoc);
			}
		}
	}		