image1 = new Image();
image1.src = "images/i1.gif";
image2 = new Image();
image2.src = "images/i1h.gif";
image3 = new Image();
image3.src = "images/i8.gif";
image4 = new Image();
image4.src = "images/i8h.gif";

function move_in(img_name,img_src) {
document[img_name].src=img_src;
}

function move_out(img_name,img_src) {
document[img_name].src=img_src;
}

function pdate()
{
var t = new Date();
var d = t.getDate();
var m = t.getMonth();
var y = t.getFullYear();
var sup = "" 
if (d == 1 || d == 21 || d ==31)
   {
   sup = "st";
   }
if (d == 2 || d == 22)
   {
   sup = "nd";
   }
if (d == 3 || d == 23)
   {
   sup = "rd";
   }

var month = new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");

m = month[m];

/* d = d + "<SUP>" + sup + "</SUP>" + " " + m + " " + y; */

d = d + sup + " " + m + " " + y;

document.write('<SPAN CLASS="small">&nbsp;&nbsp;&nbsp;' + d + "</SPAN>");
}

function testimonials()
	{
	/* Array t holds the testimonials */
	var t = new Array(); 
	/* Array a holds the author name */
	var a = new Array();

	t[0] = "We considered many options, but it was clear from the beginning that Hezel Associates understood our vision for Habitat University.";
	a[0] = "David Williams, COO<BR>Habitat for Humanity International";
	t[1] = "Hezel has played a key role in helping us determine the demographics of our audience and identify new trends in distance education.";
	a[1] = "Peggy Kinder, Director of DLRN";
	t[2] = "Hezel's understanding of technology transfer helped the university create the intellectual property policy aligning our internal capabilities with future entrepreneurial activities.";
	a[2] = "Ilene Heyward Garner, UVI";
	t[3] = "Hezel understands how to use research to link teacher practice with student outcomes, allowing us to meet NCLB requirements while supporting our own efforts toward self-sustainability.";
	a[3] = "Mary Kadera, PBS TeacherLine";
	t[4] = "Hezel Associates became our partners, helping us identify best practices and improve the quality of programs and services for our subscribers.";
	a[4] = "William F. White, PhD<BR>Colonial Williamsburg Foundation";
	t[5] = "Hezel designed an excellent evaluation plan for our new product - and at just the right time. Their recommendations will inform our marketing efforts and guide future product development.";
	a[5] = "Carol Guziak, McDougall Littell";
	t[6] = "Hezel designed and articulated an excellent game plan for the future of Arizona Regents University.  Their long-term insight will be an integral part of the redesign of Arizona's university system.";
	a[6] = "Robert Bulla, AZ Board of Regents";
	t[7] = "Hezel Associates' comprehensive evaluation of our External Review Team program resulted in strategies and processes to insure all underperforming schools benefit from the ERT program." ;
	a[7] = "Jo Anne Anderson, Ph.D., South Carolina Education Oversight Committee";
	t[8] = "Few things in life are more valuable and more important than learning.  Our lives as civilized human beings depends on education. Education, broadly constituted, is fundamental to our building a truly effective democracy.  Our company is committed to helping to develop a learning society." ;
	a[8] = "Richard T. Hezel, Ph.D., President <BR> Hezel Associates";
	t[9] = "In my 14 years of teaching this is the best communication I have ever had on a project with the leaders.  You guys are great with sending frequent messages and following up on my questions.  Thanks!" ;
	a[9] = "A Participant in the VITAL Study <BR>Rochester City School District";
	t[10] = "We’ve found the help that your organization has provided to be very useful as we work to develop and implement a really good marketing plan for our department." ;
	a[10] = "Sylvia Stenander, Assistant Dean for CE<br>Jamestown Community College";
	
/*
	t[7] = "\"Our working relationship with Hezel Associates is everything we could ask for.  Responsive to our needs, the relationship is helping our Vermont and Adi-rondack schools move to the next level.\"";
	a[7] = "Rick Dalton, Director<BR>Adirondack/Vermont Excellent Schools";
*/

	total_no = t.length;
	var r = Math.round((total_no - 1)*Math.random());
	testimonial_to_print = "<SPAN CLASS=\"smallwhite\">\"" + t[r] + "\"<BR> - <B><I>" + a[r] + "</I></B></SPAN>";
	document.write(testimonial_to_print);
	}

