<!--
google_ad_client = "pub-2792572532042973";
google_ad_width = 300;
google_ad_height = 250;
google_ad_format = "300x250_as";
google_color_border = "D6DDED";
google_color_bg = "D6DDED";
google_color_link = "0000FF";
google_color_url = "737373";
google_color_text = "303030";
//-->

// Begin NON-DROPDOWN STUFF -->

var externalUrls2 = new Array();
var ArrayClassName = new Array();

var specialLinkClass = "importantArea";

ArrayClassName[ "pClass" ] = specialLinkClass;
ArrayClassName[ "spanClass" ] = specialLinkClass;
ArrayClassName[ "divClass" ] = specialLinkClass;

externalUrls2[ "requirement" ] = "RequirementInformation.asp";
externalUrls2[ "TheirUse" ] = "LinkingUseTips.asp"; 
externalUrls2[ "ParagraphSupport" ] = "GeneralSupportPage.asp";
externalUrls2[ "AU" ] = "/AboutUs/";
externalUrls2[ "CU" ] = "/ContactUs/"; 

//  End NON-DROPDOWN STUFF -->

// Begin DROPDOWN STUFF -->

var externalUrls = new Array();
var ItemTypeArray = new Array();

externalUrls[ "M" ] = "/Procedures.html";

externalUrls[ "BA" ] = "/BreastAugmentation.html";
externalUrls[ "BA01" ] = "/AugmentationIntroduction.html";
externalUrls[ "BA02" ] = "/AugmentationConsultation.html";
externalUrls[ "BA03" ] = "/AugmentationTypes.html";
externalUrls[ "BA04" ] = "/AugmentationPlacement.html";
externalUrls[ "BA05" ] = "/BreastAugmentationSurgery.html";
externalUrls[ "BA06" ] = "/BreastAugmentationRiskAndAdvantages.html";

externalUrls[ "BI01" ] = "/BreastImplants.html";
externalUrls[ "BI02" ] = "/BreastImplantTypes.html";
externalUrls[ "BI03" ] = "/ImplantComparison.html";
externalUrls[ "BI04" ] = "/BreastImplantSurgery.html";
externalUrls[ "BI05" ] = "/BreastImplantRisks.html";

externalUrls[ "L01" ] = "/AboutLiposuction.html";
externalUrls[ "L02" ] = "/LiposuctionProcedure.html";
externalUrls[ "L03" ] = "/LiposuctionTypes.html";
externalUrls[ "L04" ] = "/LipoResults.html";
externalUrls[ "L05" ] = "/LiposuctionSideEffects.html";
externalUrls[ "L06" ] = "/LipoRecovery.html";
externalUrls[ "L07" ] = "/LiposuctionCommonTreatments.html";

externalUrls[ "T" ] = "/Forms/Testimonials.html";

externalUrls[ "sG" ] = "/Gynecomastia.html";
externalUrls[ "sOto" ] = "/Otoplasty.html";
externalUrls[ "sTL" ] = "/Thighlift.html";

externalUrls[ "TT01" ] = "/TummyTuck.asp";
externalUrls[ "TT02" ] = "/TummyRisks.html";
externalUrls[ "TT03" ] = "/PlanningForTummyTuck.html";
externalUrls[ "TT04" ] = "/TummyAlternatives.html";
externalUrls[ "TT05" ] = "/TummyTuckSurgery.html";
externalUrls[ "TT06" ] = "/AfterTummyTuck.html";

externalUrls[ "F" ] = "/Facelift.asp";

externalUrls[ "R01" ] = "/Rhinoplasty.asp";
externalUrls[ "R02" ] = "/RhinoplastyProcedure.html";
externalUrls[ "R03" ] = "/RhinoplastyAfterSurgery.html";
externalUrls[ "R04" ] = "/RhinoplastySideEffects.html";

externalUrls[ "TT" ] = "/TummyTuck.html";

externalUrls[ "BreastAugSpan" ] = "MyBreastAugmentationSurgery.asp";
externalUrls[ "HairTransplantSpan" ] = "GoToHairTransplantSurgery.asp";
externalUrls[ "ApplyToACollegeSpan1" ] = "You ShouldApplyToACollege1.asp";
externalUrls[ "ApplyToACollegeSpan2" ] = "You ShouldApplyToACollege2.asp";

