	//Fields for Share Holder Fields
	var ShareHolderFields = new Array();
	ShareHolderFields[1] = "txtSHPercent";
	ShareHolderFields[2] = "txtSHTitle";
	ShareHolderFields[3] = "txtSHFName";
	ShareHolderFields[4] = "txtSHLName";
	ShareHolderFields[5] = "txtSHHouseName";
	ShareHolderFields[6] = "txtSHStreet";
	ShareHolderFields[7] = "txtSHTown";
	ShareHolderFields[8] = "txtSHCity";
	ShareHolderFields[9] = "txtSHState";
	ShareHolderFields[10] = "txtSHZip";
	ShareHolderFields[11] = "txtSHCountry";
	ShareHolderFields[12] = "txtSHEmail";
	ShareHolderFields[13] = "txtSHContact";
	//Fields for Directors Fields
	var DirectorFields = new Array();
	DirectorFields[1] = "ddSameAsShare";
	DirectorFields[2] = "txtDTitle";
	DirectorFields[3] = "txtDFName";
	DirectorFields[4] = "txtDLName";
	DirectorFields[5] = "txtDHouseName";
	DirectorFields[6] = "txtDStreet";
	DirectorFields[7] = "txtDTown";
	DirectorFields[8] = "txtDCity";
	DirectorFields[9] = "txtDState";
	DirectorFields[10] = "txtDZip";
	DirectorFields[11] = "txtDCountry";
	DirectorFields[12] = "txtDEmail";
	DirectorFields[13] = "txtDContact";

//For Displaying Jurisdiction Prices and Share Capitals
function ChangeJurisdictionPrices(jurisid)
{
	var objJurisdiction = document.getElementById("divJurisdiction");
	var objShareCapital = document.getElementById("divJurisdictionShare");
	var objPrice = document.getElementById("divJurisdictionPrice");
	var objPriceCaption = document.getElementById("divJurisdictionPriceCaption");

	if(jurisid == "-1")
	{
		document.frmJurisdiction.txtPrice.value = "0";
		document.frmJurisdiction.hidShareCapital.value = "0";
		objJurisdiction.innerHTML = "";
		objShareCapital.innerHTML = "";
		objPrice.innerHTML = "";
		objPriceCaption.innerHTML = "";
	}
	else
	{
		document.frmJurisdiction.txtPrice.value = Price[jurisid];
		document.frmJurisdiction.hidShareCapital.value = ShareCapital[jurisid];
		objJurisdiction.innerHTML = Jurisdiction[jurisid];
		objShareCapital.innerHTML = "$" + ShareCapital[jurisid];

		objPrice.innerHTML = "$" + Price[jurisid];
		objPriceCaption.innerHTML = "Price";
	}
	CalculateTotalJuris(jurisid);
}

//For Removing Blank Space in the Fields
function removespc(con)
{
	while(con.indexOf(" ",0)>=0)
	con=con.replace(" ","");
	return con;
}

//For Filling Directors Fields from Share Holder Fields
function FillFromShareHold(status, shid)
{
	var arrlen = 0;
	var objFieldName = "";
	var strFieldName = "";
	var flagFieldValues = false;
	var formName = document.frmJurisdiction;
	var strFieldName = "";
	arrlen = ShareHolderFields.length;

	for(i=1;i<arrlen;i++)
	{
		strSHFieldName = ShareHolderFields[i] + shid;
		objSHFieldName = document.getElementById(strSHFieldName);
		strDFieldName = DirectorFields[i] + shid;
		objDFieldName = document.getElementById(strDFieldName);
		strFieldName = objDFieldName.name;
		strFieldName = strFieldName.substring(0, strFieldName.length - 1);
		//alert("Name is..." + strFieldName);
		
		if(removespc(objSHFieldName.value)!="")
		{		
			flagFieldValues = true;
			if(status=="1")
			{				
				if(strFieldName!="ddSameAsShare")
					objDFieldName.disabled = true;
				objDFieldName.value = objSHFieldName.value;
				objDFieldName.className = "readonlytxtfield";
			}
			else
			{
				objDFieldName.disabled = false;
				objDFieldName.value = "";
				objDFieldName.className = "";
			}
		}
	}

	if(!flagFieldValues && status=="1")
	{
		alert("Please fill all the Share Holder "+ shid +" Details for filling this");
		strDFieldName = "ddSameAsShare" + shid;
		objDFieldName = document.getElementById(strDFieldName);
		objDFieldName.value="0";
	}
}

