//COMMON JS METHODS STARTS HERE
function openLink(url)
{
  window.location.href=url;
}


//opening popup

function openwindow(url, name, w, h,top,left)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 42;
h += 106;
 var win = window.open(url,
  name, 
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=0, toolbar=no, scrollbars=no, resizable=0,top='+top+',left='+left+'');
 win.resizeTo(w, h);
 win.focus();
}


//searching code 

function searchFromGoogle()
{
  var val="http://www.google.com/search?q="+document.gsearch.q.value;
  openwindow(val,"Search",898,570);
}


//popup validation starts here

function trim(temp) {
	return temp.replace(/^\s+/, '').replace(/\s+$/, '');
}

function isValidEmail(jsValue,jsDisplay)
 {

     jsValidString=(jsValue.split("|"));
     jsFlag=true;
     jsEmptyFieldsNameDisplay="";
     jsField="";
     for(var index=0;index<jsValidString.length;index++)
     {
        jsField=document.getElementById(jsValidString[index]);
        
         if(emailCheck(jsField.value))
	     {
           jsFlag=false;
	       jsEmptyFieldsNameDisplay+="\n"+jsField.name;	   
	     }
     }
     
      if(jsFlag==false)
	  { 
	   alert(jsDisplay+" "+jsEmptyFieldsNameDisplay);
	  }
	 return jsFlag;
 }

function emailCheck(emailStr) {
var checkTLD=1;
var knownDomsPat=/^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/;
var emailPat=/^(.+)@(.+)$/;
var specialChars="\\(\\)><@,;:\\\\\\\"\\.\\[\\]";
var validChars="\[^\\s" + specialChars + "\]";
var quotedUser="(\"[^\"]*\")";
var ipDomainPat=/^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/;
var atom=validChars + '+';
var word="(" + atom + "|" + quotedUser + ")";
var userPat=new RegExp("^" + word + "(\\." + word + ")*$");
var domainPat=new RegExp("^" + atom + "(\\." + atom +")*$");
var matchArray=emailStr.match(emailPat);

if (matchArray==null) {

//alert("Email address seems incorrect (check @ and .'s)");
return true;
}
var user=matchArray[1];
var domain=matchArray[2];

for (i=0; i<user.length; i++) {
if (user.charCodeAt(i)>127) {
//alert("Ths username contains invalid characters.");
return true;
   }
}
for (i=0; i<domain.length; i++) {
if (domain.charCodeAt(i)>127) {
//alert("Ths domain name contains invalid characters.");
return true;
   }
}
if (user.match(userPat)==null) {

//alert("The username doesn't seem to be valid.");
return true;
}

var IPArray=domain.match(ipDomainPat);
if (IPArray!=null) {

for (var i=1;i<=4;i++) {
if (IPArray[i]>255) {
//alert("Destination IP address is invalid!");
return true;
   }
}
return true;
}
var atomPat=new RegExp("^" + atom + "$");
var domArr=domain.split(".");
var len=domArr.length;
for (i=0;i<len;i++) {
if (domArr[i].search(atomPat)==-1) {
//alert("The domain name does not seem to be valid.");
return true;
   }
}

if (checkTLD && domArr[domArr.length-1].length!=2 && 
domArr[domArr.length-1].search(knownDomsPat)==-1) {
//alert("The address must end in a well-known domain or two letter " + "country.");
return true;
}
if (len<2) {
//alert("This address is missing a hostname!");
return true;
}
return false;
}

function isNumbers(jsValue,jsDisplay) {
 
	   
 		var validChars = /[^0-9]/i
 		var jsFieldValue = document.getElementById(jsValue).value;
		jsFieldValue = trim(jsFieldValue);
		
		if(validChars.test(jsFieldValue))
		{
  			alert(jsDisplay);			
  			return false;
		} else {
			
			return true;
		}
}