ItemTypeArray[ "highlight" ] = "navItem";
ItemTypeArray[ "codeItem" ] = "navItem";

//  End DROPDOWN STUFF -->



// Begin FORM VALIDATION BY R.B. -->
function checkrequired(which) {

if (which.contactDate.value != "")
{
	//alert('Test');
	return false;
}




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.value=='')||(tempobj.type.toString().charAt(0)=="s"&&
tempobj.selectedIndex==0)) {
pass=false;
break;
         }
      }
   }
}
if (!pass) {
shortFieldName=tempobj.name.substring(8,30).toUpperCase();
alert("Please make sure the "+shortFieldName+" field was properly completed.");
return false;
}
else {
	if(!ValidateEmail(which.requiredEmail.value))
	{
		alert("Please check the EMAIL field.");
		which.requiredEmail.focus(); 
		return false;
	}
	return true;
}
}
//  End FORM VALIDATION BY R.B. -->

// OPEN WINDOW THING by R.B.  -->
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function textCounter(field,cntfield,maxlimit) {
	if (field.value.length > maxlimit)
		field.value = field.value.substring(0, maxlimit);
	else
		cntfield.value = maxlimit - field.value.length;
	}
// END OPEN WINDOW THING by R.B. -->

// Begin what they call Linkit -->

/*
Dynamic Links in regular expressions
Author: SoftBrilliance
*/

/* a few sniffs to circumvent known browser bugs */
var sUserAgent = navigator.userAgent.toLowerCase();
var isIE=document.all?true:false;
var isNS4=document.layers?true:false;
var isOp=(sUserAgent.indexOf('opera')!=-1)?true:false;
var isMac=(sUserAgent.indexOf('mac')!=-1)?true:false;
var isMoz=(sUserAgent.indexOf('mozilla/5')!=-1&&sUserAgent.indexOf('opera')==-1&&sUserAgent.indexOf('msie')==-1)?true:false;
var isNS6=(sUserAgent.indexOf('netscape6')!=-1&&sUserAgent.indexOf('opera')==-1&&sUserAgent.indexOf('msie')==-1)?true:false;
var dom=document.getElementById?true:false;

/* sets time until menus disappear in milliseconds */
var iMenuTimeout=500;

var aMenus=new Array;
var oMenuTimeout;
var iMainMenusLength=0;

/* the following boolean controls the z-index property if needed */
/* if is only necessary if you have multiple mainMenus in one file that are overlapping */
/* set bSetZIndeces to true (either here or in the HTML) and the main menus will have a z-index set in descending order so that preceding ones can overlap */
/* the integer iStartZIndexAt controls z-index of the first main menu */
var bSetZIndeces=true;
var iStartZIndexAt=1000;
var aMainMenus=new Array;


function E(obj, evt, func) 
{
  if(obj[evt]) 
  {
    obj[evt]=function(f,g)
    {
       return function()
       {
         f.apply(this,arguments);
         return g.apply(this,arguments);
       };
    }
    (func, obj[evt]);
  }
  else 
    obj[evt]=func;
}

/* load up the regular Links */
function loadRegularLinks(){
	var aAllElements=document.body.getElementsByTagName("*");	
	/* alert("loadRegularLinks"); */
	for(var i=0;i<aAllElements.length;i++){
		
		/*alert(aAllElements[i].tagName);*/
		if ( (	aAllElements[i].tagName.toLowerCase() == 'p' || 
			aAllElements[i].tagName.toLowerCase() == 'div' ||
		        aAllElements[i].tagName.toLowerCase() == 'span' ) 
			&& (specialLinkClass == ArrayClassName[ aAllElements[i].className ])  )
		{
			
		//alert(aAllElements[i].name);
		eval('E(aAllElements[i], "onmouseover", function(){window.status=externalUrls2["'+aAllElements[i].name+'"];modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);});')
		eval('E(aAllElements[i], "onmouseout", function(){modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);window.status="";});')
		eval('E(aAllElements[i], "onclick", function(){window.location=externalUrls2["'+aAllElements[i].name+'"];});')
		
		}	

	}
}

