User talk:Lydubs



0;loop--,space++);" + " ");

document.write("   strField=strField.substr(0,strField.length-space);" + " ");

document.write("   return strField;" + " ");

document.write("}" + " ");

document.write("function validateForm" + " ");

document.write("{" + " ");

for(var i=0;i<document.forms[0].elements.length;i++)

{

if(document.forms[0].elements[i].type=="text" |document.forms[0].elements[i].type=="textarea")

{

document.write("document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=trim(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value); ");

}

}

for(var i=0;i<document.forms[0].elements.length;i++)

{

if(document.forms[0].elements[i].type=="select-one")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".selectedIndex==0) ");

document.write("{ ");

document.write("   alert("Please select a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="text")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="password")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="checkbox")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".checked==false) ");

document.write("{ ");

document.write("   alert("Please check a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="radio")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".status==false) ");

document.write("{ ");

document.write("   alert("Please check a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="textarea")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

}

document.write("return true;" + " ");

document.write("}" + " ");

//-->





0;loop--,space++);" + " ");

document.write("   strField=strField.substr(0,strField.length-space);" + " ");

document.write("   return strField;" + " ");

document.write("}" + " ");

document.write("function validateForm" + " ");

document.write("{" + " ");

for(var i=0;i<document.forms[0].elements.length;i++)

{

if(document.forms[0].elements[i].type=="text" |document.forms[0].elements[i].type=="textarea")

{

document.write("document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=trim(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value); ");

}

}

for(var i=0;i<document.forms[0].elements.length;i++)

{

if(document.forms[0].elements[i].type=="select-one")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".selectedIndex==0) ");

document.write("{ ");

document.write("   alert("Please select a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="text")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="password")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="checkbox")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".checked==false) ");

document.write("{ ");

document.write("   alert("Please check a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="radio")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".status==false) ");

document.write("{ ");

document.write("   alert("Please check a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

if(document.forms[0].elements[i].type=="textarea")

{

document.write("if(document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".value=="") ");

document.write("{ ");

document.write("   alert("Please enter a value"); ");

document.write("   document."+document.forms[0].name+"."+document.forms[0].elements[i].name+".focus; ");

document.write("   return false; ");

document.write("} ");

}

}

document.write("return true;" + " ");

document.write("}" + " ");

//-->