function validation()
{
  var firstname = document.getElementById("firstname");
	if(trim(firstname.value).length == 0)
	{
		alert("Please enter firstname");
		firstname.select();
		return false;
	}
   var lastname = document.getElementById("lastname");
	if(trim(lastname.value).length == 0)
	{
		alert("Please enter lastname");
		lastname.select();
		return false;
	}
   var jobtitle = document.getElementById("jobtitle");
	if(trim(jobtitle.value).length == 0)
	{
		alert("Please enter jobtitle");
		jobtitle.select();
		return false;
	}
	var company = document.getElementById("company");
	if(trim(company.value).length == 0)
	{
		alert("Please enter company");
		company.select();
		return false;
	}   
    var email = document.getElementById("email"); 	
	if(trim(email.value).length == 0)
	{
		alert("Please enter email");
		email.select();
		return false;
	}
	
	if(trim(email.value).length > 0)
	{	
		
		if(!isValidEmail("email","Please enter valid "))
		{
			alert("Please enter valid email");
		    email.select();
			return false;
		}
	}
	var phone = document.getElementById("phone");	
	if(trim(phone.value).length == 0)
	{
		alert("Please enter phone number");
		phone.select();
		return false;
	}
	if(trim(phone.value).length > 0)
	{
		if(!isNumbers("phone","Invalid phone number"))  
		{
		    phone.select();
			return false;
		}
	}
	var country = document.getElementById("country");	
	if(trim(country.value).length == 0)
	{
		alert("Please enter country");
		country.select();
		return false;
	}
	var industry = document.getElementById("industry");	
	if(trim(industry.value).length == 0)
	{
		alert("Please enter industry");
		industry.select();
		return false;
	}
	var query = document.getElementById("query");
	if(trim(query.value).length == 0)
	{
		alert("Please enter query");
		query.focus();
		return false;
	}
	var security_code = document.getElementById("security_code");
	if(trim(security_code.value).length == 0)
	{
		alert("Please enter security code");
		query.focus();
		return false;
	}
	
	return true;
}
 //popup validation ends here
 
 
//following are the supported method used to submit without page refresh
function startCallback() {
	// make something useful before submit (onStart)
	return true;
}
 
function completeCallback(response) {
	// make something useful after (onComplete)
	document.getElementById('r').innerHTML = response;
}


/**
*  AJAX IFRAME METHOD (AIM)
**/
 
AIM = {
 
	frame : function(c) {
 
		var n = 'f' + Math.floor(Math.random() * 99999);
		var d = document.createElement('DIV');
		d.innerHTML = '<iframe style="display:none" src="about:blank" id="'+n+'" name="'+n+'" onload="AIM.loaded(\''+n+'\')"></iframe>';
		document.body.appendChild(d);
 
		var i = document.getElementById(n);
		if (c && typeof(c.onComplete) == 'function') {
			i.onComplete = c.onComplete;
		}
 
		return n;
	},
 
	form : function(f, name) {
		f.setAttribute('target', name);
	},
 
	submit : function(f, c) {
		var submitbutton = document.getElementById("subbutton");
		submitbutton.value="Please wait..";
		submitbutton.disabled=true;
		AIM.form(f, AIM.frame(c));
		if (c && typeof(c.onStart) == 'function') {
			return c.onStart();
		} else {
			return true;
		}
	},
 
	loaded : function(id) {
		document.getElementById("tablediv").innerHTML="&nbsp;";
		document.getElementById("nr").innerHTML="&nbsp;";
		var i = document.getElementById(id);
		if (i.contentDocument) {
			var d = i.contentDocument;
		} else if (i.contentWindow) {
			var d = i.contentWindow.document;
		} else {
			var d = window.frames[id].document;
		}
		if (d.location.href == "about:blank") {
			return;
		}
 
		if (typeof(i.onComplete) == 'function') {
			i.onComplete(d.body.innerHTML);
		}
	}
 
}	

//COMMON JS METHODS ENDS HERE