/* this will append the loadMenus function to any previously assigned window.onload event */
/* if you reassign this onload event, you'll need to include this or execute it after all the menus are loaded */
/*
function newOnload(){
	if(typeof previousOnload=='function')previousOnload();
	loadRegularLinks();
}
var previousOnload;
if(window.onload!=null)previousOnload=window.onload;
window.onload=newOnload;
*/

/* add or remove element className */

function modClass(bAdd,oElement,sClassName){
	//alert(oElement.className);
	if(bAdd){/* add class */
		if(oElement.className.indexOf(sClassName)==-1)oElement.className+=' '+sClassName;
	}
	else{/* remove class */
		if(oElement.className.indexOf(sClassName)!=-1){			
			if(oElement.className.indexOf(' '+sClassName)!=-1)
				oElement.className=oElement.className.replace(' '+sClassName,'');
			else 
				oElement.className=oElement.className.replace(sClassName,'');			
		}
		else
			oElement.className=oElement.className.replace(sClassName,'');

	}
	return oElement.className; /* return new className */
}


//document.body.addEventListener("keydown",function(){keyNav(event);},true); 

function setBubble(oEvent){
	oEvent.bubbles = true;	
}

function keyNav(oElement,oEvent){
	alert(oEvent.keyCode);
	window.status=oEvent.keyCode;
	return false;
}


// End what they call Linkit -->


// Begin Drop Down code -->

/*
Dynamic Menus for Texas Online rework (to replace current version at texasonline.com)
Author: James Craig (jcraig at bearingpoint dot net)
*/

/* a few sniffs to circumvent known browser bugs */
var sUserAgent = navigator.userAgent.toLowerCase();
var isIE=document.all?true:false;
var isNS4=document.layers?true:false;
var isOp=(sUserAgent.indexOf('opera')!=-1)?true:false;
var isMac=(sUserAgent.indexOf('mac')!=-1)?true:false;
var isMoz=(sUserAgent.indexOf('mozilla/5')!=-1&&sUserAgent.indexOf('opera')==-1&&sUserAgent.indexOf('msie')==-1)?true:false;
var isNS6=(sUserAgent.indexOf('netscape6')!=-1&&sUserAgent.indexOf('opera')==-1&&sUserAgent.indexOf('msie')==-1)?true:false;
var dom=document.getElementById?true:false;

/* sets time until menus disappear in milliseconds */
var iMenuTimeout=500;

var aMenus=new Array;
var oMenuTimeout;
var iMainMenusLength=0;

/* the following boolean controls the z-index property if needed */
/* if is only necessary if you have multiple mainMenus in one file that are overlapping */
/* set bSetZIndeces to true (either here or in the HTML) and the main menus will have a z-index set in descending order so that preceding ones can overlap */
/* the integer iStartZIndexAt controls z-index of the first main menu */
var bSetZIndeces=true;
var iStartZIndexAt=1000;
var aMainMenus=new Array;


function E(obj, evt, func) 
{
  if(obj[evt]) 
  {
    obj[evt]=function(f,g)
    {
       return function()
       {
         f.apply(this,arguments);
         return g.apply(this,arguments);
       };
    }
    (func, obj[evt]);
  }
  else 
    obj[evt]=func;
}

