//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ showGContactForm()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function showGContactForm(){
	
	baseObj=document.getElementById('divPageHolder');
	destObj=document.getElementById('divGContactFormWrapper');
	
	finLeft=(parseInt(findPosX(baseObj))+parseInt(findPosW(baseObj)))-parseInt(findPosW(destObj));
	
	destTop=findPosY(baseObj);
	//window.alert(destTop);
	destObj.style.top=destTop+'px';
	destObj.style.left='0px';
	
	footObj=document.getElementById('divFooterWrapper');
	footTop=findPosY(footObj);
	footTop=parseInt(footTop)-15; //padding
	//window.alert(footTop);
	destHeight=parseInt(footTop)-parseInt(destTop);
	//window.alert(destHeight);
	
	//set top.bottom padding to height-form/2
	//divPadding=parseInt( (parseInt(destHeight)-335) / 2 );
	divPadding=parseInt(parseInt(destHeight)-335);
	
	divPaddingTop=100;
	divPaddingBot=parseInt(divPadding)-parseInt(divPaddingTop);
	
	//destObj.style.height=destHeight+'px';
	formObj=document.getElementById('divGFullContactFormWrapper');
	//formObj.style.paddingTop=divPadding+'px';
	//formObj.style.paddingBottom=divPadding+'px';
	formObj.style.paddingTop=divPaddingTop+'px';
	formObj.style.paddingBottom=divPaddingBot+'px';
	
	//clear form objects
	document.getElementById('txtGCntFullName').value='';
	document.getElementById('txtGCntEmail').value='';
	document.getElementById('txtGCntComments').value='';
	
	destObj.style.display='block';
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ closeGCntFormWin()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function closeGCntFormWin(){
	
	document.getElementById('divGContactFormWrapper').style.display='none';
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ valGContactForm()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function valGContactForm(){
	
	tmpObj=document.getElementById('txtGCntFullName');
	if (tmpObj.value==''){
		window.alert('Please enter your name!');
		tmpObj.focus();
		return false;
	}
	tmpObj=document.getElementById('txtGCntEmail');
	if (tmpObj.value==''){
		window.alert('Please enter your email!');
		tmpObj.focus();
		return false;
	}
	tmpObj=document.getElementById('cmbGCntHelpWith');
	if (tmpObj.options[tmpObj.selectedIndex].value==''){
		window.alert('Please enter select how we can help you!');
		tmpObj.focus();
		return false;
	}
	tmpObj=document.getElementById('txtGCntComments');
	if (tmpObj.value==''){
		window.alert('Please enter your comments!');
		tmpObj.focus();
		return false;
	}
	
	objForm=document.getElementById('frmGContact');
	objForm.action='/submitCntForm.php';
	objForm.submit();
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ valGMemberLogin()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function valGMemberLogin(){
	
	window.alert('invalid login!');
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ findPosX()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function findPosX(inObj){
	var curLeft = 0;
  
  if(inObj.offsetParent){
   	while(1){
   		curLeft += inObj.offsetLeft;
      if(!inObj.offsetParent){
      	break;
      }
      inObj = inObj.offsetParent;
    }
  }else if(inObj.x){
  	curLeft += inObj.x;
  }
  
  return curLeft;
  
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ findPosY()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function findPosY(inObj){
	var curTop = 0;
	
	if(inObj.offsetParent){
		while(1){
			curTop += inObj.offsetTop;
      if(!inObj.offsetParent){
      	break;
      }
      inObj = inObj.offsetParent;
    }
  }else if(inObj.y){
  	curTop += inObj.y;
  }
  
  return curTop;
  
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ findPosW()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function findPosW(inObj){
	
//	if (gJSBrowserType=='op5'){
//		xPos = inObj.style.pixelWidth;
//	}else{
//		xPos = inObj.offsetWidth;
//	}
	
	xPos = inObj.offsetWidth;
	
	return xPos;
	
}
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++ findPosH()
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
function findPosH(inObj){
	gJSBrowserType='?';
	
	if (gJSBrowserType=='op5'){ 
		xPos = inObj.style.pixelHeight;
	}else{
		xPos = inObj.offsetHeight;
	}
	
	return xPos;
	
}