//For Disable OR Enable Share Holders 2 & 3 & Directors 2 & 3 Fields
function generalChange(status, id, arrayname)
{
	var arrlen = 0;
	var objFieldName = "";
	var strFieldName = "";

	if(arrayname=="SH") arrlen = ShareHolderFields.length;
	else if(arrayname=="D") arrlen = DirectorFields.length;

	for(i=1;i<arrlen;i++)
	{
		if(arrayname=="SH") strFieldName = ShareHolderFields[i] + id;
		else if(arrayname=="D") strFieldName = DirectorFields[i] + id;

		objFieldName = document.getElementById(strFieldName);
		if(status=="1")
		{
			objFieldName.disabled = false;
			objFieldName.className = "";
		}
		else
		{
			objFieldName.value="";
			objFieldName.disabled = true;
			objFieldName.className = "readonlytxtfield";
		}
	}
}

//For Calculating Total Cost for selected Jurisdiction
function CalculateTotalJuris(jurisid)
{
	var objJuris = document.getElementById("hidJuriPrice");
	TempValStr1 = parseInt(document.frmJurisdiction.txtTotalCost.value) - parseInt(objJuris.value);
	if(jurisid=="-1")
	{
		TempValStr2 = parseInt(TempValStr1) + parseInt(0);
		objJuris.value = "0";
	}
	else
	{
		TempValStr2 = parseInt(TempValStr1) + parseInt(Price[jurisid]);
		objJuris.value = Price[jurisid];
	}
	document.frmJurisdiction.txtTotalCost.value = TempValStr2.toFixed(2);
}

//For Calculating Total Cost for selected Additional Services
function CalculateTotalAddServ(radioid)
{
	var strHidRadName = "";
	strRadName = "hidRadio"+radioid;
	var objRadio = document.getElementById(strRadName);
	TempValStr1 = parseInt(document.frmJurisdiction.txtTotalCost.value) - parseInt(objRadio.value);
	TempValStr2 = parseInt(TempValStr1) + parseInt(getCheckedValue(document.forms['frmJurisdiction'].elements['rad'+radioid]));
	objRadio.value = getCheckedValue(document.forms['frmJurisdiction'].elements['rad'+radioid]);
	document.frmJurisdiction.txtTotalCost.value = TempValStr2.toFixed(2);
}

//For Getting Selected Radio Button Value
function getCheckedValue(radioObj) {
	if(!radioObj)
		return "";
	var radioLength = radioObj.length;
	if(radioLength == undefined)
		if(radioObj.checked)
			return radioObj.value;
		else
			return "";
	for(var i = 0; i < radioLength; i++) {
		if(radioObj[i].checked) {
			return radioObj[i].value;
		}
	}
	return "";
}

//Email Address Validation Function
function MailValidate(str)
{
	var at="@"
	var dot="."
	var lat=str.indexOf(at)
	var lstr=str.length
	var ldot=str.indexOf(dot)
	if (str.indexOf(at)==-1){
	   return false
	}
	if (str.indexOf(at)==-1 || str.indexOf(at)==0 || str.indexOf(at)==lstr){
	    return false
	}
	if (str.indexOf(dot)==-1 || str.indexOf(dot)==0 || str.indexOf(dot)==lstr){
	    return false
	}
	 if (str.indexOf(at,(lat+1))!=-1){
	      return false
	 }
	 if (str.substring(lat-1,lat)==dot || str.substring(lat+1,lat+2)==dot){
	    return false
	 }
	 if (str.indexOf(dot,(lat+2))==-1){
	     return false
	 }
	 if (str.indexOf(" ")!=-1){
	    return false
	 }
	 return true
}

