
<!-- Begin

 /// is_blank checks for blank strings
 /// takes 3 args - String, Field Name and Minimum Length of Field
 /// Returns true if string is blank or less than minimum length
 
function is_blank(Str, Name, Num)
{
	
	if(Str=="")
	{
		alert(Name + " cannot be blank")
		return true
	}
	
	if(Num)
	{
		if(Str.length<Num)
		{
			alert(Name + " should have at least " + Num + " characters")
			return true
		}
	}
	return false
}



 /// is_number checks whether a string is a valid number
 /// takes 3 args - String, Field Name and Minimum Length of Field
 /// Returns true if string is a number else false
 
function is_number(Str, Name, Num)
{
	if(isNaN(Str))
	{
		alert(Name + " should have only digits")
		return false
	}
	
	if(Num)
	{
		if(Str.length<Num)
		{
			alert(Name + " should have at least " + Num + " digits")
			return false
		}
	}
	return true
}

 /// is_number checks whether a string has special characters
 /// takes 3 args - String, Field Name 
 /// Returns true if string is a valid else false
 
function str_check (Str, Name) 
{
	var str_pat = /['"\\\[\]()]/

	if (str_pat.test(Str))
	{
		alert(Name + " cannot contain characters - " + "' \" \\ [ ] ( )")
		return false
	}
	return true
}


<!--
// CREDITS:
// No Right Click Script without Ugly Alert-Box
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com/fast/index.html
// info@24fun.com
// 10/12/2000

// IMPORTANT: 
// If you add this script to a script-library or a script-archive 
// you have to insert a link to http://www.24fun.com/fast/index.html 
// right into the webpage where the script will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com/fast/index.html, open category 'utility' and 
// download the script-file with step-by-step instructions for easy configuration

function right(e) {
	if (document.layers && (e.which==3 || e.which==2))  {
		window.status="NO RIGHT CLICK ALLOWED!"
		return false;
	}
	else if (document.all && (event.button==2 || event.button==3)) {
		window.status="NO RIGHT CLICK ALLOWED!"
		openclosewindow()
		return false;
	}
}

function openclosewindow() {
	var windownews=window.open("", "", "status=no,location=no,toolbar=no,menubar=no,resizable=no,scrollbars=no,width=50,height=50,top=20000,left=200");
	windownews.close()
}
if (document.all) {
	document.onmouseup=right;
	window.onmouseup=right;
}
if (document.layers) {
	document.captureEvents(Event.MOUSEDOWN);
	document.onmousedown=right;
}

// End --> 