function SplitDate() {
var sd = document.MForm.mydate3.value.split("\/");
document.MForm.imonth.value = sd[0];
document.MForm.iday.value = sd[1];
document.MForm.iyear.value = sd[2];
}

function SplitDate2() {
var sd = document.MForm.enddate3.value.split("\/");
document.MForm.iemonth.value = sd[0];
document.MForm.ieday.value = sd[1];
document.MForm.ieyear.value = sd[2];
}
<!--
/****************************************************
     AUTHOR: WWW.CGISCRIPT.NET, LLC
     URL: http://www.cgiscript.net
     Use the code for FREE but leave this message intact.
     Download your FREE CGI/Perl Scripts today!
     ( http://www.cgiscript.net/scripts.htm )
****************************************************/
var win=null;
function NewWindow(mypage,myname,w,h,pos,infocus){
if(pos=="random"){myleft=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;mytop=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){myleft=(screen.width)?(screen.width-w)/2:100;mytop=(screen.height)?(screen.height-h)/2:100;}
else if((pos!='center' && pos!="random") || pos==null){myleft=0;mytop=20}
settings="width=" + w + ",height=" + h + ",top=" + mytop + ",left=" + myleft + ",scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=yes";win=window.open(mypage,myname,settings);
win.focus();}
// -->

var timer = null

function stop()
{
clearTimeout(timer)
}

function todayhere()
{var d=new Date()
var weekday=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday")
var monthname=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")
var ourdate =  weekday[d.getDay()]
ourdate = ourdate + " " + "<br>" + d.getDate() + " " + monthname[d.getMonth()] + " " + d.getFullYear()
document.all['RunningDate'].innerHTML = ourdate
}

function Submitter()
{
	// check validity of user input, then submit
	var bErr = false;
	var sMess = '';
	var sBno = new String(document.FBookID.strBookNo.value)
	var nLen = sBno.length;
	if (nLen == 0 || nLen>4){bErr = true; sMess = 'You must supply a valid Number';}
	
	if (bErr)
	{
		window.alert(sMess);
		return;
	}
	if (nLen<4)
	{
		for (var i=0; i<4-nLen; i++)
		{
			sBno = '0' + sBno;
		}
		document.FBookID.strBookNo.value = sBno;
	}
	document.FBookID.submit();
}

function start()
{

var time = new Date()
var hours = time.getHours()
var minutes = time.getMinutes()
minutes=((minutes < 10) ? "0" : "") + minutes
var seconds = time.getSeconds()
seconds=((seconds < 10) ? "0" : "") + seconds
var clock = hours + ":" + minutes + ":" + seconds
//document.forms[0].display.value = clock

document.all['RunningClock'].innerHTML = clock
timer = setTimeout("start()",1000)
}