/*
  REQUEST FOR SERVICE POPUP METHODS STARTS HERE
*/
var frameWidth, frameHeight, pos_X, pos_Y, pType;
var objoverlay, objpopup,mainbody,headermain,lefttile;
function showpopup(myid)
{

	pType=myid
	getframesize();
	objoverlay=document.getElementById("overlay");
	var mywidth=0; pox_Y=0;
	if (pType==2) {
		mywidth=360;
		pos_Y=160;
		objpopup=document.getElementById("des_popup");
		//setting opacity to the headermain
		//lefttile=document.getElementById("sub_left_tile");
		/*headermain=document.getElementById("header");
		headermain.style.opacity = 0.4;
		headermain.style.filter = 'alpha(opacity=40)';
		headermain.style.display="";*/

		/*lefttile=document.getElementById("sub_left_tile");
		lefttile.style.opacity = 0.4;
		lefttile.style.filter = 'alpha(opacity=40)';
		lefttile.style.display="";*/
		//setting opacity to the bodytopmain
		///mainbody=document.getElementById("bodyTopMain");
		///mainbody.style.opacity = 0.4;
		///mainbody.style.filter = 'alpha(opacity=40)';
		///mainbody.style.display="";
	} else {
		mywidth=500;
		pos_Y=30;
		objpopup=document.getElementById("des_popup");
	}
	showoverlay();	
	objpopup.style.left=((parseInt(frameWidth)-mywidth)/2)+pos_X+"px";
	objpopup.style.top=pos_Y+"px";
	objpopup.style.visibility="visible";
	objpopup.style.display="";
	
}

function getframesize() {
	var objcontainer=document.getElementById("container");
	frameWidth=objcontainer.offsetWidth+10;
	frameHeight=objcontainer.offsetHeight;
	pos_X=objcontainer.offsetLeft;
}

function showoverlay() {
	objoverlay.style.width=frameWidth+"px";
	objoverlay.style.height=frameHeight+"px";
	pos_X = pos_X-50;
	objoverlay.style.left=pos_X+"px";
	objoverlay.style.top="0px";
	objoverlay.style.visibility="visible";
	objoverlay.style.opacity = .8;
	objoverlay.style.filter = 'alpha(opacity=80)';
	objoverlay.style.display="";
    //width: 965px; height: 659px; left: 34px; top: 0px; visibility: visible; opacity: 0.7;
}

function hidepopup() {
	objpopup.style.visibility="hidden";
	objpopup.style.display="none";
	//mainbody.style.filter = 'alpha(opacity=100)';
	//mainbody.style.opacity = 1.0;
	headermain.style.filter = 'alpha(opacity=100)';
	headermain.style.opacity = 1.0;
	objoverlay.style.visibility="hidden";
	objoverlay.style.display="none";
}

/*
REQUEST FOR SERVICE POPUP METHODS ENDS HERE
*/


//FONT COLOR CHANGER METHODS STARTS HERE
function changecolor(jsvar)
{
  jsvar.style.color="#555454";
}
function originalcolor(jsvar)
{
  jsvar.style.color="#1186bd";
}
//FONT COLOR CHANGER METHODS ENDS HERE

/* partner form validation starts here*/
function validationform()
{
  var firstname = document.getElementById("first_name");
	if(trim(firstname.value).length == 0)
	{
		alert("Please enter firstname");
		firstname.select();
		return false;
	}   
   
    var email = document.getElementById("form_email"); 	
	if(trim(email.value).length == 0)
	{
		alert("Please enter email");
		email.select();
		return false;
	}
	
	if(trim(email.value).length > 0)
	{	
		
		if(!isValidEmail("form_email","Please enter valid "))
		{
			alert("Please enter valid email");
		    email.select();
			return false;
		}
	}
	
	var phone = document.getElementById("form_phone");	
	if(trim(phone.value).length == 0)
	{
		alert("Please enter phone number");
		phone.select();
		return false;
	}
	
	if(trim(phone.value).length > 0)
	{
		if(!isNumbers("form_phone","Invalid phone number"))  
		{			
			phone.select();
			return false;
		}
	}
	return true;
}
/* partner form validation ends here*/

