<?php 
/*
##################################################################
#                       PHP 4&5 MySQL 4&5                        #
##################################################################
#           Copyright (c) 2004-2008 Armia Systems Inc            #
##################################################################
#               This file is part of Cybermatch site             #
##################################################################
#    Developed By: simi (simi@armia.com)                         #

##################################################################
#               Developed On:   03-04-2008                       #
##################################################################
#               Modified By:                                     #
##################################################################
#               Modified On:                                     #
##################################################################
# This script may not be distributed, sold, given away for free  #
# to third party, or used as a part of any internet services 	 #
# such as webdesign etc.                                         #
##################################################################
*/

require_once ("config.inc.php");
require_once ("includes/mysql.inc.php");
require_once ("classes/miscellaneous.class.php");
require_once ("classes/misc.class.php");
require_once ("classes/userside.class.php");

$message	= "";
$array		= array();
if (!$objDB) {
	$message	= "Unable to Locate Database Server.";
} else {
		$objM	= new misc($objDB);
	//send mail to administation
	if(isset($_POST['btnGo']) && $_POST['btnGo']=='Send Mail')
	{
		$message	= $objM->contact_us_mail($_POST);
	}//end if

	$objMc		= new miscellaneous($objDB);
	$array		= $objMc->get_cms(4);
}

include_once ("title.inc.php");
include_once ("tophtml.inc.php");
?>
<script language="javascript" type="text/javascript">
function Validate()
{
	var fm=document.frmContact;
	if(fm.txtEmail.value=='')
	{
		alert("Email can't be blank");
		fm.txtEmail.focus();
		return false;
	}//end if
	if(fm.txtMsg.value=='')
	{
		alert("Comments can't be blank");
		fm.txtMsg.focus();
		return false;
	}//end if

	return true;
}//end function
</script>

<div class="row">
	<div class="eight columns">
		 <div class="row"><div class="inenr-hd"><h2>Contact Us</h2></div></div>
		<div class="row" align="justify"><?php //echo isset($array['tContent']) ? stripslashes($array['tContent']) : ""?></div>
		<div class="search-rslts">
			<div class="row maintext1">
				<form action="" method="post" name="frmContact" onSubmit="return Validate();">
					<div class="row"><h2 class="headings2">Information</h2></div>
					<?php if(isset($message) && trim($message)!='')
						{
					?>
					<div class="row warning"><?php echo $message;?></div>
					<?php
					}//end if
					?>
					
					<div class="full_row">
						<div class="two columns">Name</div>
						<div class="five columns margin_R_280"><input name="txtName" type="text" class="commononetextbox" size="45"></div>
					</div>
					
					<div class="full_row">
						<div class="two columns">Email <span class="warning">*</span></div>
						<div class="five columns margin_R_280"><input name="txtEmail" type="text" class="commononetextbox" size="45"></div>
					</div>
					
					<div class="full_row">
						<div class="two columns">Comments <span class="warning">*</span></div>
						<div class="five columns margin_R_280"><textarea name="txtMsg" cols="45" rows="8" class="commononetextbox msg_feild"></textarea></div>
					</div>
					
					<div class="full_row">
						<div class="two columns">&nbsp;</div>
						<div class="five columns margin_R_280"><input name="btnGo" type="submit" class="loginbutton" value="Send Mail"></div>
					</div>
					
				</form>	
			</div>
		</div>
	</div>
	<div class="four columns right search_result_R">
		<?php include_once ("left.inc.php");?>
	</div>
</div>

	
<?php include_once('bottomhtml.inc.php');?>
