// JavaScript Document
var color='#ffffa0';
var Rcolor='#F5F5F5';
var dtCh= "-";
var minYear=1900;
var maxYear=2100;
var rValue; 
var xmlHttp;
var myObject;
var File_Path;
var AmountFieldLength = 0;

function State_Tr(ID ,Country)
{
	var Value = document.getElementById(Country).value;
	if (Value == "US")
	document.getElementById(ID).style.display = '';
	else
	document.getElementById(ID).style.display = 'none';
}

function Display(Id)
{
	var valueField =document.getElementById(Id).value;
	if (valueField == "Cash")
	{
		document.getElementById("CashType1").style.display = '';
		document.getElementById("CashType2").style.display = '';
		
		document.getElementById("ChqueType1").style.display = 'none';
		document.getElementById("ChqueType2").style.display = 'none';
		document.getElementById("ChqueType3").style.display = 'none';
		
		document.getElementById("BankTransferType1").style.display = 'none';
		document.getElementById("BankTransferType2").style.display = 'none';
		document.getElementById("BankTransferType3").style.display = 'none';
		document.getElementById("BankTransferType4").style.display = 'none';
	}
	
	if (valueField == "Chque")
	{
		document.getElementById("CashType1").style.display = 'none';
		document.getElementById("CashType2").style.display = 'none';
		
		document.getElementById("ChqueType1").style.display = '';
		document.getElementById("ChqueType2").style.display = '';
		document.getElementById("ChqueType3").style.display = '';
		
		document.getElementById("BankTransferType1").style.display = 'none';
		document.getElementById("BankTransferType2").style.display = 'none';
		document.getElementById("BankTransferType3").style.display = 'none';
		document.getElementById("BankTransferType4").style.display = 'none';
	}
	
	if (valueField == "Bank_Transfer")
	{
		document.getElementById("CashType1").style.display = 'none';
		document.getElementById("CashType2").style.display = 'none';
		
		document.getElementById("ChqueType1").style.display = 'none';
		document.getElementById("ChqueType2").style.display = 'none';
		document.getElementById("ChqueType3").style.display = 'none';
		
		document.getElementById("BankTransferType1").style.display = '';
		document.getElementById("BankTransferType2").style.display = '';
		document.getElementById("BankTransferType3").style.display = '';
		document.getElementById("BankTransferType4").style.display = '';
	}
	
	if (valueField == "")
	{
		document.getElementById("CashType1").style.display = 'none';
		document.getElementById("CashType2").style.display = 'none';
		
		document.getElementById("ChqueType1").style.display = 'none';
		document.getElementById("ChqueType2").style.display = 'none';
		document.getElementById("ChqueType3").style.display = 'none';
		
		document.getElementById("BankTransferType1").style.display = 'none';
		document.getElementById("BankTransferType2").style.display = 'none';
		document.getElementById("BankTransferType3").style.display = 'none';
		document.getElementById("BankTransferType4").style.display = 'none';
	} 
	
}

function GetXmlHttpObject()
{
var xmlHttp=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttp=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
    xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttp;
}

function submitForm(myform)
{
	document.getElementById(myform).submit();
}

function SubmitForm2()
{
	document.FRM.submit();
}

function PaymentsTotal(val,F_Id)
{	
	var Total_Value = document.getElementById(F_Id).value;
	if (Total_Value < val)
	{
		alert("Payments cannot be less than "+val);
		return false;
	}
	if (Total_Value > val)
	{
		alert("Payments cannot be more than "+val);
		return false;
	}
	if (Total_Value == val)
	{
		return true;
	}
}	

function isProper(Id) {
var string_len = document.getElementById(Id).value.length;
var string = document.getElementById(Id).value;
var iChars = "*|,\":<>[]{}`\';()@&$#%";

	for (var t = 0; t < string_len; t++)
	{
		if (iChars.indexOf(string.charAt(t)) != -1)
		{
			return false;
		}
	}

} 

function IntegerValue(s){
	for (stc = 0; stc <= s.length; stc++)
	s = s.replace(" ","");
		
	if(isNaN(s))
	{
		return false;
    }
	else
	{
	return true;	
	}
}

function isInteger(s){
	var w;
    for (w = 0; w < s.length; w++){   
        var c = s.charAt(i);
        if (((c < "0") || (c > "9"))) return false;
    }
    return true;
}

function stripCharsInBag(s, bag){
	var i;
    var returnString = "";
    for (q = 0; q < s.length; q++){   
        var c = s.charAt(i);
        if (bag.indexOf(c) == -1) returnString += c;
    }
    return returnString;
}

function daysInFebruary (year){
    return (((year % 4 == 0) && ( (!(year % 100 == 0)) || (year % 400 == 0))) ? 29 : 28 );
}
function DaysArray(n) {
	for (var a = 1; a <= n; a++) {
		this[a] = 31
		if (a==4 || a==6 || a==9 || a==11) {this[a] = 30}
		if (a==2) {this[a] = 29}
   } 
   return this
}

function isDate(dtStr){
	var daysInMonth = DaysArray(12);
	var pos1=dtStr.indexOf(dtCh);
	var pos2=dtStr.indexOf(dtCh,pos1+1);
	var strMonth=dtStr.substring(0,pos1);
	var strDay=dtStr.substring(pos1+1,pos2);
	var strYear=dtStr.substring(pos2+1);
	strYr=strYear;
	if (strDay.charAt(0)=="0" && strDay.length>1) strDay=strDay.substring(1)
	if (strMonth.charAt(0)=="0" && strMonth.length>1) strMonth=strMonth.substring(1)
	for (var i = 1; i <= 3; i++) {
		if (strYr.charAt(0)=="0" && strYr.length>1) strYr=strYr.substring(1)
	}
	month=parseInt(strMonth)
	day=parseInt(strDay)
	year=parseInt(strYr)
	if (pos1==-1 || pos2==-1){
		alert("The date format should be : mm-dd-yyyy")
		return false
	}
	if (strDay.length<1 || day<1 || day>31 || (month==2 && day>daysInFebruary(year)) || day > daysInMonth[month]){
		alert("Please enter a valid day")
		return false
	}
	if (strMonth.length<1 || month<1 || month>12){
		alert("Please enter a valid month")
		return false
	}
	if (strYear.length != 4 || year==0 || year<minYear || year>maxYear){
		alert("Please enter a valid 4 digit year between "+minYear+" and "+maxYear)
		return false
	}
/*	if (dtStr.indexOf(dtCh,pos2+1)!=-1 || isInteger(stripCharsInBag(dtStr, dtCh))==false){
		alert("Please enter a valid date")
		return false
	}*/
return true
}