/*
  PARTNERSHIPS STARTS HERE
*/
var frameWidth, frameHeight, pos_X, pos_Y, pType;
var objoverlay, objpopup,mainbody,headermain,lefttile;
function showform(myid)
{
	pType=myid
	getformframesize();
	objoverlay=document.getElementById("formoverlay");
	var mywidth=0; pox_Y=0;
	if (pType==2) {
		mywidth=360;
		pos_Y=160;
		objpopup=document.getElementById("formdes_popup");
		//setting opacity to the headermain
		//lefttile=document.getElementById("sub_left_tile");
		/*headermain=document.getElementById("header");
		headermain.style.opacity = 0.4;
		headermain.style.filter = 'alpha(opacity=40)';
		headermain.style.display="";*/

		/*lefttile=document.getElementById("sub_left_tile");
		lefttile.style.opacity = 0.4;
		lefttile.style.filter = 'alpha(opacity=40)';
		lefttile.style.display="";*/
		//setting opacity to the bodytopmain
		///mainbody=document.getElementById("bodyTopMain");
		///mainbody.style.opacity = 0.4;
		///mainbody.style.filter = 'alpha(opacity=40)';
		///mainbody.style.display="";
	} else {
		mywidth=500;
		pos_Y=30;
		objpopup=document.getElementById("formdes_popup");
	}
	showformoverlay();	
	objpopup.style.left=((parseInt(frameWidth)-mywidth)/2)+pos_X+"px";
	objpopup.style.top=pos_Y+"px";
	objpopup.style.visibility="visible";
	objpopup.style.display="";
	
}

function getformframesize() {
	var objcontainer=document.getElementById("formcontainer");
	frameWidth=objcontainer.offsetWidth+10;
	frameHeight=objcontainer.offsetHeight;
	pos_X=objcontainer.offsetLeft;
}

function showformoverlay() {
	objoverlay.style.width=frameWidth+"px";
	objoverlay.style.height=frameHeight+"px";
	pos_X = pos_X-50;
	objoverlay.style.left=pos_X+"px";
	objoverlay.style.top="0px";
	objoverlay.style.visibility="visible";
	objoverlay.style.opacity = .8;
	objoverlay.style.filter = 'alpha(opacity=80)';
	objoverlay.style.display="";
    //width: 965px; height: 659px; left: 34px; top: 0px; visibility: visible; opacity: 0.7;
}

function hidepopup() {
	objpopup.style.visibility="hidden";
	objpopup.style.display="none";
	//mainbody.style.filter = 'alpha(opacity=100)';
	//mainbody.style.opacity = 1.0;
	headermain.style.filter = 'alpha(opacity=100)';
	headermain.style.opacity = 1.0;
	objoverlay.style.visibility="hidden";
	objoverlay.style.display="none";
}

/*
	PARTNERSHIPS ENDS HERE
*/

//DROP DOWN TABS TELL A FRIEND STARTS HERE

