function test()
{
	alert("test form java scriopt file");
}
function TrimForm(frm)
	{	
	ELS=frm.elements		
	for (a=0;a<ELS.length;a++)
		{
		if ( ELS[a].type=="password" )ELS[a].value=Trim(ELS[a].value)
		if ( ELS[a].type=="text" )ELS[a].value=Trim(ELS[a].value)
		if ( ELS[a].type=="textarea" )ELS[a].innerText=Trim(ELS[a].innerText)			
		}
	}
function Trim(s) 
	{
	while ((s.substring(0,1) == ' ') || (s.substring(0,1) == '\n') || (s.substring(0,1) == '\r'))
		{
		s = s.substring(1,s.length);
		}
	while ((s.substring(s.length-1,s.length) == ' ') || (s.substring(s.length-1,s.length) == '\n') || (s.substring(s.length-1,s.length) == '\r'))
		{
		s = s.substring(0,s.length-1);
		}
	return s;
	}// is required	
function vld_chbox_list(frm, pm_str)
	{
	var len = frm.elements.length;
	var selected = false ;
	for (var i = 0; i < len; i++) 
		if (frm.elements[i].checked == true) selected = true ;
	if(!selected)
		{
		alert("Please select a record to perform this operation");
		return false ;
		}	
	else if( confirm ("Are you sure you want to " + pm_str + "?") )
		for (var i = 0; i < len; i++) 
			if (frm.elements[i].checked == true)
				{
				frm.submit();
				return true;
				}//if
	return false;	
	}
function vld_email(pm_rqrd, emailId)
	{
	if (pm_rqrd == true && emailId.value.length == 0 )
		return "Email Address is required! \n";	
	else if (  !((/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/).test(emailId.value) || emailId.value.length == 0)  )
		return "Please enter valid Email address! \n";			
	return "" ;
	}//()
function vld_pwd_cmp(pm_rqrd, pwd1, pwd2, lenmin, lenmax)
	{
	if (pm_rqrd == true && pwd1.value.length == 0 )			return "New Password is required! \n";	
	else if (pm_rqrd == true && pwd2.value.length == 0 )	return "Confirm Password is required! \n";	
	else if ( !(pwd1.value.indexOf(" ") == -1 ) )			return "Please enter valid Password, spaces are not allow! \n"
	else if ( !(pwd1.value.indexOf("'") == -1 ) )			return "Please enter valid Password, ' are not allow! \n"
	else if(! (( pwd1.value.length >= lenmin && pwd1.value.length <= lenmax) ||  pwd1.value.length == 0 ) )
		return "Password length can not be less than "+ lenmin +" or greater than " + lenmax + "! \n"
	else if( pwd1.value != pwd2.value )						return "Confirm Password do not Match! \n"
	return ""
	}
	
function vld_num(pm_rqrd,pm_fld,pm_str)
	{		
	if( pm_rqrd == true && pm_fld.value.length == 0 )
		return pm_str + " is required! \n";		
	else if( pm_fld.value.indexOf(" ") != -1  )
		return "Please enter Valid " + pm_str + ", spaces are not allow! \n" ;
	else if( pm_fld.value.indexOf("'") != -1  )
		return "Please enter Valid " + pm_str + ", ' are not allow! \n" ;
	else if ( isNaN(pm_fld.value) )
		return "Please enter valid " + pm_str + " number! \n";	
	return "";
	}
function any_Num(pm_num)
	{
	for (var i=0;i<10;i++)
		{			
		if(pm_num.value.indexOf(i) != -1 )
			return true;
		}			
	return false;			
	}
function vld_word(pm_rqrd, pm_fld,pm_str)
	{
	if (pm_rqrd == true && pm_fld.value.length == 0 )
		return pm_str + " is required! \n";				
	else if( pm_fld.value.indexOf(" ") != -1)
		return "Please enter Valid " + pm_str + ", spaces are not allow! \n" ;
	else if( pm_fld.value.indexOf("'") != -1)
		return "Please enter Valid " + pm_str + ", ' are not allow! \n" ;
	else if(any_Num(pm_fld))
		return "Please enter valid " + pm_str + ", numbers are not allow! \n";
	return "";
	}	