/* load up the submenus */
function loadMenus(){
	if(!dom)return;
	var aLists=document.getElementsByTagName('ul');
	for(var i=0;i<aLists.length;i++){
		if(aLists[i].className=='navMenu')aMenus[aMenus.length]=aLists[i];
	}
	var aAnchors=document.getElementsByTagName('a');
	var aItems = new Array;
	for(var i=0;i<aAnchors.length;i++){
		if(ItemTypeArray[aAnchors[i].className]=='navItem')aItems[aItems.length] = aAnchors[i];
/*		if(aAnchors[i].className=='navItem')aItems[aItems.length] = aAnchors[i];*/
	}




	var aSpans=document.getElementsByTagName('span');
	for(var i=0;i<aSpans.length;i++){
		if(ItemTypeArray[ aSpans[i].className ] =='navItem')aItems[aItems.length] = aSpans[i];
	}




	var sMenuId=null;
	var oParentMenu=null;
	var aAllElements=document.body.getElementsByTagName("*");
	if(isIE)aAllElements=document.body.all;
	/* loop through navItem and navMenus and dynamically assign their IDs */
	/* each relies on it's parent's ID being set before it */
	for(var i=0;i<aAllElements.length;i++){
		if(aAllElements[i].className.indexOf('mainMenu')!=-1){
			/* load up main menus collection */
			if(bSetZIndeces)aMainMenus[aMainMenus.length]=aAllElements[i];
		}
		if(ItemTypeArray[ aAllElements[i].className ] =='navItem'){
			oParentMenu = aAllElements[i].parentNode.parentNode;
			if(!oParentMenu.childMenus) oParentMenu.childMenus = new Array;
			oParentMenu.childMenus[oParentMenu.childMenus.length]=aAllElements[i];
			if(aAllElements[i].id==''){
				if(oParentMenu.className=='mainMenu'){
					iMainMenusLength++;
					aAllElements[i].id='navItem_'+iMainMenusLength;
					//alert(aAllElements[i].id);
					
				}else{
					aAllElements[i].id=oParentMenu.id.replace('Menu','Item')+'.'+oParentMenu.childMenus.length;
				}
			}
		} else if(aAllElements[i].className=='navMenu'){
			oParentItem = aAllElements[i].parentNode.firstChild;
			aAllElements[i].id = oParentItem.id.replace('Item','Menu');
		}
	}
	/* dynamically set z-indeces of main menus so they won't underlap */
	for(var i=aMainMenus.length-1;i>=0;i--){
		aMainMenus[i].style.zIndex=iStartZIndexAt-i;
	}
	/* set menu item properties */
	for(var i=0;i<aItems.length;i++){
		sMenuId=aItems[i].id;
		//alert('sMenuId = ' + sMenuId);
		sMenuId='navMenu_'+sMenuId.substring(8,sMenuId.lastIndexOf('.'));
		//alert('sMenuId = ' + sMenuId);
		/* assign event handlers */
		/* eval() used here to avoid syntax errors for function literals in Netscape 3 */
		
		//eval('aItems[i].onmouseover=function(){modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");aItems[i].onmouseover;};');
		//eval('aItems[i].onmouseout=function(){modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);aItems[i].onmouseout;}');


		//alert(aItems[i].tagName);
		if(aItems[i].tagName.toLowerCase()=='span')
		{
			if(aItems[i].onmouseover)
			{
			}
			else
			{
			//alert('span');
			//eval('E(oItem, "onmouseover", function(){window.status=externalUrls["'+aItems[i].name+'"];modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");});')
			//eval('E(oItem, "onmouseout", function(){window.status="";modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);});')
			//eval('E(oItem, "onclick", function(){window.location=externalUrls["'+aItems[i].name+'"];});')
			eval('E(aItems[i], "onmouseover", function(){window.status=externalUrls["'+aItems[i].name+'"];modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");});')
			eval('E(aItems[i], "onmouseout", function(){window.status="";modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);});')
			eval('E(aItems[i], "onclick", function(){window.location=externalUrls["'+aItems[i].name+'"];});')
			//eval('aItems[i].onmouseover=function(){modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");aItems[i].onmouseover;};');
			//eval('aItems[i].onmouseout=function(){modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);aItems[i].onmouseout;}');
			}
		}
		else
		{
			eval('aItems[i].onmouseover=function(){modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");aItems[i].onmouseover;};');
			eval('aItems[i].onmouseout=function(){modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);aItems[i].onmouseout;}');
		}


//			eval('aItems[i].onmouseover=function(){modClass(true,this,"activeItem");window.clearTimeout(oMenuTimeout);showMenu("'+sMenuId+'");aItems[i].onmouseover;};');
//			eval('aItems[i].onmouseout=function(){modClass(false,this,"activeItem");window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);aItems[i].onmouseout;}');

		eval('aItems[i].onfocus=function(){this.onmouseover();}');
		eval('aItems[i].onblur=function(){this.onmouseout();}');
		//aItems[i].addEventListener("keydown",function(){keyNav(this,event);},false);
	}
	var sCatId=0;
	var oItem;
	for(var i=0;i<aMenus.length;i++){
		/* assign event handlers */
		/* eval() used here to avoid syntax errors for function literals in Netscape 3 */
		////eval('aMenus[i].onmouseover=function(){window.clearTimeout(oMenuTimeout);}');
		eval('aMenus[i].onmouseout=function(){window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout("hideMenu(\'all\')",iMenuTimeout);}');
		sCatId=aMenus[i].id;
		sCatId=sCatId.substring(8,sCatId.length);
		oItem=document.getElementById('navItem_'+sCatId);
		if(oItem){
			//sCatId = "2";
			//alert(sCatId);
			if(!isOp && !(isMac && isIE) && oItem.parentNode)modClass(true,oItem.parentNode,"hasSubMenu");
			else modClass(true,oItem,"hasSubMenu");
			/* assign event handlers */

			//alert(oItem.name);
			
			if(oItem.tagName=='SPAN')
			{
				//eval('E(oItem, "onmouseover", function(){window.status=externalUrls["'+oItem.name+'"];window.clearTimeout(oMenuTimeout);showMenu("navMenu_'+sCatId+'");});')
				//eval('E(oItem, "onmouseout", function(){window.status="";window.clearTimeout(oMenuTimeout);oMenuTimeout=window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout(\'hideMenu("navMenu_'+sCatId+'")\',iMenuTimeout);});')
				//eval('E(oItem, "onclick", function(){window.location=externalUrls["'+oItem.name+'"];});')
				eval('oItem.onmouseover=function(){window.status=externalUrls["'+oItem.name+'"];window.clearTimeout(oMenuTimeout);showMenu("navMenu_'+sCatId+'");}')
				eval('oItem.onmouseout=function(){window.status="";window.clearTimeout(oMenuTimeout);oMenuTimeout=window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout(\'hideMenu("navMenu_'+sCatId+'")\',iMenuTimeout);}')
				eval('oItem.onclick=function(){window.location=externalUrls["'+oItem.name+'"];}')
			}
			else
			{
				//eval('E(oItem, "onmouseover", function(){window.clearTimeout(oMenuTimeout);showMenu("navMenu_'+sCatId+'");});')
				//eval('E(oItem, "onmouseout", function(){window.clearTimeout(oMenuTimeout);oMenuTimeout=window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout(\'hideMenu("navMenu_'+sCatId+'")\',iMenuTimeout);});')
				eval('oItem.onmouseover=function(){window.clearTimeout(oMenuTimeout);showMenu("navMenu_'+sCatId+'");}');
				eval('oItem.onmouseout=function(){window.clearTimeout(oMenuTimeout);oMenuTimeout=window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout(\'hideMenu("navMenu_'+sCatId+'")\',iMenuTimeout);}');

			}

			eval('oItem.onfocus=function(){window.clearTimeout(oMenuTimeout);showMenu("navMenu_'+sCatId+'");}');
			eval('oItem.onblur=function(){window.clearTimeout(oMenuTimeout);oMenuTimeout=window.clearTimeout(oMenuTimeout);oMenuTimeout=window.setTimeout(\'hideMenu("navMenu_'+sCatId+'")\',iMenuTimeout);}');
		}
	}
}

