// verify that atleast one check box checked in the grid
function CheckAtleastOneisChecked(checkBox) { var frm = document.forms[0]; var flag = false; var cnt = 0; for (var i = 0; i < document.forms[0].length; i++) { if (document.forms[0].elements[i].id.indexOf(checkBox) != -1) { if (document.forms[0].elements[i].checked) { flag = true cnt = cnt + 1; } } } if (flag == false) { alert('Atleast one check box should be checked.') return false }
// Javascript for verifying that atmost single record is selected in the grid
function ChecksingleSelected(checkBox) {
var frm = document.forms[0];
var flag = false;
var cnt = 0;
for (var i = 0; i < document.forms[0].length; i++) {
if (document.forms[0].elements[i].id.indexOf(checkBox) != -1) {
if (document.forms[0].elements[i].checked) {
flag = true
cnt = cnt + 1;
}
}
}
if (cnt > 1) {
alert('Only record can be seleccte/checked.');
return false;
}
About Finnish flag days
A free internet calendar subscription, which contains Finnish flag days (in Finnish). The calendar updates automatically, so it is always up-to-date. IMPORTANT! Please se your iCal to update weekly. It will no do this by default.
The optparse-simple gem uses a Polyrex document to fetch, and validate command-line arguments into a simple hash.
*installation*
sudo gem1.9.1 install optparse-simple
Successfully installed optparse-simple-0.2.0
1 gem installed
Installing ri documentation for optparse-simple-0.2.0...
Updating class cache with 3148 classes...
Installing RDoc documentation for optparse-simple-0.2.0...