//		if (checkrequired(frm) == false) return false;
//		if (verifyMail(objMail) == false) return false;
//		if (checkbody(frm,"CONTENT")== false) return false;
//		if(Pdfval(frm.requiredpdf)==false) return false  ;
//		if (chkSelectedRecord(frm) == false ) return false ;
//		if(ValidateDate(frm.month.value+'/'+frm.day.value+'/'+frm.year.value)== false ) return false ;
//-------------------------------------------------
var Header ='    <tr><td class="TopSpacer">&nbsp;</td><td width="900" class="TopSpacer"><table width="900" border="0" cellspacing="0" cellpadding="0"><tr><td width="450"><a href="index.php"><img src="images/pc_genius_logo.gif" alt="" width="196" height="78"></a></td><td width="450" valign="top" class="PhoneBg"><table border="0" align="right" cellpadding="0" cellspacing="0"><tr><td height="52">&nbsp;</td></tr><tr><td class="SmallText Caps TextColor3"><a href="index.php" class="TextColor3 Links"><strong>Home</strong></a>&nbsp;&nbsp; |&nbsp;&nbsp;       <a href="aboutus.html" class="TextColor3 Links"><strong>About us</strong></a>&nbsp;&nbsp; |&nbsp;&nbsp; <a href="contactus.html" class="TextColor3 Links"><strong>Contact us</strong></a></td></tr></table></td></tr></table></td><td class="TopSpacer">&nbsp;</td></tr><tr><td class="BgColor2">&nbsp;</td><td width="900" class="BgColor2"><a href="application_development.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image2\',\'\',\'images/link1_hover.gif\',1)"><img src="images/link1.gif" name="Image2" width="173" height="40" border="0"></a><a href="web_hosting.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image19\',\'\',\'images/link5_hover.gif\',1)"><img src="images/link5.gif" name="Image19" width="115" height="40" border="0"></a><a href="web_design_and_programming.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image3\',\'\',\'images/link2_hover.gif\',1)"><img src="images/link2.gif" name="Image3" width="206" height="40" border="0"></a><a href="graphic_and_logo_design.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image4\',\'\',\'images/link3_hover.gif\',1)"><img src="images/link3.gif" name="Image4" width="179" height="40" border="0"></a><a href="portfolio.php" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image5\',\'\',\'images/link4_hover.gif\',1)"><img src="images/link4.gif" name="Image5" width="101" height="40" border="0"></a><a href="on-site_services.html" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage(\'Image9\',\'\',\'images/link6_hover.gif\',1)"><img src="images/link6.gif" name="Image9" width="126" height="40" border="0"></a></td><td class="BgColor2">&nbsp;</td></tr>' ;

var LeftCol = '<table width="250" border="0" cellspacing="0" cellpadding="0"><tr><td width="15" height="60">&nbsp;</td><td width="220" height="60">&nbsp;</td><td width="15" height="60">&nbsp;</td></tr><tr><td>&nbsp;</td><td><table width="220" border="0" cellspacing="0" cellpadding="0"><tr><td>"PC Genius helped us get our website up and  running in no time. They were there for us every step of the way and made sure  we knew where we stood in the process at all times. I would HIGHLY recommend  them for you next project." <div class="PaddingTB5" align="right">- Mike (Florida Dive Adventures)</div></td></tr><tr><td class="DottedHor">&nbsp;</td></tr><tr><td>"Jeff and the team at PC Genius made me feel at  ease during our web page design. We had a specific look that we were shooting  for and they delivered that and then some. They provided ideas along the way  that really took our page to the next level. They are always available by phone  or IM and that was key as well. Keep up the good work!"<div class="PaddingTB5" align="right">-John (Technuba)</div></td></tr><tr><td>&nbsp;</td></tr></table></td><td>&nbsp;</td></tr></table>' ;

var Footer1 = '<table width="870" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td height="27" valign="bottom"><img src="images/our_technologies.gif" alt="" width="100" height="13"></td></tr><tr><td><table width="870" border="0" cellspacing="0" cellpadding="0"><tr><td width="216" height="90" align="center"><img src="images/logo1.gif" alt="" width="35" height="65"></td><td width="1" height="90" align="center"><img src="images/our_clients_sep.gif" alt="" width="1" height="47"></td><td width="217" height="90" align="center"><img src="images/logo2.gif" alt="" width="111" height="59"></td><td width="1" height="90" align="center"><img src="images/our_clients_sep.gif" alt="" width="1" height="47"></td><td width="218" height="90" align="center"><img src="images/logo3.gif" alt="" width="95" height="51"></td><td width="1" height="90" align="center"><img src="images/our_clients_sep.gif" alt="" width="1" height="47"></td><td width="216" height="90" align="center"><img src="images/logo4.gif" alt="" width="171" height="53"></td></tr></table></td></tr></table>' ;

var Footer2 = '<table width="900" border="0" cellspacing="0" cellpadding="0"><tr><td height="25" align="center" class="SmallText Caps TextColor1"><a href="index.php" class="Links TextColor1">Home</a>&nbsp; |&nbsp; <a href="application_development.html" class="Links TextColor1">Application Design</a>&nbsp; | <a href="web_hosting.html" class="Links TextColor1">web hosting</a> |&nbsp; <a href="web_design_and_programming.html" class="Links TextColor1">Web design and Programming</a> &nbsp;|&nbsp; <a href="graphic_and_logo_design.html" class="Links TextColor1">Graphic and logo design</a> &nbsp;|&nbsp; <a href="portfolio.php" class="Links TextColor1">Portfolio</a>&nbsp; |&nbsp; <a href="aboutus.html" class="Links TextColor1">About us</a> &nbsp;|&nbsp; <a href="contactus.html" class="Links TextColor1">Contact us</a> </td></tr><tr><td height="25" align="center" class="SmallText Caps TextColor1">Copyright &copy; 2008 PCGENIUS. All rights reserved</td></tr></table>' ;

