?
Path : /home/yogsadhna/public_html/admin/ |
Current File : /home/yogsadhna/public_html/admin/javascript.js |
function validation() { if(document.loginform.login.value=="") { document.loginform.login.focus(); document.getElementById('error').innerHTML='Please enter the LogIn ID'; document.loginform.login.className = 'empty'; return false; } else { document.loginform.login.className = 'inputbox'; } if(document.loginform.password.value=="") { document.loginform.password.focus(); document.getElementById('error').innerHTML='Please enter the Password'; document.loginform.password.className = 'empty'; return false; } else { document.loginform.password.className = 'inputbox'; } return true; } function valid() { if(document.cat.name.value=="") { document.cat.name.focus(); document.getElementById('error').innerHTML='Please enter the Product Categoty Name'; document.cat.name.className = 'empty'; return false; } else { document.cat.name.className = 'inputbox'; } return true; } function validationChange() { if(document.change.oldPassword.value=="") { document.change.oldPassword.focus(); document.getElementById('error').innerHTML='Please enter the Old Password'; document.change.oldPassword.className = 'empty'; return false; } else { document.change.oldPassword.className = 'inputbox'; } if(document.change.newPassword.value=="") { document.getElementById('error').innerHTML='Please enter the new Password'; document.change.newPassword.className = 'empty'; document.change.newPassword.focus(); return false; } else { document.change.newPassword.className = 'inputbox'; } if(document.change.conPassword.value=="") { document.getElementById('error').innerHTML='Please enter the Confirm Password'; document.change.conPassword.className = 'empty'; document.change.conPassword.value="" document.change.conPassword.focus(); return false; } else { document.change.conPassword.className = 'inputbox'; } if(document.change.conPassword.value!=document.change.newPassword.value) { document.getElementById('error').innerHTML='Missmatch the Password and Confirm Password'; document.change.newPassword.className = 'empty'; document.change.conPassword.value="" document.change.newPassword.value="" document.change.newPassword.focus(); return false; } else { document.change.conPassword.className = 'inputbox'; } return true; } function validproduct() { if(document.product.name.value=="") { document.product.name.focus(); document.getElementById('error').innerHTML='Please enter the Product Name'; document.product.name.className = 'emptyp'; return false; } else { document.product.name.className = 'inputboxp'; document.getElementById('error').innerHTML=' '; } /*/if(document.product.details.value=="") { document.product.details.focus(); document.getElementById('error').innerHTML='Please enter the Product Details'; document.product.details.className = 'emptyp'; return false; } else { document.product.details.className = 'inputboxp'; document.getElementById('error').innerHTML=' '; }*/ if(document.product.image.value=="") { document.product.image.focus(); alert("Please Upload the Product Image"); return false; } if(document.product.imagethum.value=="") { document.product.imagethum.focus(); alert("Please Upload the Product Thumbnail"); return false; } return true; }