function vld_words(pm_rqrd, pm_fld, pm_str)
	{			
	if (pm_rqrd == true && pm_fld.value.length == 0 )
		return pm_str + " is required! \n";	
	else if( pm_fld.value.indexOf("'") != -1)
		return "Please enter Valid " + pm_str + ", ' are not allow! \n" ;
	else if(any_Num(pm_fld))
		return "Please enter valid " + pm_str + ", numbers are not allow! \n";						
	return ""
	}		
function vld_str(pm_rqrd, pm_fld,pm_str)
	{
	if (pm_rqrd == true && pm_fld.value.length == 0 )
		return pm_str + " is required! \n";				
	else if( pm_fld.value.indexOf(" ") != -1)
		return "Please enter Valid " + pm_str + ", spaces are not allow! \n" ;
	else if( pm_fld.value.indexOf("'") != -1)
		return "Please enter Valid " + pm_str + ", ' are not allow! \n" ;
	return "";
	}
function vld_smry(pm_rqrd, pm_fld,pm_str)
	{
	if (pm_rqrd == true && pm_fld.value.length == 0 )
		return pm_str + " is required! \n";	
	else if( pm_fld.value.indexOf("'") != -1)
		return "Please enter Valid " + pm_str + ", ' are not allow! \n" ;
	return "";
	}
function vld_rqd(pm_fld,pm_str)
	{
	if (pm_fld.value.length == 0 )
		return pm_str + " is required! \n";	
	return "";
	}	
function vld_year(pm_rqrd, pm_year) 
	{	
	if (pm_rqrd == true && pm_year.value.length == 0 )
		return "Year is required! \n";		
	else if ( !(pm_year.value.indexOf (" ") == -1) )
		return "Please enter valid Year, spaces are not allow! \n";
	else if ( !(pm_year.value.length == 4 || pm_year.value.length == 0) )
		return "Please enter Year like 2006 or 1988 ,****\n";
	else if( isNaN(pm_year.value)  )
		return "Please enter valid Year! \n";
	return "";					
	}//()
function vld_select(pm_rqrd, pm_cbox,pm_str)	
	{
	if (pm_cbox)
		{
		if( pm_rqrd == true && pm_cbox.value.length == 0 || pm_cbox.value == "" )
			return pm_str + " is required! \n";	
		else
			return ""
		}
	else if(  pm_rqrd == true && (!pm_cbox) )
		return pm_str + " is required! \n";	
	else
		return ""
	}
		
//////////////////////////////////// old java.cs   added
function fCheckAll(pform)
	{
	var ml = pform;
	var len = ml.elements.length;
	if (ml.chkAll.checked == true)
		{
		for (var i = 0; i < len; i++) 
			{
			var e = ml.elements[i];
			e.checked = true;
			}
		}
	else if (ml.chkAll.checked == false)
		{
		for (var i = 0; i < len; i++) 
			{
			var e = ml.elements[i];
			e.checked = false;
			}
		}
	}//()