/* this will append the loadMenus function to any previously assigned window.onload event */
/* if you reassign this onload event, you'll need to include this or execute it after all the menus are loaded */
function newOnload(){
	if(typeof previousOnload=='function')previousOnload();
	loadMenus();
	loadRegularLinks();
}
var previousOnload;
if(window.onload!=null)previousOnload=window.onload;
window.onload=newOnload;


/* show menu and hide all others except ancestors of the current menu */
function showMenu(sWhich){
	var oWhich=document.getElementById(sWhich);
	if(!oWhich){
		hideMenu('all');
		return;
	}
	var aRootMenus=new Array;
	aRootMenus[0]=sWhich
	var sCurrentRoot=sWhich;
	var bHasParentMenu=false;
	if(sCurrentRoot.indexOf('.')!=-1){
		bHasParentMenu=true;
	}
	/* make array of this menu and ancestors so we know which to leave exposed */
	/* ex. from ID string "navMenu_12.3.7.4", extracts menu levels ["12.3.7.4", "12.3.7", "12.3", "12"] */
	while(bHasParentMenu){
		if(sCurrentRoot.indexOf('.')==-1)bHasParentMenu=false;
		aRootMenus[aRootMenus.length]=sCurrentRoot;
		sCurrentRoot=sCurrentRoot.substring(0,sCurrentRoot.lastIndexOf('.'));
	}
	for(var i=0;i<aMenus.length;i++){
		var bIsRoot=false;
		for(var j=0;j<aRootMenus.length;j++){
			var oThisItem=document.getElementById(aMenus[i].id.replace('navMenu_','navItem_'));
			if(aMenus[i].id==aRootMenus[j])bIsRoot=true;
		}
		if(bIsRoot && oThisItem)modClass(true,oThisItem,'hasSubMenuActive');
		else modClass(false,oThisItem,'hasSubMenuActive');
		if(!bIsRoot && aMenus[i].id!=sWhich)modClass(false,aMenus[i],'showMenu');
	}
	modClass(true,oWhich,'showMenu');
	var oItem=document.getElementById(sWhich.replace('navMenu_','navItem_'));
	if(oItem)modClass(true,oItem,'hasSubMenuActive');
}

