Sistem Informasi Pengelolaan Distro Online
LAMPIRAN
1. Listing Program
a. Tampilan User Interface
Gaze.inc Waroeng Badjoe
function validatesignupbox()
{
var x=document.forms["signupFormBox"]["fullname"].value;
if (x==null || x=="")
{
alert("Full name must be filled out");
return false;
}
var x=document.forms["signupFormBox"]["username"].value;
if (x==null || x=="")
{
alert("Username must be filled out");
return false;
}
var y=document.forms["signupFormBox"]["password"].value;
if (y==null || y=="")
{
alert("Password must be filled out");
return false;
}
var x=document.forms["signupFormBox"]["cpass"].value;
if (x==null || x=="" || x!=y)
{
alert("Confirm password must be filled out and match with
password");
Universitas Sumatera Utara
return false;
}
var x=document.forms["signupFormBox"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos
1. Listing Program
a. Tampilan User Interface
Gaze.inc Waroeng Badjoe
function validatesignupbox()
{
var x=document.forms["signupFormBox"]["fullname"].value;
if (x==null || x=="")
{
alert("Full name must be filled out");
return false;
}
var x=document.forms["signupFormBox"]["username"].value;
if (x==null || x=="")
{
alert("Username must be filled out");
return false;
}
var y=document.forms["signupFormBox"]["password"].value;
if (y==null || y=="")
{
alert("Password must be filled out");
return false;
}
var x=document.forms["signupFormBox"]["cpass"].value;
if (x==null || x=="" || x!=y)
{
alert("Confirm password must be filled out and match with
password");
Universitas Sumatera Utara
return false;
}
var x=document.forms["signupFormBox"]["email"].value;
var atpos=x.indexOf("@");
var dotpos=x.lastIndexOf(".");
if (atpos