var tabdropdown={
	disappeardelay: 100, //set delay in miliseconds before menu disappears onmouseout
	disablemenuclick: false, //when user clicks on a menu item with a drop down menu, disable menu item's link?
	enableiframeshim: 1, //1 or 0, for true or false

	//No need to edit beyond here////////////////////////
	dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, previousmenuitem:null,
	currentpageurl: window.location.href.replace("http://"+window.location.hostname, "").replace(/^\//, ""), //get current page url (minus hostname, ie: http://www.dynamicdrive.com/)

	getposOffset:function(what, offsettype){
		var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop;
		var parentEl=what.offsetParent;
			while (parentEl!=null){
				totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop;
				parentEl=parentEl.offsetParent;
			}
		return totaloffset;
	},

	showhide:function(obj, e, obj2){ //obj refers to drop down menu, obj2 refers to tab menu item mouse is currently over
		if (this.ie || this.firefox)
			this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px"
		if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover"){
			if (obj2.parentNode.className.indexOf("default")==-1) //if tab isn't a default selected one
				obj2.parentNode.className="selected"
			obj.visibility="visible"
			}
		else if (e.type=="click")
			obj.visibility="hidden"
	},

	iecompattest:function(){
		return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
	},

	clearbrowseredge:function(obj, whichedge){
		var edgeoffset=0
		if (whichedge=="rightedge"){
			var windowedge=this.ie && !window.opera? this.standardbody.scrollLeft+this.standardbody.clientWidth-15 : window.pageXOffset+window.innerWidth-15
			this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth
		if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure)  //move menu to the left?
			edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth
		}
		else{
			var topedge=this.ie && !window.opera? this.standardbody.scrollTop : window.pageYOffset
			var windowedge=this.ie && !window.opera? this.standardbody.scrollTop+this.standardbody.clientHeight-15 : window.pageYOffset+window.innerHeight-18
			this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight
			if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up?
				edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight
				if ((this.dropmenuobj.y-topedge)<this.dropmenuobj.contentmeasure) //up no good either?
					edgeoffset=this.dropmenuobj.y+obj.offsetHeight-topedge
			}
			this.dropmenuobj.firstlink.style.borderTopWidth=(edgeoffset==0)? 0 : "1px" //Add 1px top border to menu if dropping up
		}
		return edgeoffset
	},

	dropit:function(obj, e, dropmenuID){
		if (this.dropmenuobj!=null){ //hide previous menu
			this.dropmenuobj.style.visibility="hidden" //hide menu
			if (this.previousmenuitem!=null && this.previousmenuitem!=obj){
				if (this.previousmenuitem.parentNode.className.indexOf("default")==-1) //If the tab isn't a default selected one
					this.previousmenuitem.parentNode.className=""
			}
		}
		this.clearhidemenu()
		if (this.ie||this.firefox){
			obj.onmouseout=function(){tabdropdown.delayhidemenu(obj)}
			obj.onclick=function(){return !tabdropdown.disablemenuclick} //disable main menu item link onclick?
			this.dropmenuobj=document.getElementById(dropmenuID)
			this.dropmenuobj.onmouseover=function(){tabdropdown.clearhidemenu()}
			this.dropmenuobj.onmouseout=function(e){tabdropdown.dynamichide(e, obj)}
			this.dropmenuobj.onclick=function(){tabdropdown.delayhidemenu(obj)}
			this.showhide(this.dropmenuobj.style, e, obj)
			this.dropmenuobj.x=this.getposOffset(obj, "left")
			this.dropmenuobj.y=this.getposOffset(obj, "top")
            
			//getting the page pixel
            scnWid = document.documentElement.clientWidth;
		    scnHei = document.documentElement.clientHeight;

            //alert("pixel is=="+scnWid+","+scnHei);
             
            //alert(this.dropmenuobj.x+"-"+this.clearbrowseredge(obj, "rightedge"));
			//alert(this.dropmenuobj.y+"-"+this.clearbrowseredge(obj, "bottomedge")+"+"+obj.offsetHeight);

            //validating the page with pixel level 
            if(scnWid<=1008)
			{
				this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")+"px"
				this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
			}else if(scnWid>1008 && scnWid<=1152)
			{
                 this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")-72+"px"
			     this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
			}else
			{
               this.dropmenuobj.style.left=this.dropmenuobj.x-this.clearbrowseredge(obj, "rightedge")-136+"px"
			   this.dropmenuobj.style.top=this.dropmenuobj.y-this.clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+1+"px"
			}
			this.previousmenuitem=obj //remember main menu item mouse moved out from (and into current menu item)
			this.positionshim() //call iframe shim function
		}
	},

	contains_firefox:function(a, b) {
		while (b.parentNode)
		if ((b = b.parentNode) == a)
			return true;
		return false;
	
	},

	dynamichide:function(e, obj2){ //obj2 refers to tab menu item mouse is currently over
		var evtobj=window.event? window.event : e
		if (this.ie&&!this.dropmenuobj.contains(evtobj.toElement))
			this.delayhidemenu(obj2)
		else if (this.firefox&&e.currentTarget!= evtobj.relatedTarget&& !this.contains_firefox(evtobj.currentTarget, evtobj.relatedTarget))
			this.delayhidemenu(obj2)
	},

	delayhidemenu:function(obj2){
		this.delayhide=setTimeout(function(){tabdropdown.dropmenuobj.style.visibility='hidden'; if (obj2.parentNode.className.indexOf('default')==-1) obj2.parentNode.className=''},this.disappeardelay) //hide menu
	},

	clearhidemenu:function(){
		if (this.delayhide!="undefined")
			clearTimeout(this.delayhide)
	},

	positionshim:function(){ //display iframe shim function
		if (this.enableiframeshim && typeof this.shimobject!="undefined"){
			if (this.dropmenuobj.style.visibility=="visible"){
				this.shimobject.style.width=this.dropmenuobj.offsetWidth+"px"
				this.shimobject.style.height=this.dropmenuobj.offsetHeight+"px"
				this.shimobject.style.left=this.dropmenuobj.style.left
				this.shimobject.style.top=this.dropmenuobj.style.top
			}
		this.shimobject.style.display=(this.dropmenuobj.style.visibility=="visible")? "block" : "none"
		}
	},

	hideshim:function(){
		if (this.enableiframeshim && typeof this.shimobject!="undefined")
			this.shimobject.style.display='none'
	},