function checkfile(Id)
{
	//File_Path = document.getElementById(Id).value;
	/*myObject = GetScriptObject();
	if (myObject == null)
	{
		  alert ("Your browser does not support AJAX!");
		  return;
	}
	else
	{
		alert("Support ");	
	}*/
	
	//myObject = new ActiveXObject("Scripting.FileSystemObject");
	/*if(myObject.FileExists(File_Path))
	{
	   //return true;
	   alert("Yes");
	} else {
	   //return false;
	   alert("No");
	}*/
}

function Phone_Format(Id, Length, Text)
{
	var M_Value = document.getElementById(Id).value;
	var string_len = document.getElementById(Id).value.length;
	var string = document.getElementById(Id).value;
	var iChars = "*ASDFGHJKLZXCVBNMQWERTYUIOPasdfghjklzxcvbnmqwertyuiop|,\":<>[]{}`\';()@&$#%_-=+*";
	
	var M_string_len = document.getElementById(Id).value.length;
	if (M_string_len == Length)
	{
		M_Value = document.getElementById(Id).value;
		M_string_len = document.getElementById(Id).value.length;
		String_1 = M_Value.substr(0,Length);
		String_2 = M_Value.substr(Length,M_string_len);
		
		document.getElementById(Id).value=String_1+'-'+String_2;
	}
	
	if (string_len <= Length )
	{
		for (var t = 0; t < string_len; t++)
		{
			if (iChars.indexOf(string.charAt(t)) != -1)
			{
				alert("Please Enter "+Text+" In Integer!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				document.getElementById(Id).value="";
				return false;
			}
		}
	}
	
	if (string_len > Length)
	{
		for (var t = Length+1; t < string_len; t++)
		{
			if (iChars.indexOf(string.charAt(t)) != -1)
			{
				alert("Please Enter "+Text+" In Integer!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				document.getElementById(Id).value="";
				return false;
			}
		}
	}
}


function Amount_Format(Id, Length, Text)
{
	var M_Value = document.getElementById(Id).value;
	var string_len = document.getElementById(Id).value.length;
	var string = document.getElementById(Id).value;
	var iChars = "*ASDFGHJKLZXCVBNMQWERTYUIOPasdfghjklzxcvbnmqwertyuiop|\":<>[]{}`\';()@&$#%_-=+*";
	
	var M_string_len = document.getElementById(Id).value.length;
	//AmountFieldLength = AmountFieldLength + Length
	
		M_Value = document.getElementById(Id).value;
		M_string_len = document.getElementById(Id).value.length;
		if (M_string_len == Length)
		{
		String_1 = M_Value.substr(AmountFieldLength,Length);
		String_2 = M_Value.substr(Length,M_string_len);
		document.getElementById(Id).value=String_1+','+String_2;
		Length =Length + Length;
		}

	
	if (string_len <= Length )
	{
		for (var t = 0; t < string_len; t++)
		{
			if (iChars.indexOf(string.charAt(t)) != -1)
			{
				alert("Please Enter "+Text+" In Integer!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				document.getElementById(Id).value="";
				return false;
			}
		}
	}
	
	if (string_len > Length)
	{
		for (var t = Length+1; t < string_len; t++)
		{
			if (iChars.indexOf(string.charAt(t)) != -1)
			{
				alert("Please Enter "+Text+" In Integer!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				document.getElementById(Id).value="";
				return false;
			}
		}
	}
}


function UploadFile(file_Path, Id)
{
		xmlHttp=GetXmlHttpObject();
		if (xmlHttp==null)
		  {
		  alert ("Your browser does not support AJAX!");
		  return;
		  } 
		var url="./AjaxClass/UploadFileExist.php";
		url=url+"?q="+file_Path+"&Id="+Id;
		xmlHttp.onreadystatechange=stateChanged_UP;
		xmlHttp.open("GET",url,true);
		xmlHttp.send(null);
}

function stateChanged_UP()
{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		total_str=xmlHttp.responseText;
		ID_Pos1=total_str.indexOf("ID-")+3;
		ID_Pos2=total_str.indexOf("-ID");
		ID=total_str.slice(ID_Pos1,ID_Pos2);
		
		total_str=xmlHttp.responseText;
		CON_Pos1=total_str.indexOf("CON-")+4;
		CON_Pos2=total_str.indexOf("-CON");
		CON=total_str.slice(CON_Pos1,CON_Pos2);
		
		if (CON == "0")
		{
			alert("Please Enter Correct Path!.");
			document.getElementById(ID).focus();
			//document.getElementById(ID).select();
			document.getElementById(ID).style.backgroundColor=color;
			return i=1000;
		}
	}
}

function Public_Validation(Id , Type ,Text ,SType, P1, Password_Length, Id2 ,Interger_Sep)
{
	switch (SType)
	{
		case "Alphanumeric":
			if(document.getElementById(Id).value == "")
			{
				alert("Please "+ Type +" "+ Text +"!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				//document.getElementById(Id).select();
				return i=1000;
			}
			else
			{	
				document.getElementById(Id).style.backgroundColor=Rcolor;
				if (isProper(Id) == false)
				{
					alert('Please enter a proper value for the "' + Text +'" field.'); 
					document.getElementById(Id).focus();
					//document.getElementById(Id).select();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
				}
				else
				{
					document.getElementById(Id).style.backgroundColor=Rcolor;
				}
			}
		break;
		
		case "All_Data":
			if(document.getElementById(Id).value == "")
			{
				alert("Please "+ Type +" "+ Text +"!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				//document.getElementById(Id).select();
				return i=1000;
			}
			else
			{	
				document.getElementById(Id).style.backgroundColor=Rcolor;
			}
		break;
		
		case "Date":
			if(document.getElementById(Id).value == ""){
			alert("Please "+ Type +" "+ Text +"!.");
			document.getElementById(Id).focus();
			//document.getElementById(Id).select();
			document.getElementById(Id).style.backgroundColor=color;
			return i=1000;
			}
			else
			{
				document.getElementById(Id).style.backgroundColor=Rcolor;
				var DateValue = document.getElementById(Id).value;
				if (isDate(DateValue) == false)
				{
					document.getElementById(Id).focus();
					//document.getElementById(Id).select();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
				}
				else
				{
					document.getElementById(Id).style.backgroundColor=Rcolor;	
				}
			}
		break;
		
		case "Integer":
			if(document.getElementById(Id).value == ""){
			alert("Please "+ Type +" "+ Text +"!.");
			document.getElementById(Id).focus();
			//document.getElementById(Id).select();
			document.getElementById(Id).style.backgroundColor=color;
			return i=1000;
			}
			else
			{
			document.getElementById(Id).style.backgroundColor=Rcolor;
			InterValue = document.getElementById(Id).value;
			InterValue = InterValue.replace(P1, '');
			 	if (IntegerValue(InterValue) == false)
			   	{
					alert("Please "+ Type +" "+ Text +" in "+ SType +"!.");
					document.getElementById(Id).focus();
					//document.getElementById(Id).select();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
			   	}
				else
				{
					document.getElementById(Id).style.backgroundColor=Rcolor;	
				}
			}
		break;
		
		
		case "Password":
			if(document.getElementById(Id).value == ""){
			alert("Please "+ Type +" "+ Text +"!.");
			document.getElementById(Id).focus();
			//document.getElementById(Id).select();
			document.getElementById(Id).style.backgroundColor=color;
			return i=1000;
			}
			else
			{
			document.getElementById(Id).style.backgroundColor=Rcolor;
			Value = document.getElementById(Id).value;
			Value = Value.length;
			 	if (Value < Password_Length)
			   	{
					alert("Please "+ Type +" "+ Text +" at least "+ Password_Length +" Characters!.");
					document.getElementById(Id).focus();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
			   	}
				else
				{
					document.getElementById(Id).style.backgroundColor=Rcolor;	
				}
			}
		break;
		
		case "Confirm_Password":
			if(document.getElementById(Id).value == ""){
			alert("Please "+ Type +" "+ Text +"!.");
			document.getElementById(Id).focus();
			//document.getElementById(Id).select();
			document.getElementById(Id).style.backgroundColor=color;
			return i=1000;
			}
			else
			{
			document.getElementById(Id).style.backgroundColor=Rcolor;
			Value = document.getElementById(Id).value;
			Value = Value.length;
			 	if (Value < Password_Length)
			   	{
					alert("Please "+ Type +" "+ Text +" at least "+ Password_Length +" Characters!.");
					document.getElementById(Id).focus();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
			   	}
				else
				{
					if (document.getElementById(Id).value != document.getElementById(Id2).value)
					{
						alert("Please "+ Type +" "+ Text +" Same to Password!.");
						document.getElementById(Id).focus();
						document.getElementById(Id).style.backgroundColor=color;
						return i=1000;
					}
					else
					{
						document.getElementById(Id).style.backgroundColor=Rcolor;	
					}
				}
			}
		break;
		
		case "Integer_NComp":
			if(document.getElementById(Id).value != ""){
			InterValue = document.getElementById(Id).value;
			 	if (IntegerValue(InterValue) == false)
			   	{
					alert("Please "+ Type +" "+ Text +" in Integer!.");
					document.getElementById(Id).focus();
					//document.getElementById(Id).select();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
			   	}
				else
				{
					document.getElementById(Id).style.backgroundColor=Rcolor;	
				}
			}
		break;
		
		case "UploadFile":
			/*if(document.getElementById(Id).value != "")
			{
				Upload_Path = document.getElementById(Id).value;
				UploadFile(Upload_Path, Id);
			}*/
			//checkfile(Id);
			/*if (checkfile(Id) == false)
			{
				alert("Please "+ Type +" "+ Text +" !.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				return i=1000;
			}*/
			if(document.getElementById(Id).value == "")
			{
				alert("Please "+ Type +" "+ Text +"!.");
				document.getElementById(Id).focus();
				document.getElementById(Id).style.backgroundColor=color;
				//document.getElementById(Id).select();
				return i=1000;
			}
		break;
		
		case "Email":
			if(document.getElementById(Id).value == ""){
			alert("Please enter e-mail address!.");
			document.getElementById(Id).focus();
			return i=1000;
			}
			else if(document.getElementById(Id).value.indexOf('@') == -1){
			alert("Please enter a valid e-mail address. Missing '@' sign!.");
			document.getElementById(Id).focus();
			return i=1000;
			}
			else if(document.getElementById(Id).value.indexOf('.') == -1){
			alert("Please enter a valid e-mail address.\nMissing '.' in your e-mail address!.");
			document.getElementById(Id).focus();
			return i=1000;
			}
			else
			{
			document.getElementById(Id).style.backgroundColor=Rcolor;	
			}
		break;
		
		case "Phone":
		var M_Value = document.getElementById(Id).value;
		if (M_Value != "")
		{
			if (Phone_Format(Id, 4, Text) == false)
			{
			return i=1000;
			}
			else
			{
				if (document.getElementById(Id).value.length < P1)
				{
					alert("Please Complete "+ Text +" Numbers!.");
					document.getElementById(Id).focus();
					document.getElementById(Id).style.backgroundColor=color;
					return i=1000;
				}	
			}
		}
		else
		{
			alert("Please "+ Type +" "+ Text +"!.");
			document.getElementById(Id).focus();
			//document.getElementById(Id).select();
			document.getElementById(Id).style.backgroundColor=color;
			return i=1000;
		}
		break;
		
		default :
		alert("Invalid Parameter");
		break;
	}

}

function Validation_Information(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Image_Option == "3")
			Public_Validation("Title" , "Select" ,"Product Name" ,"Alphanumeric");
			else
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			if ((Image_Option != "2") && (Image_Option != "3"))
			Public_Validation("Description" , "Enter" ,"Description" ,"All_Data");
			break;
			
			case 3:
			if ((Action == 0) && ( (Image_Option == "1") || (Image_Option == "2") || (Image_Option == "3")) )
			{
			Public_Validation("Image_Src" , "Select" ,"Image" ,"UploadFile");
			}
			break;
			
			case 4:
			submitForm(TheForm);
			break;
		}
	}

}


function Validation_Pages(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		Page_Type = document.getElementById("Page_Type").value;
		switch (i)
		{
			case 1:
			if (Page_Type == "GRSP_Information")
			Public_Validation("Category" , "Select" ,"Category" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Title" , "Enter" ,"Title" ,"All_Data");
			break;
			
			case 3:
			if (Action == "Save")
			{
				submitForm(TheForm);
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
			
		}
	}
	if (i == 1001)
	return false;

}


function Validation_Class(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Integer" , '-');
			break;
			
			case 2:
			if (Action == "Save")
			{
				Class_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_School(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric" , '');
			break;
			
			case 2:
			if (Action == "Save")
			{
				School_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Banners(TheForm, Start, Stop, CId, Start2, Stop2, CId2, Action, Image_Option)
{
	if (document.getElementById(CId).checked == true)
	{
		for (i=Start; i <= Stop; i++)
		{
			switch (i)
			{
				case 1:
				Public_Validation("Title2" , "Enter" ,"Title" ,"All_Data");
				break;
				
				case 2:
				Public_Validation("Banner_Code" , "Enter" ,"Banner Code" ,"All_Data");
				break;
				
				case 3:
				if (Action == "Save")
				{
					Banners_Save();
					InnerHtml_Message('Center_Page', '');
				}
				
				if (Action == "Apply")
				{
					Display_Div('Display_Apply_Message', '');
					InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
				}
				break;
			}
		}
	}
	else {
		if (document.getElementById(CId2).checked == true)
		{
			for (i=Start2; i <= Stop2; i++)
			{
				switch (i)
				{
					case 1:
					Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
					break;
					
					case 2:
					Public_Validation("Match_Categories" , "Enter" ,"Match Categories" ,"Alphanumeric");
					break;
					
					case 3:
					Public_Validation("Date_From" , "Enter" ,"Date From" ,"Date");
					break;
					
					case 4:
					Public_Validation("Date_To" , "Enter" ,"Date To" ,"Date");
					break;
					
					case 5:
					if (Action == "Save")
					{
						Banners_Save();
						InnerHtml_Message('Center_Page', '');
					}
					
					if (Action == "Apply")
					{
						Display_Div('Display_Apply_Message', '');
						InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
					}
					break;
				}
			}
		}
	}
}

function Validation_News(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Active_Date" , "Enter" ,"Date" ,"Date");
			break;
			
			case 2:
			Public_Validation("SEO_Url" , "Enter" ,"SEO Url Suffix" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Heading" , "Enter" ,"Heading" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Description" , "Enter" ,"Description" ,"All_Data");
			break;
			
			case 5:
			Public_Validation("Page_Title" , "Enter" ,"Page Title" ,"Alphanumeric");
			break;
			
			case 6:
			Public_Validation("Page_Keyword" , "Enter" ,"Page Keyword" ,"Alphanumeric");
			break;
			
			case 7:
			Public_Validation("Page_Description" , "Enter" ,"Page Description" ,"All_Data");
			break;
			
			case 8:
			if (Action == "Save")
			{
				News_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Brand(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Brand" , "Enter" ,"Brand" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Brand_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Brand_Alias(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Alias" , "Enter" ,"Alias" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Brand_Alias_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Category(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Detail" , "Enter" ,"Detail" ,"All_Data");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Category_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Category_Image(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Action == "Image")
			{
				Category_Image_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Product(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Detail" , "Enter" ,"Detail" ,"All_Data");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Product_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Product_Image(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Action == "Image")
			{
				Product_Image_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Product_Alias(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Alias" , "Enter" ,"Alias" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Product_Alias_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Product_Video(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Comments" , "Enter" ,"Comments" ,"All_Data");
			break;
			
			case 3:
			Public_Validation("Video_Embed_Code" , "Enter" ,"Video_Embed_Code" ,"All_Data");
			break;
			
			case 4:
			if (Action == "Save")
			{
				Product_Video_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Affiliates(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("User_Id" , "Enter" ,"User Id" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 3:
			Public_Validation("Per_Click_Commisson" , "Enter" ,"Per Click Commisson" ,"Integer");
			break;
			
			case 4:
			Public_Validation("Name" , "Enter" ,"Name" ,"Alphanumeric");
			break;
			
			case 5:
			Public_Validation("Address_Line1" , "Enter" ,"Address Line1" ,"All_Data");
			break;
			
			case 6:
			Public_Validation("Address_Line2" , "Enter" ,"Address Line2" ,"All_Data");
			break;
			
			case 7:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 8:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code" ,"Alphanumeric");
			break;
			
			case 9:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 10:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"Integer");
			break;
			
			case 11:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 12:
			Public_Validation("Last_Login" , "Enter" ,"Last Login" ,"Date");
			break;
			
			case 13:
			if (Action == "Save")
			{
				Affiliates_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Alumin_Account(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Class" , "Select" ,"Class" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("School_Name" , "Select" ,"School Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Country_Student" , "Enter" ,"Country Student" ,"Alphanumeric");
			break;
			
			case 4:
			//Public_Validation("District" , "Enter" ,"District" ,"Alphanumeric");
			break;
			
			case 5:
			//Public_Validation("Hosting_Families" , "Enter" ,"Hosting Families" ,"Alphanumeric");
			break;
			
			case 6:
			Public_Validation("User_Name" , "Enter" ,"User Name" ,"Alphanumeric");
			break;
			
			
			case 7:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 8:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 9:
			Public_Validation("Pin_Code" , "Enter" ,"Pin Code" ,"Password" , "" , "1");
			break;
			
			case 10:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 11:
			Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 12:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 13:
			Public_Validation("Gender" , "Select" ,"Gender" ,"Alphanumeric");
			break;
			
			case 14:
			//Public_Validation("Marital_Status" , "Enter" ,"Marital Status" ,"Alphanumeric");
			break;
			
			case 15:
			//Public_Validation("Maiden_Name" , "Enter" ,"Maiden Name" ,"Alphanumeric");
			break;
			
			case 16:
			Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 17:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 18:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 19:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 20:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 21:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"All_Data");
			break;
			
			case 22:
			Public_Validation("Mobile" , "Enter" ,"Mobile" ,"All_Data");
			break;
			
			case 23:
			//Public_Validation("Url" , "Enter" ,"Site Url" ,"All_Data");
			break;
			
			case 24:
			//Public_Validation("Page_Title" , "Enter" ,"Page Title" ,"Alphanumeric");
			break;
			
			case 25:
			//Public_Validation("Page_Keywords" , "Enter" ,"Page Keywords" ,"Alphanumeric");
			break;
			
			case 26:
			//Public_Validation("Page_Description" , "Enter" ,"Page Description" ,"All_Data");
			break;
			
			case 26:
			Public_Validation("Occupation" , "Enter" ,"Occupation" ,"Alphanumeric");
			break;
			
			case 27:
			Public_Validation("Office_Address" , "Enter" ,"Office Address" ,"All_Data");
			break;
			
			case 28:
			Public_Validation("Office_Country" , "Select" ,"Office Country" ,"Alphanumeric");
			break;
			
			case 29:
			Public_Validation("Office_City" , "Enter" ,"Office City" ,"Alphanumeric");
			break;
			
			case 30:
			Public_Validation("Office_Zip_Code" , "Enter" ,"Office Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 31:
			Public_Validation("Office_Email" , "Enter" ,"Office Email" ,"Email");
			break;
			
			case 32:
			Public_Validation("Office_Phone" , "Enter" ,"Office Phone" ,"All_Data" , "");
			break;
			
			case 33:
			Public_Validation("Office_Fax" , "Enter" ,"Office Fax" ,"All_Data" , "");
			break;
			
			case 34:
			Public_Validation("Sponsor_Club1" , "Enter" ,"Sponsor Club1" ,"Alphanumeric");
			break;
			
			case 35:
			if (Action == "Save")
			{
				Alumni_Account_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Rotarians_Account(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Rotary_Club" , "Enter" ,"Rotary Club" ,"Alphanumeric");
			break;
			
			case 5:
			//Public_Validation("Rotary_District" , "Enter" ,"Rotary District" ,"Alphanumeric");
			break;
			
			case 6:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 7:
			Public_Validation("Associated_With" , "Enter" ,"Associated With" ,"All_Data");
			break;
			
			case 8:
			Public_Validation("User_Name" , "Enter" ,"User Name" ,"Alphanumeric");
			break;
			
			
			case 9:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 10:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 11:
			Public_Validation("Select_Question" , "Select" ,"Select Question" ,"Alphanumeric");
			break;
			
			case 12:
			Public_Validation("Answar" , "Enter" ,"Answer" ,"Alphanumeric");
			break;
			
			case 13:
			Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 14:
			Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 15:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 16:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 17:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 18:
			//Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 19:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"All_Data");
			break;
			
			case 20:
			Public_Validation("Mobile" , "Enter" ,"Mobile" ,"All_Data");
			break;
			
			case 21:
			//Public_Validation("Url" , "Enter" ,"Site Url" ,"All_Data");
			break;
			
			case 22:
			//Public_Validation("Page_Title" , "Enter" ,"Page Title" ,"Alphanumeric");
			break;
			
			case 23:
			//Public_Validation("Page_Keywords" , "Enter" ,"Page Keywords" ,"Alphanumeric");
			break;
			
			case 24:
			//Public_Validation("Page_Description" , "Enter" ,"Page Description" ,"All_Data");
			break;
			
			case 25:
			if (Action == "Save")
			{
				Rotarians_Account_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Gallery(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Detail" , "Enter" ,"Detail" ,"All_Data");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Gallery_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Image_Gallery(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Detail" , "Enter" ,"Detail" ,"All_Data");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Image_Gallery_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Merchant_Payment(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Merchant" , "Select" ,"Merchant" ,"Alphanumeric");
			break;
			
			case 2:
			if (Image_Option == "Package")
			Public_Validation("Package" , "Select" ,"Package" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Payment_Method" , "Select" ,"Payment Method" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Payment_Date" , "Enter" ,"Payment Date" ,"Date");
			break;
			
			case 5:
			if (Image_Option == "Featured")
			Public_Validation("Featured_Date" , "Enter" ,"Featured Date" ,"Date");
			break;
			
			case 6:
			Public_Validation("Amount" , "Enter" ,"Amount" ,"Integer");
			break;
			
			case 7:
			if (Action == "Save")
			{
				Merchant_Payment_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Alumni_Account_Password(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 2:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 3:
			if (Action == "Password")
			{
				Alumni_Account_Password_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Rotarians_Account_Password(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 2:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 3:
			if (Action == "Password")
			{
				Rotarians_Account_Password_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Alumni_Account_Image(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Action == "Image")
			{
				Alumni_Account_Image_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Rotarians_Account_Image(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Action == "Image")
			{
				Rotarians_Account_Image_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Merchant_Product_Price(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Merchant" , "Select" ,"Merchant" ,"Alphanumeric" , "" , "");
			break;
			
			case 2:
			Public_Validation("Category" , "Select" ,"Category" ,"Alphanumeric" , "" , "");
			break;
			
			case 3:
			Public_Validation("Brand" , "Select" ,"Brand" ,"Alphanumeric" , "" , "");
			break;
			
			case 4:
			Public_Validation("Product" , "Enter" ,"Product" ,"Alphanumeric" , "" , "");
			break;
			
			case 5:
			Public_Validation("Price" , "Enter" ,"Price" ,"Integer" , "" , "");
			break;
			
			case 6:
			Public_Validation("Shipping" , "Enter" ,"Shipping" ,"Alphanumeric" , "" , "");
			break;
			
			case 7:
			Public_Validation("Part_No" , "Enter" ,"Part No" ,"Alphanumeric" , "" , "");
			break;
			
			case 8:
			Public_Validation("Detail_Url" , "Enter" ,"Detail Url" ,"Alphanumeric" , "" , "");
			break;
			
			case 9:
			Public_Validation("Buy_Url" , "Enter" ,"Buy Url" ,"Alphanumeric" , "" , "");
			break;
			
			case 10:
			Public_Validation("Comments" , "Enter" ,"Comments" ,"Alphanumeric" , "" , "");
			break;
			
			case 11:
			Public_Validation("Availability_Comments" , "Enter" ,"Availability Comments" ,"Alphanumeric" , "" , "");
			break;
			
			case 12:
			if (Action == "Save")
			{
				Merchant_Product_Price_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Affiliates_Banner(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Image_Url" , "Enter" ,"Image Url (Src)" ,"All_Data" , "" , "");
			break;
			
			case 2:
			Public_Validation("Alt_Text" , "Enter" ,"Alt Text" ,"Alphanumeric" , "" , "");
			break;
			
			case 3:
			Public_Validation("Width" , "Enter" ,"Width" ,"Integer" , "" , "");
			break;
			
			case 4:
			Public_Validation("Height" , "Enter" ,"Height" ,"Integer" , "" , "");
			break;
			
			case 5:
			if (Action == "Save")
			{
				Affiliates_Banner_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Merchant_Verifiers(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Detail" , "Enter" ,"Detail" ,"Alphanumeric");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Merchant_Verifiers_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Merchant_Verifiers_Image(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (Action == "Image")
			{
				Merchant_Verifiers_Image_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Recent_Search_Filter(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Word" , "Enter" ,"Word" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Recent_Search_Filter_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Email_Templates(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Message_Body" , "Enter" ,"Message Body" ,"All_Data");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Email_Templates_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Charity_Category(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Charity_Category_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Charity_Organization(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Charity_Category" , "Select" ,"Charity Category" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Name" , "Enter" ,"Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Address_Line1" , "Enter" ,"Address Line1" ,"All_Data");
			break;
			
			case 4:
			Public_Validation("Address_Line2" , "Enter" ,"Address Line2" ,"All_Data");
			break;
			
			case 5:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 6:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code" ,"Alphanumeric");
			break;
			
			case 7:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 8:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"Integer");
			break;
			
			case 9:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 10:
			if (Action == "Save")
			{
				Charity_Organization_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Members(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("User_Id" , "Enter" ,"User Id" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 3:
			//Public_Validation("Per_Click_Commisson" , "Enter" ,"Per Click Commisson" ,"Integer");
			break;
			
			case 4:
			Public_Validation("Name" , "Enter" ,"Name" ,"Alphanumeric");
			break;
			
			case 5:
			Public_Validation("Address_Line1" , "Enter" ,"Address Line1" ,"All_Data");
			break;
			
			case 6:
			Public_Validation("Address_Line2" , "Enter" ,"Address Line2" ,"All_Data");
			break;
			
			case 7:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 8:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code" ,"Alphanumeric");
			break;
			
			case 9:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 10:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"Integer");
			break;
			
			case 11:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 12:
			Public_Validation("Last_Login" , "Enter" ,"Last Login" ,"Date");
			break;
			
			case 13:
			if (Action == "Save")
			{
				Members_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Members_Password(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 2:
			if (Action == "Password")
			{
				Members_Password_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Send_Email(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Subject" , "Enter" ,"Subject" ,"Alphanumeric" , "" , "");
			break;
			
			case 2:
			//Public_Validation("Email_Body" , "Enter" ,"Email Body" ,"All_Data" , "" , "");
			break;
			
			case 3:
			if (Action == "Send_Email")
			{
				//Send_Email();
				submitForm(TheForm);
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}
	if (i == 1001)
	return false;

}

function Validation_Newsletters_Category(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Newsletters_Category_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Newsletters_Subscribers(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Category" , "Select" ,"Category" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric" , "" , "");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 5:
			if (Action == "Save")
			{
				Newsletters_Subscribers_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Compose_Newsletters(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Category" , "Select" ,"Send To Category" ,"All_Data" , "" , "");
			break;
			
			case 2:
			Public_Validation("Subject" , "Enter" ,"Subject" ,"Alphanumeric" , "" , "");
			break;
			
			case 3:
			if (Action == "Send_Email")
			{
				//Send_Email();
				FRM.submit();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}
	if (i == 1001)
	return false;

}

function Validation_Category_Filters(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Feature" , "Enter" ,"Feature" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Sort_Order" , "Enter" ,"Sort Order" ,"Integer");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Category_Filters_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Filters_Value(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Value" , "Enter" ,"Value" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Sort_Order" , "Enter" ,"Sort Order" ,"Integer");
			break;
			
			case 3:
			if (Action == "Save")
			{
				Filters_Value_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}

}

function Validation_Overview_Topic(TheForm, Start , Stop, Action, Image_Option , Dir)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{	
			case 1:
			if (document.getElementById("Pros_Title").value == "Enter your own tag one at a time")
			document.getElementById("Pros_Title").value = "";
			Public_Validation("Pros_Title" , "Enter" ,"Pros Title" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Reviews_Topic_Save("Pros_Title" , 1, Dir);
			}
			break;
		}
	}

}

function Validation_Overview_Topic2(TheForm, Start , Stop, Action, Image_Option ,Dir)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{	
			case 1:
			if (document.getElementById("Cons_Title").value == "Enter your own tag one at a time")
			document.getElementById("Cons_Title").value = "";
			Public_Validation("Cons_Title" , "Enter" ,"Cons Title" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Reviews_Topic_Save2("Cons_Title" , 1 ,Dir);
			}
			break;
		}
	}

}

function Validation_Overview_Topic3(TheForm, Start , Stop, Action, Image_Option ,Dir)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{	
			case 1:
			if (document.getElementById("Good_For").value == "Enter your own tag one at a time")
			document.getElementById("Good_For").value = "";
			Public_Validation("Good_For" , "Enter" ,"Good For" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Reviews_Topic_Save3("Good_For" , 2 ,Dir);
			}
			break;
		}
	}
}

function Validation_Overview_Add(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{	
			case 1:
			if (document.getElementById("Rating_Ratio").value == "") {
				alert("Please Select Rate!");
				i=1000;
			}
			break;
			
			case 2:
			if (document.getElementById("Review_Title").value == "Enter the title of your review here")
			document.getElementById("Review_Title").value = "";
			Public_Validation("Review_Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 3:
			if (Action == "Save")
			{
				SubmitForm2();
			}
			break;
		}
	}
	if (i == 1001)
	return false;
}

function Validation_Reviews_Topics(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{	
			case 1:
			Public_Validation("Title" , "Enter" ,"Title" ,"Alphanumeric");
			break;
			
			case 2:
			if (Action == "Save")
			{
				Reviews_Topics_Save();
				InnerHtml_Message('Center_Page', '');
			}
			
			if (Action == "Apply")
			{
				Display_Div('Display_Apply_Message', '');
				InnerHtml_Message('Display_Apply_Message', 'Record Applied Successfully! Click Save to Save Record!');
			}
			break;
		}
	}
}

function Validation_Alumin_Pin_Request(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 2:
			//Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Class" , "Select" ,"Class" ,"Alphanumeric");
			break;
			
			case 5:
			Public_Validation("School_Name" , "Select" ,"School Name" ,"Alphanumeric");
			break;
			
			case 6:
			//Public_Validation("Country_Student" , "Enter" ,"Country Student" ,"Alphanumeric");
			break;
			
			case 7:
			//Public_Validation("District" , "Enter" ,"District" ,"Alphanumeric");
			break;
			
			case 8:
			//Public_Validation("Hosting_Families" , "Enter" ,"Hosting Families" ,"Alphanumeric");
			break;
			
			case 9:
			Public_Validation("Gender" , "Select" ,"Gender" ,"Alphanumeric");
			break;
			
			case 10:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 11:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumin_Pin_Enter(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Pin_Number" , "Enter" ,"Pin Number" ,"All_Data");
			break;
			
			case 2:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumin_UserName(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("User_Name" , "Enter" ,"User Name" ,"All_Data");
			break;
			
			case 2:
			Public_Validation("Password" , "Enter" ,"Password" ,"All_Data");
			break;
			
			case 3:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Rotarians_UserName(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("User_Name_Login" , "Enter" ,"User Name" ,"All_Data");
			break;
			
			case 2:
			Public_Validation("Password_Login" , "Enter" ,"Password" ,"All_Data");
			break;
			
			case 3:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumin_Create_Login(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("User_Name_Login" , "Enter" ,"User Name" ,"All_Data");
			break;
			
			case 5:
			Public_Validation("Password_Login" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;

			case 6:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password_Login");
			break;
			
			case 7:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumin_Create_Forget_Password(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 2:
			//Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("User_Name_Login" , "Enter" ,"User Name" ,"All_Data");
			break;
			
			case 5:
			//Public_Validation("Password_Login" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;

			case 6:
			//Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password_Login");
			break;
			
			case 7:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumin_Account_ClientSite(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("Class" , "Select" ,"Class" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("School_Name" , "Select" ,"School Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Country_Student" , "Enter" ,"Country Student" ,"Alphanumeric");
			break;
			
			case 4:
			//Public_Validation("District" , "Enter" ,"District" ,"Alphanumeric");
			break;
			
			case 5:
			//Public_Validation("Hosting_Families" , "Enter" ,"Hosting Families" ,"Alphanumeric");
			break;
			
			case 6:
			//Public_Validation("User_Name" , "Enter" ,"User Name" ,"All_Data");
			break;
			
			
			case 7:
			//Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 8:
			//Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 9:
			//Public_Validation("Pin_Code" , "Enter" ,"Pin Code" ,"Password" , "" , "1");
			break;
			
			case 10:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 11:
			Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 12:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 13:
			Public_Validation("Gender" , "Select" ,"Gender" ,"Alphanumeric");
			break;
			
			case 14:
			//Public_Validation("Marital_Status" , "Enter" ,"Marital Status" ,"Alphanumeric");
			break;
			
			case 15:
			//Public_Validation("Maiden_Name" , "Enter" ,"Maiden Name" ,"Alphanumeric");
			break;
			
			case 16:
			//Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 17:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 18:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 19:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 20:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 21:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"All_Data");
			break;
			
			case 22:
			Public_Validation("Mobile" , "Enter" ,"Mobile" ,"All_Data");
			break;
			
			case 23:
			//Public_Validation("Url" , "Enter" ,"Site Url" ,"All_Data");
			break;
			
			case 24:
			//Public_Validation("Page_Title" , "Enter" ,"Page Title" ,"Alphanumeric");
			break;
			
			case 25:
			//Public_Validation("Page_Keywords" , "Enter" ,"Page Keywords" ,"Alphanumeric");
			break;
			
			case 26:
			//Public_Validation("Page_Description" , "Enter" ,"Page Description" ,"All_Data");
			break;
			
			case 26:
			Public_Validation("Occupation" , "Enter" ,"Occupation" ,"Alphanumeric");
			break;
			
			case 27:
			//Public_Validation("Office_Address" , "Enter" ,"Office Address" ,"All_Data");
			break;
			
			case 28:
			Public_Validation("Office_Country" , "Select" ,"Office Country" ,"Alphanumeric");
			break;
			
			case 29:
			Public_Validation("Office_City" , "Enter" ,"Office City" ,"Alphanumeric");
			break;
			
			case 30:
			Public_Validation("Office_Zip_Code" , "Enter" ,"Office Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 31:
			Public_Validation("Office_Email" , "Enter" ,"Office Email" ,"Email");
			break;
			
			case 32:
			Public_Validation("Office_Phone" , "Enter" ,"Office Phone" ,"All_Data" , "");
			break;
			
			case 33:
			Public_Validation("Office_Fax" , "Enter" ,"Office Fax" ,"All_Data" , "");
			break;
			
			case 34:
			Public_Validation("Sponsor_Club1" , "Enter" ,"Sponsor Club1" ,"Alphanumeric");
			break;
			
			case 35:
			submitForm(TheForm);
			break;
		}
	}
	if (i == 1001)
	return false;
}

function Validation_Alumni_Account_Image_ClientSite(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Alumni_Search_ClientSite(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			submitForm(TheForm);
			break;
		}
	}

}

function Validation_Rotarians_Account_Clientside(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"Alphanumeric");
			break;
			
			case 2:
			Public_Validation("Middle_Name" , "Enter" ,"Middle Name" ,"Alphanumeric");
			break;
			
			case 3:
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"Alphanumeric");
			break;
			
			case 4:
			Public_Validation("Rotary_Club" , "Enter" ,"Rotary Club" ,"Alphanumeric");
			break;
			
			case 5:
			//Public_Validation("Rotary_District" , "Enter" ,"Rotary District" ,"Alphanumeric");
			break;
			
			case 6:
			Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 7:
			//Public_Validation("Associated_With" , "Enter" ,"Associated With" ,"All_Data");
			break;
			
			case 8:
			Public_Validation("User_Name" , "Enter" ,"User Name" ,"Alphanumeric");
			break;
			
			
			case 9:
			Public_Validation("Password" , "Enter" ,"Password" ,"Password" , "" , "8");
			break;
			
			case 10:
			Public_Validation("Confirm_Password" , "Enter" ,"Confirm Password" ,"Confirm_Password" , "" , "8" , "Password");
			break;
			
			case 11:
			Public_Validation("Select_Question" , "Select" ,"Select Question" ,"Alphanumeric");
			break;
			
			case 12:
			Public_Validation("Answar" , "Enter" ,"Answer" ,"Alphanumeric");
			break;
			
			case 13:
			//Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 14:
			//Public_Validation("Current_Address" , "Enter" ,"Current Address" ,"All_Data");
			break;
			
			case 15:
			Public_Validation("Country" , "Select" ,"Country" ,"Alphanumeric");
			break;
			
			case 16:
			Public_Validation("City" , "Enter" ,"City" ,"Alphanumeric");
			break;
			
			case 17:
			Public_Validation("Zip_Code" , "Enter" ,"Zip Code/Postal Code" ,"Alphanumeric");
			break;
			
			case 18:
			//Public_Validation("Email" , "Enter" ,"Email" ,"Email");
			break;
			
			case 19:
			Public_Validation("Phone" , "Enter" ,"Phone" ,"All_Data");
			break;
			
			case 20:
			Public_Validation("Mobile" , "Enter" ,"Mobile" ,"All_Data");
			break;
			
			case 21:
			//Public_Validation("Url" , "Enter" ,"Site Url" ,"All_Data");
			break;
			
			case 22:
			//Public_Validation("Page_Title" , "Enter" ,"Page Title" ,"Alphanumeric");
			break;
			
			case 23:
			//Public_Validation("Page_Keywords" , "Enter" ,"Page Keywords" ,"Alphanumeric");
			break;
			
			case 24:
			//Public_Validation("Page_Description" , "Enter" ,"Page Description" ,"All_Data");
			break;
			
			case 25:
			submitForm(TheForm);
			break;
		}
	}
	if (i == 1001)
	return false;

}

function Validation_Newsletters_Client(TheForm, Start , Stop, Action, Image_Option)
{
	for (i=Start; i <= Stop; i++)
	{
		switch (i)
		{
			case 1:
			if (document.getElementById("Newsletters").value == "Enter Email")
			document.getElementById("Newsletters").value = "";
			Public_Validation("Newsletters" , "Enter" ,"Newsletters" ,"All_Data");
			break;
			
			case 2:
			if (document.getElementById("First_Name").value == "First Name")
			document.getElementById("First_Name").value = "";
			Public_Validation("First_Name" , "Enter" ,"First Name" ,"All_Data");
			break;
			
			case 3:
			if (document.getElementById("Last_Name").value == "Last Name")
			document.getElementById("Last_Name").value = "";
			Public_Validation("Last_Name" , "Enter" ,"Last Name" ,"All_Data");
			break;

			case 4:
			submitForm(TheForm);
			break;
		}
	}

}