function testimonials2()
	{
	/* Array t holds the testimonials */
	var t = new Array(); 
	/* Array a holds the author name */
	var a = new Array();

	t[0] = "At first using state test data was hard.  It took forever to figure out what was going on.  But now that I use data all the time, it actually makes my teaching much easier.  I know who needs to work on what so I don’t spend all that time teaching things the kids already know.";
	a[0] = "Teacher<BR>WNET Project Evaluation";
	
	t[1] = "Reports of student performance need to be highly accessible, arrive in the district sooner, and be accompanied by appropriate training.   'If the data is in a concise format that is usable, we will use it—random printouts will just sit on a shelf.'";
	a[1] = "Teacher<BR>Ohio Evaluation Project";
	t[2] = "1) We need to use our own data during the training, and 2) We have to keep getting it (training); it is too overwhelming all at once.";
	a[2] = "Teachers suggest two key areas on which<BR>professional development should focus";
	t[3] = "We receive the data too long after, and with new tests, we understand the results will come even later; at that point it’s almost meaningless.  If data was returned far quicker, the tests would seem less cumbersome because there would be a clear value.";
	a[3] = "One teacher sums up her colleagues’ view of student performance reports";
	t[4] = "Exposure is key…if teachers have to use their own time to explore something new, they probably won’t.";
	a[4] = "One teacher cautions";
	t[5] = "Teachers have more reasons to talk with each other about teaching and less about non-teaching.";
	a[5] = "One principal describes the benefits of new state testing agenda";
	t[6] = "Most [teachers] were not trained as statisticians.  A packet full of stats is overwhelming.";
	a[6] = "A Superintendent describes how state test data collection and analysis is intimidating to teachers and staff in general";
	
	

	total_no = t.length;
	var r = Math.round((total_no - 1)*Math.random());
	testimonial2_to_print = "<SPAN CLASS=\"smallwhite\">\"" + t[r] + "\"<BR> - <B><I>" + a[r] + "</I></B></SPAN>";
	document.write(testimonial2_to_print);
	}

function random_mainimage()
	{
	var i_n = new Array(); 
	var m_n = new Array();

	i_n[0] = 1;
	i_n[1] = 2;
	i_n[2] = 3;

	m_n[0] = "1";
	m_n[1] = "2";
	m_n[2] = "3";

	total_no2 = i_n.length;
	var r_image = Math.round((total_no2 - 1)*Math.random());
	image_code = "<TD WIDTH=\"359\" ROWSPAN=\"3\"><IMG SRC=\"images/flash" +  i_n[r_image] + ".jpg\" WIDTH=\"359\" HEIGHT=\"359\" BORDER=\"0\"></TD><TD WIDTH=\"188\"><IMG SRC=\"images/main_top" + m_n[r_image] +".jpg\" WIDTH=\"188\" HEIGHT=\"98\" BORDER=\"0\"></TD>";
	document.write(image_code);
	}

function val_form1()
	{
	err = 0;
	msg = "";
	reExp1 = new RegExp("\\w{4,}");
	reExp3 = new RegExp("\\w{8,}");
	if (!(reExp1.test(document.loginform.part_username.value)))
		{
		err = 1;
		msg = "Username should be atleast 4 characters\n";
		}
	if (!(reExp3.test(document.loginform.part_password.value)))
		{
		err = 1;
		msg = msg + "Password should be atleast 8 characters\n";
		}
	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}

function val_form2()
	{
	err = 0;
	msg = "";
	reExp2 = new RegExp("[\\w\_-]+@[\\w\_-]+\\.[\\w\_-]+");
	if (!(reExp2.test(document.newsletterform.emailaddress.value)))
		{
		err = 1;
		msg = msg + "Please enter your email address";
		}
	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}

function val_form3()
	{
	err = 0;
	msg = "";
	if (document.searchform.keyword.value == "")
		{
		err = 1;
		msg = msg + "Please enter a search query";
		}
	if (err)
		{
		alert(msg);
		return false;
		}
	return true;
	}

