

<!-- Idea by:  Nic Wolfe (Nic@TimelapseProductions.com) -->
<!-- Web URL:  http://fineline.xs.mw -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin

FormName  = "form1"  //Name of the form
CheckName = "check" //Name of the checkboxes (without 1,2,3...10,11,12...)

var Condition=new Array(
'a!=""', //check not empty field - Must be filled
'a.length>7&&!(a.split("/")[0]*1>12)&&!(a.split("/")[1]*1>31)&&!(a.split("/")[2]*1<1900)' //Must be longer than 7 characters, first (two) digit(s) NOT greater than 12, second (two) digit(s) NOT greater than 31 and last 4 greater than 1900
);



function dochecktext(Field) {
eval("a=document." + FormName + "." + Field + ".value");
if (eval(Condition[0])) eval("document." + FormName + "." + CheckName + Field + ".checked=true");
else eval("document." + FormName + "." + CheckName + Field + ".checked=false");
}


function docheckmail(Name) {

eval("str=document." + FormName + "." + Name + ".value");

var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;

if (filter.test(str))
{
eval("document." + FormName + "." + CheckName + Name + ".checked=true");
}
else eval("document." + FormName + "." + CheckName + Name + ".checked=false");
}


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=1,statusbar=1,menubar=1,resizable=0,width=550,height=625,left = 301,top = 119.5');");

}


function clearText(thefield){

if (thefield.defaultValue==thefield.value)
thefield.value = ""
} 


// End -->

