// JavaScript Document


function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
// quick procemethods for simple div toggling
// by Joe Melberg - Techism.com
// uses script.acul.us and dollar functions
var jm_fastfade_current ="image_space";




function jm_fastfade(to) {
			oFrom = $(jm_fastfade_current);
			oTo = $(to);
			//alert ("from " + oFrom + "oTo " + oTo);
			oTo.style.display = "block";
			new Effect.Parallel([new Effect.BlindUp(oFrom ,{sync:true}),new Effect.BlindDown(oTo,{sync:true})]);
																							 
			
			jm_fastfade_current = oTo;
}



function emailvalidation(entered, alertbox)
{
// E-mail Validation by Henrik Petersen / NetKontoret
// Explained at www.echoecho.com/jsforms.htm
// Please do not remove this line and the two lines above.
with (entered)
{
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
lastpos=value.length-1;
if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2)
{if (alertbox) {alert(alertbox);} return false;}
else {return true;}
}
}
function formvalidation(thisform)
{
// This function checks the entire form before it is submitted
// Note: This function needs to be customized to fit your form
with (thisform)
{
if (emailvalidation(re_from,"In order to send this form please provide the email address")==false) {re_from.focus(); return false;};
if (valuevalidation(Value,0,5,"Value MUST be in the range 0-5")==false) {Value.focus(); return false;};
if (digitvalidation(Digits,3,4,"You MUST enter 3 or 4 integer digits","I")==false) {Digits.focus();

return false;};
if (emptyvalidation(Whatever,"The textfield is empty")==false) {Whatever.focus(); return false;};
}
}