//For adding commas to the Numbers
function formatNumber (obj, decimal) {
	 //decimal  - the number of decimals after the digit from 0 to 3
//-- Returns the passed number as a string in the xxx,xxx.xx format.
	   anynum=eval(obj.value);
	   divider =10;
	   switch(decimal){
			case 0:
				divider =1;
				break;
			case 1:
				divider =10;
				break;
			case 2:
				divider =100;
				break;
			default:  	 //for 3 decimal places
				divider =1000;
		}

	   workNum=Math.abs((Math.round(anynum*divider)/divider));

	   workStr=""+workNum

	   if (workStr.indexOf(".")==-1){workStr+="."}

	   dStr=workStr.substr(0,workStr.indexOf("."));dNum=dStr-0
	   pStr=workStr.substr(workStr.indexOf("."))

	   while (pStr.length-1< decimal){pStr+="0"}

	   if(pStr =='.') pStr ='';

	   //--- Adds a comma in the thousands place.
	   if (dNum>=1000) {
		  dLen=dStr.length
		  dStr=parseInt(""+(dNum/1000))+","+dStr.substring(dLen-3,dLen)
	   }

	   //-- Adds a comma in the millions place.
	   if (dNum>=1000000) {
		  dLen=dStr.length
		  dStr=parseInt(""+(dNum/1000000))+","+dStr.substring(dLen-7,dLen)
	   }
	   retval = dStr + pStr
	   //-- Put numbers in parentheses if negative.
	   if (anynum<0) {retval="("+retval+")";}


	//You could include a dollar sign in the return value.
	  //retval =  "$"+retval

	  obj.value = retval;
 }