var popUpWin=0;
function popUpWindow(URLStr,left, top, width, height)
	{
	if(popUpWin)
		{
		if(!popUpWin.closed) popUpWin.close();
		}
	popUpWin = open(URLStr, 'popUpWin', 'toolbar=yes,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	}

function SwitchMenu(obj)
	{
	if(document.getElementById)
		{
		var el = document.getElementById(obj);
		var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change
		if(el.style.display != "block")
			{ //DynamicDrive.com change
			for (var i=0; i<ar.length; i++)
				{
				if (ar[i].className=="submenu") //DynamicDrive.com change
					ar[i].style.display = "none";
				}//for
			el.style.display = "block";
			}//if
		else
			{
			el.style.display = "none";
			}//else
		}//if
	}//()
// file exetention 3 methoeds
function ListFind(list, value)
{ 
  var i = 0;
  var delimiter = ',';
  var returnValue = -1;
  var _tempArray = new Array();
  value = value.toLowerCase();
  if(ListFind.arguments.length == 3)
    delimiter = ListFind.arguments[2];
  _tempArray = list.split(delimiter);
  for(i = 0; i < _tempArray.length; i++)
  {
    if(_tempArray[i] == value)
    {
      returnValue = i;
      break;
    }
  }  
  return returnValue;
}

function ListFindNoCase(list, value)
{
  var i = 0;
  var delimiter = ',';
  var returnValue = -1;
  var _tempArray = new Array();
  if(ListFindNoCase.arguments.length == 3)
    delimiter = ListFindNoCase.arguments[2].toLowerCase();
  list = list.toLowerCase();
  value = value.toLowerCase();
  _tempArray = list.split(delimiter);
  for(i = 0; i < _tempArray.length; i++)
  {
    if(_tempArray[i] == value)
    {
      returnValue = i;
      break;
    }
  }
  return returnValue;
}


function ListLast(list)
{
  var delimiter = ',';
  var returnValue = '';
  var _tempArray = new Array();
  if(ListLast.arguments.length == 2) delimiter = ListLast.arguments[1].toLowerCase();
  _tempArray = list.split(delimiter);
  if(_tempArray.length)
    returnValue = _tempArray[_tempArray.length - 1];
  else
    returnValue = list;
  return returnValue;
}

//////////////////////////////////// old java.cs  not added b/c of errors 
/*
// JavaScript Document
	if (document.getElementById){ //DynamicDrive.com change
	document.write('<style type="text/css">\n')
	document.write('.submenu{display: none;}\n')
	document.write('</style>\n')
	}
function fSubmit(i)
	{
		if (i == 1){
			frmCheckProducts.submit();
		}
		else if (i == 2){
			frmCheckCategory.submit();		
		}
	}

function sRedirect(URL){
	location = URL;   //loc;
}

function fCategoryInfo()
{
		if (frmCatInfo.txtCatName.value=='')
		{
			alert("Please enter category name to proceed.");
			frmCatInfo.txtCatName.focus();
		}
		else
		{
			frmCatInfo.submit();
		}
}

function fDeleteCheck(formName)
{
	//For calling use this onClick event--->   return fDeleteCheck(formname);
	var ml = formName;
	var len = ml.elements.length;
	for (var i = 0; i < len; i++) 
	{
			if (ml.elements[i].checked == true)
			{
				formName.submit();
				return true;
			}
	}
	alert("Please select a record to perform this operation.");
	return false;	
}

///////////////////////////////////////////////////////////////////////////////////
function fLinkManager()
{
		if (frmLinkManager.txtBody.value=='')
		{
			alert("Please enter body text to proceed.");
			frmLinkManager.txtBody.focus();
		}
		else if (frmLinkManager.txtArea1.value=='')
		{
			alert("Please enter text area 1 to proceed.");
			frmLinkManager.txtArea1.focus();
		}
		else if (frmLinkManager.txtArea2.value=='')
		{
			alert("Please enter text area 2 to proceed.");
			frmLinkManager.txtArea2.focus();
		}

		else
		{
			frmLinkManager.submit();
		}
}

function frmValidate(pform)
	{
		var nameArray
		var str = pform.txtName.value
		nameArray = str.split(" ")
		
		if( pform.txtUserName.value == "" )
		{
			alert("Please enter user name to proceed.");
			pform.txtUserName.focus();
		}
		else if( !isNaN( pform.txtUserName.value ) )
		{
			alert("Name must be characters.");
			pform.txtUserName.focus();
		}
/*		else if( nameArray.length < 2 )
		{
			alert("You must enter your full name.");
			pform.txtName.select();
		}

		else if( nameArray[1].length < 2 )
		{
			alert("Last name must be greater than 1 character");
			pform.txtName.select();
		}
*/	/*			
		else if( pform.txtPassword.value == "")
		{
			alert("Please enter password to proceed.");
			pform.txtPassword.focus();
		}
		else if( pform.txtConfirm.value == "")
		{
			alert("Please enter confirm password to proceed.");
			pform.txtConfirm.focus();
		}
		else if( pform.txtConfirm.value != pform.txtPassword.value)
		{
			alert("Password and Confirm password do not match");
			pform.txtConfirm.focus();
		}

/*		
		else if( pform.ShipState.value == "0")
		{
			alert("Please select state to proceed.");
			pform.ShipState.focus();
		}
		else if( pform.txtZip.value == "")
		{
			alert("Please enter zip/postal code to proceed.");
			pform.txtZip.focus();
		}
		else if( (pform.txtEmail.value.indexOf(".") == -1) || (pform.txtEmail.value.indexOf("@") == -1) )
		{
			alert("Please enter valid email to proceed.");
			pform.txtEmail.focus();
		}
*//*		
		else
			pform.submit();
	}
	
	function fValidateRequiredFields(tform)
	{
		var len = tform.elements.length;
		for (var i = 0; i < len; i++) 
		{
			if( tform.elements[i].value == "" )
			{
				alert("Required fields can not be left empty.");
				tform.elements[i].focus();
				return false;
			}
		}

		if( tform.txtNewPassword.value != tform.txtConfirmPassword.value )
		{
			alert("Your Confirm Password doesn't match to your New Password.");
			tform.txtConfirmPassword.focus();
			return false;
		}
		
		tform.submit();
		return true;
	}
	
	function msUpValidateFields(tform)
	{
		if( tform.txtEmail.value == "" )
		{
			alert( "Required fields can not be left empty." );
			tform.txtEmail.focus();
		}
		else if( (tform.txtEmail.value.indexOf(".") == -1) || (tform.txtEmail.value.indexOf("@") == -1) )
		{
			alert("Please enter valid email to proceed.");
			tform.txtEmail.focus();
		}
		else if( tform.txtVerifyEmail.value != tform.txtEmail.value )
		{
			alert("Your Verify Email field doesn't match to Email field.");
			tform.txtVerifyEmail.focus();
		}
		else if( tform.selAge.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selAge.focus();
		}
		else if( tform.selGender.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selGender.focus();
		}
		
		else if( tform.txtAddress.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAddress.focus();
		}
		else if( tform.txtState.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.txtState.focus();
		}
		else if( tform.txtZip.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtZip.focus();
		}
		else if( isNaN(tform.txtZip.value) )
		{
			alert("Zip must be numeric.");
			tform.txtZip.focus();
		}
		else if( tform.txtCountry.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCountry.focus();
		}
		else if( tform.txtTelephone11.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone11.focus();
		}
		else if( tform.txtTelephone12.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone12.focus();
		}
		else if( tform.txtTelephone13.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone13.focus();
		}
		else
			tform.submit();
	}
	
	function vsUpValidateFields(tform)
	{
		if( tform.txtEmail.value == "" )
		{
			alert( "Required fields can not be left empty." );
			tform.txtEmail.focus();
		}
		else if( (tform.txtEmail.value.indexOf(".") == -1) || (tform.txtEmail.value.indexOf("@") == -1) )
		{
			alert("Please enter valid email to proceed.");
			tform.txtEmail.focus();
		}
		else if( tform.txtVerifyEmail.value != tform.txtEmail.value )
		{
			alert("Your Verify Email field doesn't match to Email field.");
			tform.txtVerifyEmail.focus();
		}
		else if( tform.selAge.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selAge.focus();
		}
		else if( tform.selGender.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selGender.focus();
		}
		else if( tform.txtTaxID.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTaxID.focus();
		}
		else if( tform.txtAddress.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAddress.focus();
		}
		else if( tform.txtState.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.txtState.focus();
		}
		else if( tform.txtZip.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtZip.focus();
		}
		else if( isNaN(tform.txtZip.value) )
		{
			alert("Zip must be numeric.");
			tform.txtZip.focus();
		}
		else if( tform.txtCountry.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCountry.focus();
		}
		else if( tform.txtTelephone11.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone11.focus();
		}
		else if( tform.txtTelephone12.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone12.focus();
		}
		else if( tform.txtTelephone13.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone13.focus();
		}
		else
			tform.submit();
	}
	
	
	function vsValidateFields(tform)
	{
		if( tform.txtUserName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtUserName.focus();
		}
		else if( tform.txtPassword.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtPassword.focus();
		}
		else if( tform.txtPassword.value.length < 6 )
		{
			alert("Password must be six characters alphanumeric or more ");
			tform.txtPassword.focus();
		}
		else if( tform.txtConfirmPassword.value != tform.txtPassword.value )
		{
			alert("Your confirm password field doesn't match to Password field.");
			tform.txtConfirmPassword.focus();
		}
		else if( tform.selSecretQuestion.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.selSecretQuestion.focus();
		}
		else if( tform.txtAnswer.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAnswer.focus();
		}
		else if( tform.txtEmail.value == "" )
		{
			alert( "Required fields can not be left empty." );
			tform.txtEmail.focus();
		}
		else if( (tform.txtEmail.value.indexOf(".") == -1) || (tform.txtEmail.value.indexOf("@") == -1) )
		{
			alert("Please enter valid email to proceed.");
			tform.txtEmail.focus();
		}
		else if( tform.txtVerifyEmail.value != tform.txtEmail.value )
		{
			alert("Your Verify Email field doesn't match to Email field.");
			tform.txtVerifyEmail.focus();
		}		
		else if( tform.txtFirstName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtFirstName.focus();
		}
		else if( tform.txtLastName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtLastName.focus();
		}
		else if( tform.selAge.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selAge.focus();
		}
		else if( tform.selGender.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selGender.focus();
		}
		else if( tform.optOrganization[0].checked == false && tform.optOrganization[1].checked == false
			&& tform.optOrganization[2].checked == false && tform.optOrganization[3].checked == false && tform.optOrganization[4].checked == false)
		{
			alert("You must specify your type of organization.");
		}
		else if( tform.txtTaxID.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTaxID.focus();
		}
		else if( tform.txtAddress.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAddress.focus();
		}
		else if( tform.txtState.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.txtState.focus();
		}
		else if( tform.txtZip.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtZip.focus();
		}
		else if( isNaN(tform.txtZip.value) )
		{
			alert("Zip must be numeric.");
			tform.txtZip.focus();
		}
		else if( tform.txtCountry.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCountry.focus();
		}
		else if( tform.txtTelephone11.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone11.focus();
		}
		else if( tform.txtTelephone12.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone12.focus();
		}
		else if( tform.txtTelephone13.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone13.focus();
		}


		else if( tform.selBankAccountType.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selBankAccountType.focus();
		}
		else if( tform.txtRoutingNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtRoutingNo.focus();
		}
		else if( tform.txtBankAccountNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtBankAccountNo.focus();
		}
		else if( tform.txtNameOfAccount.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtNameOfAccount.focus();
		}
		else if( tform.txtCardNumber.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCardNumber.focus();
		}
		else if( tform.selPaymentProcedure.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selPaymentProcedure.focus();
		}
		else if( tform.txtAccountNick.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAccountNick.focus();
		}
		
		else if( tform.txtCVVNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCVVNo.focus();
		}
		else
			tform.submit();
	}
	
	
	
	function msValidateFields(tform)
	{
		if( tform.txtUserName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtUserName.focus();
		}
		else if( tform.txtPassword.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtPassword.focus();
		}
		else if( tform.txtPassword.value.length < 6 )
		{
			alert("Password must be six characters alphanumeric or more ");
			tform.txtPassword.focus();
		}
		else if( tform.txtConfirmPassword.value != tform.txtPassword.value )
		{
			alert("Your confirm password field doesn't match to Password field.");
			tform.txtConfirmPassword.focus();
		}
		else if( tform.selSecretQuestion.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.selSecretQuestion.focus();
		}
		else if( tform.txtAnswer.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAnswer.focus();
		}
		else if( tform.txtEmail.value == "" )
		{
			alert( "Required fields can not be left empty." );
			tform.txtEmail.focus();
		}
		else if( (tform.txtEmail.value.indexOf(".") == -1) || (tform.txtEmail.value.indexOf("@") == -1) )
		{
			alert("Please enter valid email to proceed.");
			tform.txtEmail.focus();
		}
		else if( tform.txtVerifyEmail.value != tform.txtEmail.value )
		{
			alert("Your Verify Email field doesn't match to Email field.");
			tform.txtVerifyEmail.focus();
		}

		else if( tform.optEmailOption[0].checked == false && tform.optEmailOption[1].checked == false )
		{
			alert("One Email option must be selected.");
		}

		else if( tform.txtFirstName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtFirstName.focus();
		}
		else if( tform.txtLastName.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtLastName.focus();
		}
		else if( tform.selAge.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selAge.focus();
		}
		else if( tform.selGender.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selGender.focus();
		}
		else if( tform.txtAddress.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAddress.focus();
		}
		else if( tform.txtState.value == "0" )
		{
			alert("Required fields can not be left empty.");
			tform.txtState.focus();
		}
		else if( tform.txtZip.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtZip.focus();
		}
		else if( isNaN(tform.txtZip.value) )
		{
			alert("Zip must be numeric.");
			tform.txtZip.focus();
		}
		else if( tform.txtCountry.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCountry.focus();
		}
		else if( tform.txtTelephone11.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone11.focus();
		}
		else if( tform.txtTelephone12.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone12.focus();
		}
		else if( tform.txtTelephone13.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtTelephone13.focus();
		}
		
		
		
		else if( tform.selBankAccountType.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selBankAccountType.focus();
		}
		else if( tform.txtRoutingNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtRoutingNo.focus();
		}
		else if( tform.txtBankAccountNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtBankAccountNo.focus();
		}
		else if( tform.txtNameOfAccount.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtNameOfAccount.focus();
		}
		else if( tform.txtCardNumber.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCardNumber.focus();
		}
		else if( tform.selPaymentProcedure.value == "null" )
		{
			alert("Required fields can not be left empty.");
			tform.selPaymentProcedure.focus();
		}
		else if( tform.txtAccountNick.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtAccountNick.focus();
		}

		else if( tform.txtCVVNo.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtCVVNo.focus();
		}
		else if( tform.txtInitialBalance.value == "" )
		{
			alert("Required fields can not be left empty.");
			tform.txtInitialBalance.focus();
		}
		else
			tform.submit();
	}

	
	function fValidateLogin(pform)
	{
		if( pform.txtUserID.value == "" )
		{
			alert("User ID can not be left empty.");
			pform.txtUserID.focus();
		}
		else if( pform.txtPassword.value == "" )
		{
			alert("Password can not be left empty.");
			pform.txtPassword.focus();
		}
		else
			pform.submit();
	}



/////////////////////////////////////////////////////////////////////////////////////////////////////


function fEmailValid()
{
	if(frmEmail.txtTo.value=='')
	{
		alert("Please enter receiver email address to proceed.");
		frmClientInformation.txtTo.focus();
	}
	else if(frmEmail.txtFrom.value=='')
	{
		alert("Please enter sender email address to proceed.");
		frmClientInformation.txtFrom.focus();
	}
	else
	{
		frmEmail.submit();
	}
}


function UserLogin(){
		if (frmUserLoginArea.txtUserName.value==''){
			alert("Please enter user name to proceed further.");
			frmUserLoginArea.txtUserName.focus();
		} 
		else if (frmUserLoginArea.txtPassword.value==''){
			alert("Please enter password to proceed further.");
			frmUserLoginArea.txtPassword.focus();
		}
		else {
			frmUserLoginArea.submit();
		}
}


*/
