//Select All functionfunction CheckAll(formname) {    for (i=0,n=formname.elements.length;i<n;i++) {		if (formname.elements[i].checked == true)			formname.elements[i].checked = false;		else			formname.elements[i].checked = true;	}}function openwindow(url) {window.open(url,"sl","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=400");}function openwindow1(url) {window.open(url,"sl","toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=400");}function openwindow2(url, nme) {window.open(url,nme,"toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width=600,height=400");}function openwindow4(url, target, h, w) {	opts = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=0,width=" + w + ",height=" + h;	window.open(url,target,opts);}function openwindow5(url, nme,length,height,top,left) {window.open(url,nme,"top="+top+",left="+left+",screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+length+",height="+height);}//modify by yss on 12/12/02 11.44am//add top, left,screenX, and screenY parameters//delete location=nofunction openwindow3(url, nme,length,height) {window.open(url,nme,"top=0,left=0,screenX=0,screenY=0,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width="+length+",height="+height);}function isEmail(e) {	if (e=="") {return false;}	a = e.split("@");	if (a.length != 2) {return false;}	if (a[0].length == 0) {return false;}	b = a[1].split(".");	if (b.length < 2) {return false;}	for (var i=0; i<b.length; i++) {		if (b[i].length == 0) {return false;}	}	return true;}function isNumber(inputStr) {	for (var i = 0; i < inputStr.length; i++) {		var oneChar = inputStr.substring(i, i + 1);		if ((oneChar < "0" || oneChar > "9") && oneChar != ".") {return false;}	}	return true;}// Want d/m/yy or d/m/ccyyfunction isDate(sDate) {  var aiDays = new Array(31,28,31,30,31,30,31,31,30,31,30,31);  var iDay;  var iMonth;  var iYear;  if (sDate.substring(1, 2) == '/') {    iDay = parseInt(sDate.substring(0, 1), 10);    if (sDate.substring(3, 4) == '/') {      iMonth = parseInt(sDate.substring(2, 3), 10);      iYear = parseInt(sDate.substring(4, 8), 10);    }    else {      iMonth = parseInt(sDate.substring(2, 4), 10);      iYear = parseInt(sDate.substring(5, 9), 10);    }  }  else {    iDay = parseInt(sDate.substring(0, 2), 10);    if (sDate.substring(4, 5) == '/') {      iMonth = parseInt(sDate.substring(3, 4), 10);      iYear = parseInt(sDate.substring(5, 9), 10);    }    else {      iMonth = parseInt(sDate.substring(3, 5), 10);      iYear = parseInt(sDate.substring(6, 10), 10);    }  }    if (iDay < 1 || iMonth < 1 || iYear < 0)    return 0;      if (iMonth > 12)    return 0;  iYear += iYear < 100 ? iYear > 10 ? 1900 : 2000 : 0;  aiDays[1] += (iYear % 4 ? 0 : iYear % 100 ? 1 : iYear % 400 ?    iYear == 200 ? 1 : 0 : 1);  return (iDay <= aiDays[iMonth - 1]);}