//For Checking all the Field values in the Form
function CheckAllFields()
{
	var formName = document.frmJurisdiction;
	if(formName.ddJurisdiction.value=="-1")
	{
		alert("Select one of the Jurisdiction for Formation");
		formName.ddJurisdiction.focus();
		return false;
	}
	else if(removespc(formName.txtChoice1.value)=="")
	{
		alert("Enter the Company Name Choice #1");
		formName.txtChoice1.focus();
		return false;
	}
	/*
	else if(removespc(formName.txtChoice2.value)=="")
	{
		alert("Enter the Company Name Choice #2");
		formName.txtChoice2.focus();
		return false;
	}
	else if(removespc(formName.txtChoice3.value)=="")
	{
		alert("Enter the Company Name Choice #3");
		formName.txtChoice3.focus();
		return false;
	}*/
	else if(removespc(formName.txtSHPercent1.value)=="")
	{
		alert("Enter the %age of Shares for 1st Share Holder");
		formName.txtSHPercent1.focus();
		return false;
	}
	else if(removespc(formName.txtSHTitle1.value)=="")
	{
		alert("Enter the Title for 1st Share Holder");
		formName.txtSHTitle1.focus();
		return false;
	}
	else if(removespc(formName.txtSHFName1.value)=="")
	{
		alert("Enter the First Name for 1st Share Holder");
		formName.txtSHFName1.focus();
		return false;
	}
	else if(removespc(formName.txtSHLName1.value)=="")
	{
		alert("Enter the Last Name for 1st Share Holder");
		formName.txtSHLName1.focus();
		return false;
	}
	else if(removespc(formName.txtSHHouseName1.value)=="")
	{
		alert("Enter the House Name/Number for 1st Share Holder");
		formName.txtSHHouseName1.focus();
		return false;
	}
	else if(removespc(formName.txtSHStreet1.value)=="")
	{
		alert("Enter the Street for 1st Share Holder");
		formName.txtSHStreet1.focus();
		return false;
	}
	else if(removespc(formName.txtSHTown1.value)=="")
	{
		alert("Enter the Town for 1st Share Holder");
		formName.txtSHTown1.focus();
		return false;
	}
	else if(removespc(formName.txtSHCity1.value)=="")
	{
		alert("Enter the City for 1st Share Holder");
		formName.txtSHCity1.focus();
		return false;
	}
	else if(removespc(formName.txtSHState1.value)=="")
	{
		alert("Enter the State/Province for 1st Share Holder");
		formName.txtSHState1.focus();
		return false;
	}
	else if(removespc(formName.txtSHZip1.value)=="")
	{
		alert("Enter the Zip Code for 1st Share Holder");
		formName.txtSHZip1.focus();
		return false;
	}
	else if(removespc(formName.txtSHCountry1.value)=="")
	{
		alert("Enter the Country for 1st Share Holder");
		formName.txtSHCountry1.focus();
		return false;
	}
	else if(removespc(formName.txtSHEmail1.value)=="")
	{
		alert("Enter the Email Address for 1st Share Holder");
		formName.txtSHEmail1.focus();
		return false;
	}
	else if(!MailValidate(formName.txtSHEmail1.value))
	{
		alert("Enter the Valid Email Address for 1st Share Holder");
		formName.txtSHEmail1.select();
		return false;
	}
	else if(removespc(formName.txtSHContact1.value)=="")
	{
		alert("Enter the Contact Number for 1st Share Holder");
		formName.txtSHContact1.focus();
		return false;
	}
	//if(formName.ddShareholder2.value!="0" && formName.hidSH2Finish.value=="0")
	if(formName.ddShareholder2.value!="0")
	{
		if(removespc(formName.txtSHPercent2.value)=="")
		{
			alert("Enter the %age of Shares for 2nd Share Holder");
			formName.txtSHPercent2.focus();
			return false;
		}
		else if(removespc(formName.txtSHTitle2.value)=="")
		{
			alert("Enter the Title for 2nd Share Holder");
			formName.txtSHTitle2.focus();
			return false;
		}
		else if(removespc(formName.txtSHFName2.value)=="")
		{
			alert("Enter the First Name for 2nd Share Holder");
			formName.txtSHFName2.focus();
			return false;
		}
		else if(removespc(formName.txtSHLName2.value)=="")
		{
			alert("Enter the Last Name for 2nd Share Holder");
			formName.txtSHLName2.focus();
			return false;
		}
		else if(removespc(formName.txtSHHouseName2.value)=="")
		{
			alert("Enter the House Name/Number for 2nd Share Holder");
			formName.txtSHHouseName2.focus();
			return false;
		}
		else if(removespc(formName.txtSHStreet2.value)=="")
		{
			alert("Enter the Street for 2nd Share Holder");
			formName.txtSHStreet2.focus();
			return false;
		}
		else if(removespc(formName.txtSHTown2.value)=="")
		{
			alert("Enter the Town for 2nd Share Holder");
			formName.txtSHTown2.focus();
			return false;
		}
		else if(removespc(formName.txtSHCity2.value)=="")
		{
			alert("Enter the City for 2nd Share Holder");
			formName.txtSHCity2.focus();
			return false;
		}
		else if(removespc(formName.txtSHState2.value)=="")
		{
			alert("Enter the State/Province for 2nd Share Holder");
			formName.txtSHState2.focus();
			return false;
		}
		else if(removespc(formName.txtSHZip2.value)=="")
		{
			alert("Enter the Zip Code for 2nd Share Holder");
			formName.txtSHZip2.focus();
			return false;
		}
		else if(removespc(formName.txtSHCountry2.value)=="")
		{
			alert("Enter the Country for 2nd Share Holder");
			formName.txtSHCountry2.focus();
			return false;
		}
		else if(removespc(formName.txtSHEmail2.value)=="")
		{
			alert("Enter the Email Address for 2nd Share Holder");
			formName.txtSHEmail2.focus();
			return false;
		}
		else if(!MailValidate(formName.txtSHEmail2.value))
		{
			alert("Enter the Valid Email Address for 2nd Share Holder");
			formName.txtSHEmail2.select();
			return false;
		}
		else if(removespc(formName.txtSHContact2.value)=="")
		{
			alert("Enter the Contact Number for 2nd Share Holder");
			formName.txtSHContact2.focus();
			return false;
		}
	}
	//else if(formName.ddShareholder3.value!="0" && formName.hidSH3Finish.value=="0")
	if(formName.ddShareholder3.value!="0")
	{
		if(removespc(formName.txtSHPercent3.value)=="")
		{
			alert("Enter the %age of Shares for 3rd Share Holder");
			formName.txtSHPercent3.focus();
			return false;
		}
		else if(removespc(formName.txtSHTitle3.value)=="")
		{
			alert("Enter the Title for 3rd Share Holder");
			formName.txtSHTitle3.focus();
			return false;
		}
		else if(removespc(formName.txtSHFName3.value)=="")
		{
			alert("Enter the First Name for 3rd Share Holder");
			formName.txtSHFName3.focus();
			return false;
		}
		else if(removespc(formName.txtSHLName3.value)=="")
		{
			alert("Enter the Last Name for 3rd Share Holder");
			formName.txtSHLName3.focus();
			return false;
		}
		else if(removespc(formName.txtSHHouseName3.value)=="")
		{
			alert("Enter the House Name/Number for 3rd Share Holder");
			formName.txtSHHouseName3.focus();
			return false;
		}
		else if(removespc(formName.txtSHStreet3.value)=="")
		{
			alert("Enter the Street for 3rd Share Holder");
			formName.txtSHStreet3.focus();
			return false;
		}
		else if(removespc(formName.txtSHTown3.value)=="")
		{
			alert("Enter the Town for 3rd Share Holder");
			formName.txtSHTown3.focus();
			return false;
		}
		else if(removespc(formName.txtSHCity3.value)=="")
		{
			alert("Enter the City for 3rd Share Holder");
			formName.txtSHCity3.focus();
			return false;
		}
		else if(removespc(formName.txtSHState3.value)=="")
		{
			alert("Enter the State/Province for 3rd Share Holder");
			formName.txtSHState3.focus();
			return false;
		}
		else if(removespc(formName.txtSHZip3.value)=="")
		{
			alert("Enter the Zip Code for 3rd Share Holder");
			formName.txtSHZip3.focus();
			return false;
		}
		else if(removespc(formName.txtSHCountry3.value)=="")
		{
			alert("Enter the Country for 3rd Share Holder");
			formName.txtSHCountry3.focus();
			return false;
		}
		else if(removespc(formName.txtSHEmail3.value)=="")
		{
			alert("Enter the Email Address for 3rd Share Holder");
			formName.txtSHEmail3.focus();
			return false;
		}
		else if(!MailValidate(formName.txtSHEmail3.value))
		{
			alert("Enter the Valid Email Address for 3rd Share Holder");
			formName.txtSHEmail3.select();
			return false;
		}
		else if(removespc(formName.txtSHContact3.value)=="")
		{
			alert("Enter the Contact Number for 3rd Share Holder");
			formName.txtSHContact3.focus();
			return false;
		}
	}
	if(removespc(formName.txtDTitle1.value)=="")
	{
		alert("Enter the Title for 1st Director");
		formName.txtDTitle1.focus();
		return false;
	}
	else if(removespc(formName.txtDFName1.value)=="")
	{
		alert("Enter the First Name for 1st Director");
		formName.txtDFName1.focus();
		return false;
	}
	else if(removespc(formName.txtDLName1.value)=="")
	{
		alert("Enter the Last Name for 1st Director");
		formName.txtDLName1.focus();
		return false;
	}
	else if(removespc(formName.txtDHouseName1.value)=="")
	{
		alert("Enter the House Name/Number for 1st Director");
		formName.txtDHouseName1.focus();
		return false;
	}
	else if(removespc(formName.txtDStreet1.value)=="")
	{
		alert("Enter the Street for 1st Director");
		formName.txtDStreet1.focus();
		return false;
	}
	else if(removespc(formName.txtDTown1.value)=="")
	{
		alert("Enter the Town for 1st Director");
		formName.txtDTown1.focus();
		return false;
	}
	else if(removespc(formName.txtDCity1.value)=="")
	{
		alert("Enter the City for 1st Director");
		formName.txtDCity1.focus();
		return false;
	}
	else if(removespc(formName.txtDState1.value)=="")
	{
		alert("Enter the State/Province for 1st Director");
		formName.txtDState1.focus();
		return false;
	}
	else if(removespc(formName.txtDZip1.value)=="")
	{
		alert("Enter the Zip Code for 1st Director");
		formName.txtDZip1.focus();
		return false;
	}
	else if(removespc(formName.txtDCountry1.value)=="")
	{
		alert("Enter the Country for 1st Director");
		formName.txtDCountry1.focus();
		return false;
	}
	else if(removespc(formName.txtDEmail1.value)=="")
	{
		alert("Enter the Email Address for 1st Director");
		formName.txtDEmail1.focus();
		return false;
	}
	else if(!MailValidate(formName.txtDEmail1.value))
	{
		alert("Enter the Valid Email Address for 1st Director");
		formName.txtDEmail1.select();
		return false;
	}
	else if(removespc(formName.txtDContact1.value)=="")
	{
		alert("Enter the Contact Number for 1st Director");
		formName.txtDContact1.focus();
		return false;
	}
	//else if(formName.ddDirector2.value!="0" && formName.hidD2Finish.value=="0")
	if(formName.ddDirector2.value!="0")
	{
		if(removespc(formName.txtDTitle2.value)=="")
		{
			alert("Enter the Title for 2nd Director");
			formName.txtDTitle2.focus();
			return false;
		}
		else if(removespc(formName.txtDFName2.value)=="")
		{
			alert("Enter the First Name for 2nd Director");
			formName.txtDFName2.focus();
			return false;
		}
		else if(removespc(formName.txtDLName2.value)=="")
		{
			alert("Enter the Last Name for 2nd Director");
			formName.txtDLName2.focus();
			return false;
		}
		else if(removespc(formName.txtDHouseName2.value)=="")
		{
			alert("Enter the House Name/Number for 2nd Director");
			formName.txtDHouseName2.focus();
			return false;
		}
		else if(removespc(formName.txtDStreet2.value)=="")
		{
			alert("Enter the Street for 2nd Director");
			formName.txtDStreet2.focus();
			return false;
		}
		else if(removespc(formName.txtDTown2.value)=="")
		{
			alert("Enter the Town for 2nd Director");
			formName.txtDTown2.focus();
			return false;
		}
		else if(removespc(formName.txtDCity2.value)=="")
		{
			alert("Enter the City for 2nd Director");
			formName.txtDCity2.focus();
			return false;
		}
		else if(removespc(formName.txtDState2.value)=="")
		{
			alert("Enter the State/Province for 2nd Director");
			formName.txtDState2.focus();
			return false;
		}
		else if(removespc(formName.txtDZip2.value)=="")
		{
			alert("Enter the Zip Code for 2nd Director");
			formName.txtDZip2.focus();
			return false;
		}
		else if(removespc(formName.txtDCountry2.value)=="")
		{
			alert("Enter the Country for 2nd Director");
			formName.txtDCountry2.focus();
			return false;
		}
		else if(removespc(formName.txtDEmail2.value)=="")
		{
			alert("Enter the Email Address for 2nd Director");
			formName.txtDEmail2.focus();
			return false;
		}
		else if(!MailValidate(formName.txtDEmail2.value))
		{
			alert("Enter the Valid Email Address for 2nd Director");
			formName.txtDEmail2.select();
			return false;
		}
		else if(removespc(formName.txtDContact2.value)=="")
		{
			alert("Enter the Contact Number for 2nd Director");
			formName.txtDContact2.focus();
			return false;
		}
	}
	//else if(formName.ddDirector3.value!="0" && formName.hidD3Finish.value=="0")
	if(formName.ddDirector3.value!="0")
	{
		if(removespc(formName.txtDTitle3.value)=="")
		{
			alert("Enter the Title for 3rd Director");
			formName.txtDTitle3.focus();
			return false;
		}
		else if(removespc(formName.txtDFName3.value)=="")
		{
			alert("Enter the First Name for 3rd Director");
			formName.txtDFName3.focus();
			return false;
		}
		else if(removespc(formName.txtDLName3.value)=="")
		{
			alert("Enter the Last Name for 3rd Director");
			formName.txtDLName3.focus();
			return false;
		}
		else if(removespc(formName.txtDHouseName3.value)=="")
		{
			alert("Enter the House Name/Number for 3rd Director");
			formName.txtDHouseName3.focus();
			return false;
		}
		else if(removespc(formName.txtDStreet3.value)=="")
		{
			alert("Enter the Street for 3rd Director");
			formName.txtDStreet3.focus();
			return false;
		}
		else if(removespc(formName.txtDTown3.value)=="")
		{
			alert("Enter the Town for 3rd Director");
			formName.txtDTown3.focus();
			return false;
		}
		else if(removespc(formName.txtDCity3.value)=="")
		{
			alert("Enter the City for 3rd Director");
			formName.txtDCity3.focus();
			return false;
		}
		else if(removespc(formName.txtDState3.value)=="")
		{
			alert("Enter the State/Province for 3rd Director");
			formName.txtDState3.focus();
			return false;
		}
		else if(removespc(formName.txtDZip3.value)=="")
		{
			alert("Enter the Zip Code for 3rd Director");
			formName.txtDZip3.focus();
			return false;
		}
		else if(removespc(formName.txtDCountry3.value)=="")
		{
			alert("Enter the Country for 3rd Director");
			formName.txtDCountry3.focus();
			return false;
		}
		else if(removespc(formName.txtDEmail3.value)=="")
		{
			alert("Enter the Email Address for 3rd Director");
			formName.txtDEmail3.focus();
			return false;
		}
		else if(!MailValidate(formName.txtDEmail3.value))
		{
			alert("Enter the Valid Email Address for 3rd Director");
			formName.txtDEmail3.select();
			return false;
		}
		else if(removespc(formName.txtDContact3.value)=="")
		{
			alert("Enter the Contact Number for 3rd Director");
			formName.txtDContact3.focus();
			return false;
		}
	}
	var strRadio = "";
	var strValue = "";
	flag=false;
	for (var i=0;i < formName.elements.length;i++)
	{
		var e = formName.elements[i];
		if (e.type == "radio")
		{
			if(formName.elements[i].name==formName.elements[i+1].name)
			{
				if (formName.elements[i].checked==false && formName.elements[i+1].checked==false)
				{
					strRadio = formName.elements[i].name;
					strValue = strRadio.replace("rad","");
					flag=true;
					formName.elements[i].focus();
					break;
				}
			}
		}
	}

	if(flag)
	{
		alert("Choose the '"+ AddServices[strValue] +"' Additional services");
		return false;
	}
	if(removespc(formName.txtTitle.value)=="")
	{
		alert("Enter the Delivery Title");
		formName.txtTitle.focus();
		return false;
	}
	else if(removespc(formName.txtCity.value)=="")
	{
		alert("Enter the Delivery City");
		formName.txtCity.focus();
		return false;
	}
	else if(removespc(formName.txtFName.value)=="")
	{
		alert("Enter the First Name");
		formName.txtFName.focus();
		return false;
	}
	else if(removespc(formName.txtState.value)=="")
	{
		alert("Enter the First Name");
		formName.txtState.focus();
		return false;
	}
	else if(removespc(formName.txtLName.value)=="")
	{
		alert("Enter the Last Name");
		formName.txtLName.focus();
		return false;
	}
	else if(removespc(formName.txtZip.value)=="")
	{
		alert("Enter the Zip Code");
		formName.txtZip.focus();
		return false;
	}
	else if(removespc(formName.txtHouseName.value)=="")
	{
		alert("Enter the House Name/Number");
		formName.txtHouseName.focus();
		return false;
	}
	else if(removespc(formName.txtCountry.value)=="")
	{
		alert("Enter the Country");
		formName.txtCountry.focus();
		return false;
	}
	else if(removespc(formName.txtStreet.value)=="")
	{
		alert("Enter the Street");
		formName.txtStreet.focus();
		return false;
	}
	else if(removespc(formName.txtEmail.value)=="")
	{
		alert("Enter the Email Address");
		formName.txtEmail.select();
		return false;
	}
	else if(!MailValidate(formName.txtEmail.value))
	{
		alert("Enter the Vaild Email Address");
		formName.txtEmail.focus();
		return false;
	}
	else if(removespc(formName.txtTown.value)=="")
	{
		alert("Enter the Town");
		formName.txtTown.focus();
		return false;
	}
	else if(removespc(formName.txtContact.value)=="")
	{
		alert("Enter the Contact Number");
		formName.txtContact.focus();
		return false;
	}
	else if(formName.ddPaymentOptions.value=="-1")
	{
		alert("Choose the Payment Option");
		formName.ddPaymentOptions.focus();
		return false;
	}

	if(formName.dynamiccode.value==""){
		alert("Security Code cannot be blank.");
		formName.dynamiccode.focus();
		return false;
	}

	return true;
}