//-------------------------------------------------
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

//-------------------------------------------------
	function checkPassword(frm)
	{
		if (checkrequired(frm) == false) return false;
		if (frm.requirednewpassword.value !=  frm.requiredconfirmpassword.value)
		{
			alert("Password Mismatch.") ;
			frm.requiredconfirmpassword.focus() ;
			return false ;
		}
		return true ;
	}
//-------------------------------------------------
	function SetBgColor(obj)
	{
			obj.style.backgroundColor='#F0F0F0' ;
	}
//---------------------------------------
	function SetDefaultBbColor(obj)
	{
			obj.style.backgroundColor='#FFFFFF' ;
	}
//-----------------------------------------
	function Arraycheckrequired(which) 
	{ 
	
		var pass=true; 
		if (document.images) 
		{ 
			for (i=0;i<which.length;i++) 
			{ 
				var tempobj=which.elements[i]; 
				if (tempobj.name.substring(0,8)=="required") 
				{ 
	
					if ((tempobj.type=="text"||tempobj.type=="textarea"||tempobj.type=="password" ||tempobj.type.toString().charAt(0)=="s")&&			tempobj.value=='')
					{ 
						if(tempobj.disabled==false)
						{
							pass=false; 
							break; 
						}
					} 
				} 
			} 
		} 
		if (!pass) 
		{ 
			shortFieldName=tempobj.name.substring(8,30).toUpperCase(); 
			idStartPos=tempobj.name.indexOf("-") ;
			shortFieldName=tempobj.name.substring(8,idStartPos).toUpperCase(); 
			
			alert("Please make sure the "+shortFieldName+" field was properly completed."); 
			tempobj.focus() ;						
			return false; 
					
		} else 
		
		return true; 
				
	} 	
//---------------------------------------	
	function checkRank(frm)
	{
		if (Arraycheckrequired(frm) == false ) return false ;
		return true ;
	}

//-------------------------------------------------
	function checkLogin(which)
	{
		if (verifyMail(which.requiredEmail) == false) return false;
		if (checkrequired(which) == false) return false;
		return true;		
	}
//-------------------------------------------------
	function SetCombo(theDayElement,mt)
	{
		var optionCounter;
		for (optionCounter = 0; optionCounter < theDayElement.length;optionCounter++)
		{
		  if(theDayElement.options[optionCounter].value == mt)
		  {
			  theDayElement.options[optionCounter].selected = true
		  }
		}
	}
//-------------------------------------------------
	function winOpenNew(str,Name,Resize,Width,Height,Left,Top)
	{
		window.open(str,Name,'toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable='+Resize+',width='+Width+',height='+Height+',left='+Left+',top='+Top)
	}
//-------------------------------------------------
	function chkAll(form)
	{
		len = form.elements.length;
		var i=0;
		Checked=false ;
		for( i=0 ; i<len ; i++)
		{
			if (form.elements[i].type=='checkbox')
			{
				form.elements[i].checked=true;
			}
		}
		return false ;
	}
//---------------------------------------------------
	function UnchkAll(form)
	{
		len = form.elements.length;
		var i=0;
		Checked=false ;
		for( i=0 ; i<len ; i++)
		{
			if (form.elements[i].type=='checkbox')
			{
				form.elements[i].checked=false;
			}
		}
		return false ;
	}
//---------------------------------------------------
	function SelectOption(frm,obj)
	{
		len = frm.elements[obj].length;
		i = 0;
		
		while (i < len)
		{
			frm.elements[obj][i].selected = 'true' ;
			i++;
		}
	}
//---------------------------------------------------
function VerifyLink(obj)
{
	if (obj.value.substring(0, 7) != 'http://' && obj.value.substring(0, 8) != 'https://')
	{
		alert('Enter valid link') ;
		obj.focus() ;
		return false ;
	}

	return true ;
}
//---------------------------------------------------

function ImageDeleteCheck() 
	{
		var Verify=confirm("Are you sure you want to delete this  image ?");
		if (Verify == true)
		{
			return true;			
		}
		else {
			return false;			
		}
	}
//-----------------------------------------
function checkContactUs(frm)
	{
		if (verifyMail(frm.requiredEmail) == false) return false;	
		if (checkrequired(frm) == false) return false;
		return true ;
	}
//----------------------------------------

function checkNews(frm)
	{
		if (checkrequired(frm) == false) return false;
		var oEditor = FCKeditorAPI.GetInstance('MyEditor');
		var content = oEditor.GetXHTML(true)
		if(content=='')
		{
			alert('Please make sure the DESCRIPTION field was properly completed.');
			return false ;
		}

		return true ;
	}
//----------------------------------------
function checkPortfolio(frm, frmtype)
	{
		if (checkrequired(frm) == false) return false;
		if (frmtype == 'add')
		{
			if(Imageval(frm.requiredImage)==false) return false  ;
		}
		else
		{
			if (frm.Image && frm.Image.value != '')
			{
				if(Imageval(frm.Image)==false) return false  ;
			}
		}
		if (VerifyLink(frm.requiredWebsite) == false) return false;

		return true ;
	}
//----------------------------------------
function checkContact(frm)
{
	if (verifyMail(frm.requiredEmail) == false) return false;	
	if (checkrequired(frm) == false) return false;
	return true ;
}
//----------------------------------------
