<?php
ob_start();
session_start();
include_once("dbconnect.php");

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Ideal Fengling Group... I FEEL GOOD</title>
<link href="docstyle/css.css" rel="stylesheet" type="text/css" />
<script language="javascript">
function changeclass(key){
key.className = "boxhover";
}
function changeagain(key){
key.className = "box";
}
</script>
<SCRIPT src="jquery-1.4.4.min.js" type="text/javascript"></SCRIPT>
<SCRIPT  src="jquery.orbit.min.js" type="text/javascript"></SCRIPT>
<SCRIPT type=text/javascript>
		$(window).load(function() {
			$('#featured').orbit({
				"animation" : "horizontal-push"
			});
		});
	</SCRIPT>
<link href="home.css" rel="stylesheet" type="text/css" />


<link rel="stylesheet" type="text/css" href="docstyle/ddsmoothmenu.css" />

<!--<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>-->
<script type="text/javascript" src="ddsmoothmenu.js">

/***********************************************
* Smooth Navigational Menu- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/

</script>

<script type="text/javascript">

ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

ddsmoothmenu.init({
	mainmenuid: "smoothmenu2", //Menu DIV id
	orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
	//customtheme: ["#804000", "#482400"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
})

</script>
<style type="text/css">
<!--
.style6 {font-family: Arial, Helvetica, sans-serif}
-->
</style>

<script type="text/javascript">
function valid12()
{
	var d=document.lgn;
	if(d.Fname.value=="")
	{
	
		alert("Please Enter Your First Name");
		d.Fname.focus();
		return false;
	}
	
		if(d.Lname.value=="")
	{
	
		alert("Please Enter Your Lname Name");
		d.Lname.focus();
		return false;
	}
	
	
	var regExpression = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;

	if(d.Email.value=="")
	{
		alert("Please Enter Your Email Address");
		d.Email.focus();
		return false;
	}
	 if (! regExpression.test(d.Email.value) )
    {
      alert("Email address is invalid");
      d.Email.focus();
      d.Email.select();
      return false;
    }
	
	
	if(d.Phone.value=="")
	{
		alert("Please Enter Your Phone Number");
		d.Phone.focus();
		return false;
	}
	
	if(d.password.value=="")
	 {
	 alert("Please Enter The Password");
	 d.password.focus();
	 return false;
	 }
	 	 if(d.repassword.value=="")
	 {
	 alert("Please Enter The Verify Password");
	 d.repassword.focus();
	 return false;
	 }
	    	 if(d.password.value!=d.repassword.value)
	 {
	 alert("Password And Verify Password Mismatched Please Re-Enter Passwords");
	 d.password.focus();
	 return false;
	 }
	
	
	
	
	return true;
	
}
function validatephone(xxxxx) {
	 var maintainplus = '';
 	var numval = xxxxx.value
 	if ( numval.charAt(0)=='+' ){ var maintainplus = '+';}
 	curphonevar = numval.replace(/[\\A-Za-z!"£$%^&*+_={};:'@#~,.¦\/<>?|`¬\]\[]/g,'');
 	xxxxx.value = maintainplus + curphonevar;
 	var maintainplus = '';
 	xxxxx.focus;
}

</script>
</head>
<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td align="center" valign="top" id="table"><table width="1000" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td height="228" align="left" valign="bottom"><?php include_once("header.php"); ?></td>
          </tr>
          <tr>
            <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="9" align="left" valign="top" style="background:url(images/shodow_left.png) repeat-y top left;">&nbsp;</td>
                <td height="500" align="left" valign="top" id="cont"><table width="100%" border="0" cellspacing="0" cellpadding="0" summary="
">
                  <tr>
                    <td width="216" align="left" valign="top"><?php include_once("leftlink.php"); ?></td>
                    <td align="left" valign="top"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                          
                          <tr>
                            <td height="10"></td>
                            </tr>
                          <tr>
                            <td align="left" valign="top"><table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="left" valign="top" id="wel_box"><h1>Register</h1>
                                 <form action="reginsert.php" name="lgn" method="post" >
                                  <table width="100%"  cellpadding="4" 
cellspacing="1" class="reference" >
                                    <tbody>
                                      <tr></tr>
                                      <tr>
                                        <td colspan="5" >Please enter
                                          account information.</td>
                                      </tr>
                                      <tr>
                                        <td  width="33%" >First Name :</td>
                                        <td align="left"  width="67%" ><input name="Fname" id="Fname" type="text" /></td>
                                      </tr>
                                      <tr>
                                        <td >Last Name :</td>
                                        <td colspan="4" align="left" ><input name="Lname" id="Lname" type="text" /></td>
                                      </tr>
                                      <tr>
                                        <td >Email Address :</td>
                                        <td colspan="4" align="left" ><input name="Email" id="Email" onblur="dochange(this.value);" 
type="text" /></td>
                                      </tr>
                                      <tr>
                                        <td >Phone :</td>
                                        <td colspan="4" align="left" ><input name="Phone" id="Phone" type="text" /></td>
                                      </tr>
                                      <tr>
                                        <td >Fax:</td>
                                        <td colspan="4" align="left" ><input name="Fax" id="Fax" type="text" /></td>
                                      </tr>
                                      <tr>
                                        <td >Password:</td>
                                        <td colspan="4" align="left" ><input name="password" id="password" type="password" /></td>
                                      </tr>
                                      <tr>
                                        <td >Retype Password:</td>
                                        <td colspan="4" align="left" ><input name="repassword" id="repassword" type="password" /></td>
                                      </tr>
                                      <tr>
                                        <td align="left" >&nbsp;</td>
                    <td colspan="4" align="left" ><input type="image" src="images/submi.gif" width="131" height="23" alt="" style="border:none;" onclick="return valid12();" /></td>
                                      </tr>
                                      <tr>
                                        <td colspan="5" align="center" 
>&nbsp;</td>
                                      </tr>
                                    </tbody>
                                  </table>
                                  </form>
                                  </td>
                              </tr>
                              </table></td>
                          </tr>
                          </table></td>
                        </tr>
                      </table></td>
                    </tr>
                  </table></td>
                <td width="9" align="left" valign="top" style="background:url(images/shodow_right.png) repeat-y top left;">&nbsp;</td>
                </tr>
              </table></td>
          </tr>
          </table></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="100" align="center" valign="top" style="background:url(images/bottom_bg.gif) repeat-x"><?php include_once("footer.php"); ?></td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>

<map name="Map" id="Map">
  <area shape="rect" coords="69,274,206,318" href="#" alt="" />
</map>

<map name="Map2" id="Map2">
  <area shape="rect" coords="87,255,204,295" href="#" alt="" />
</map>
</body>
</html>