isSelected:function(menuurl){
	var menuurl=menuurl.replace("http://"+menuurl.hostname, "").replace(/^\//, "")
	return (tabdropdown.currentpageurl==menuurl)
},

	init:function(menuid, dselected){
		this.standardbody=(document.compatMode=="CSS1Compat")? document.documentElement : document.body //create reference to common "body" across doctypes
		var menuitems=document.getElementById(menuid).getElementsByTagName("a")
		for (var i=0; i<menuitems.length; i++){
			if (menuitems[i].getAttribute("rel")){
				var relvalue=menuitems[i].getAttribute("rel")
				document.getElementById(relvalue).firstlink=document.getElementById(relvalue).getElementsByTagName("a")[0]
				menuitems[i].onmouseover=function(e){
					var event=typeof e!="undefined"? e : window.event
					tabdropdown.dropit(this, event, this.getAttribute("rel"))
				}
			}
			if (dselected=="auto" && typeof setalready=="undefined" && this.isSelected(menuitems[i].href)){
				menuitems[i].parentNode.className+=" selected default"
				var setalready=true
			}
			else if (parseInt(dselected)==i)
				menuitems[i].parentNode.className+=" selected default"
		}
	}
	

}

//DROP DOWN TABS TELL A FRIEND ENDS HERE


/*
    email validation
    ----------------
    arg 1)input field names must be seperated by pipe symbol
    arg 2)alert String
 */
  function isValidEmail(jsValue)
 {
     jsValidString=(jsValue.split("|"));
     jsFlag=true;
     jsEmptyFieldsNameDisplay="";
     jsField="";
	 var jsChapterFields="";
     for(var index=0;index<jsValidString.length;index++)
     {
        jsField=document.getElementById(jsValidString[index]);
        
         if(emailCheck(jsField.value))
	     {
			
		    
		   if(jsField.value != "")
			   {
			   if(jsField.name == 'PEmail' || jsField.name == 'NatPEmail')
				   {
				   
					jsChapterFields = 'President Email'; 
				   }
			   if(jsField.name == 'VEmail' || jsField.name == 'NatVEmail')
				   {
					 jsChapterFields = 'Vice President Email';
				   }
				if(jsField.name == 'TEmail' || jsField.name == 'NatTEmail')
				   {
					 jsChapterFields = 'Treasurer Email';
				   }
				if(jsField.name == 'SEmail' || jsField.name == 'NatSEmail')
				   {
					 jsChapterFields = 'Secretary Email';
				   }

			   }
			   if(jsChapterFields!="")
			   {
				   jsFlag=false;				  
				   jsEmptyFieldsNameDisplay+="\n"+jsChapterFields;
			   }else
				 {

                    jsFlag=false;
				    jsEmptyFieldsNameDisplay+="\n"+jsField.name;
				 }

	     }
     }
     
     
	 return jsFlag;
 }
/* for mouseover and mouseout color */
function funmouseover(jsvar){
jsvar.style.color="#eff70a";
}
function funmouseout(jsvar){
jsvar.style.color="#ffffff";
}