	// Global vars 
	
	// fn_SetAction
	//	Function Description : 
	//		This function will set the action(hidden) variable 
	//
	function fn_SetAction(strAction)
	{
		// Set the value 
		document.frmAction.txtAction.value = strAction;
	}
	// Function fn_SetAction END 



	// fn_GoToAction
	//	Function Description : 
	//		This will submit the form 
	//	
	function fn_GoToAction(strAction)
	{
		//document.frmAction.action = "index.php";
		if(document.frmAction.txtAction.value == "")
		{
			fn_SetAction(strAction);
		}

		document.frmAction.submit();
	}
	// Function fn_GoToAction END 



	// fn_GoToAction
	//	Function Description : 
	//		This will submit the form 
	//	
	function fn_Menu(strAction)
	{
		// 
		fn_GoToAction(strAction);
	}
	// Function fn_GoToAction END 



	// fn_GetHtmlObject 
	// Function Description:
	//		Function Return the object of html element
	//		Takes One Argument
	//		First -- Id of Html Element
	//
	function fn_GetHtmlObject(L_strHtmlElementId)
	{
		// Get the object 
		var objName = document.getElementById(L_strHtmlElementId);
		
		// Return the object 
		return objName;
	}
	// Function fn_GetHtmlObject END 



	// fn_LTrim
	// Function Description:
	//		Trim the string from the left of the string 
	//	
	function fn_LTrim(value) 
	{
		// Set the pattern 
		var re = /\s*((\S+\s*)*)/;
		
		// Return the replaced value 
		return value.replace(re, "$1");
	}
	// Function fn_LTrim END 

	// fn_RTrim 
	// Function Description:	
	//		Removes ending whitespaces
	//
	function fn_RTrim(value) 
	{
		// Set the pattern 
		var re = /((\s*\S+)*)\s*/;
		
		// Return the replaced value 
		return value.replace(re, "$1");
	}
	// Function fn_RTrim END 



	// fn_Trim 
	// Function Description:	
	//		Removes leading and ending whitespaces
	//
	function fn_Trim(value) 
	{
		return fn_LTrim(fn_RTrim(value));
	}
	// Function fn_Trim END 



	// fn_EMailCheck 
	// Function Description:
	//		This function validates the email 
	//
	function fn_EMailCheck(str, name) 
	{
		var at = "@";
		var dot = ".";
		var lat = str.indexOf(at);
		var lstr = str.length;
		var ldot = str.indexOf(dot);

		if(str.indexOf(at) == -1)
		{
			alert("Invalid " + name);
			return false;
		}

		if(str.indexOf(at) == -1 || str.indexOf(at) == 0 || str.indexOf(at) == lstr)
		{
			alert("Invalid " + name);
			return false;
		}

		if(str.indexOf(dot) == -1 || str.indexOf(dot) == 0 || str.indexOf(dot) == lstr)
		{
			alert("Invalid " + name);
			return false;
		}

		if(str.indexOf(at,(lat + 1)) != -1)
		{
			alert("Invalid " + name);
			return false;
		}

		if(str.substring(lat-1, lat) == dot || str.substring(lat + 1, lat + 2) == dot)
		{
			alert("Invalid " + name);
			return false;
		}

		if (str.indexOf(dot,(lat + 2)) == -1)
		{
			alert("Invalid " + name);
			return false;
		}

		if (str.indexOf(" ") != -1)
		{
			alert("Invalid " + name);
			return false;
		}

		return true;
	}
	// Function fn_EMailCheck END 


	// This function is used for page numbers 
	function fn_PageNumbers(nPageNo)
	{
		document.getElementById("txtPageNo").value = nPageNo;

		fn_GoToAction("ACTION_0");
	}
	// END 


	// 
	function fn_Login(strAction)
	{
		fn_GoToAction(strAction);
	}

	//Disable right mouse click Script
	//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
	//For full source code, visit http://www.dynamicdrive.com

	var message="Function Disabled"; //edit this message to say what you want
	function clickIE4(){
		if (event.button==2){
		 //alert(message);
		 return false;
		}
	}

	function clickNS4(e){
		if (document.layers || document.getElementById && !document.all){
			if (e.which==2||e.which==3){
						  //alert(message);
						  return false;
			}
		}
	}

	if (document.layers){
		 document.captureEvents(Event.MOUSEDOWN);
		 document.onmousedown=clickNS4;
	}
	else if (document.all&&!document.getElementById){
		document.onmousedown=clickIE4;
	}

	//document.oncontextmenu=new Function("alert(message);return false;")
	document.oncontextmenu=new Function("return false;")