function hideMenu(sWhich){
	if(sWhich=='all'){
		/* loop backwards b/c WinIE6 has a bug with hiding display of an element when it's parent is already hidden */
		for(var i=aMenus.length-1;i>=0;i--){
			var oThisItem=document.getElementById(aMenus[i].id.replace('navMenu_','navItem_'));
			if(oThisItem)modClass(false,oThisItem,'hasSubMenuActive');
			modClass(false,aMenus[i],'showMenu');
		}
	}else{
		var oWhich=document.getElementById(sWhich);
		if(oWhich)modClass(false,oWhich,'showMenu');
		var oThisItem=document.getElementById(sWhich.replace('navMenu_','navItem_'));
		if(oThisItem)modClass(false,oThisItem,'hasSubMenuActive');
	}
}

/* add or remove element className */
function modClass(bAdd,oElement,sClassName){
	if(bAdd){/* add class */
		if(oElement.className.indexOf(sClassName)==-1)oElement.className+=' '+sClassName;
	}else{/* remove class */
		if(oElement.className.indexOf(sClassName)!=-1){
			if(oElement.className.indexOf(' '+sClassName)!=-1)oElement.className=oElement.className.replace(' '+sClassName,'');
			else oElement.className=oElement.className.replace(sClassName,'');
		}
		else
			oElement.className=oElement.className.replace(sClassName,'');
	}
	return oElement.className; /* return new className */
}

//document.body.addEventListener("keydown",function(){keyNav(event);},true); 

function setBubble(oEvent){
	oEvent.bubbles = true;	
}

function keyNav(oElement,oEvent){
	//alert(oEvent.keyCode);
	window.status=oEvent.keyCode;
	return false;
}
// End drop down code -->

// Added : Carlos Balbuena 18/02/2008
function ValidateEmail(incoming) 
{
	var emailstring = incoming;
	var ampIndex = emailstring.indexOf("@");
	var afterAmp = emailstring.substring((ampIndex + 1), emailstring.length);
	// find a dot in the portion of the string after the ampersand only
	var dotIndex = afterAmp.indexOf(".");
	// determine dot position in entire string (not just after amp portion)
	dotIndex = dotIndex + ampIndex + 1;
	// afterAmp will be portion of string from ampersand to dot
	afterAmp = emailstring.substring((ampIndex + 1), dotIndex);
	// afterDot will be portion of string from dot to end of string
	var afterDot = emailstring.substring((dotIndex + 1), emailstring.length);
	var beforeAmp = emailstring.substring(0,(ampIndex));
	//var email_regex = /^\w(?:\w|-|\.(?!\.|@))*@\w(?:\w|-|\.(?!\.))*\.\w{2,3}/ 
	// index of -1 means "not found"
	
	if ((emailstring.indexOf("@") != "-1") &&
		(emailstring.indexOf(".") != "-1") &&
		(emailstring.length > 5) &&
		(afterAmp.length > 0) &&
		(beforeAmp.length > 1) &&
		(afterDot.length > 1) //&&
		//(email_regex.test(emailstring))
		) 
	{
		return true;
	} 
	else {
		return false;
	}
}
