<!--
	
	function showTheTime(area)
	{
		
		var d = new Date()
		var gmtHours = d.getTimezoneOffset()/60
		//alert("The local time zone is: GMT " + gmtHours)
		
		document.cookie = "TimeDiff="+gmtHours;
		
	}
	
	//function to make the first letter upper case
	function updatefield(itm){
    		var newname="";
    		var len=document.forms[0][itm].value.length;
			
    	 for (var i=0;i<len;i++){
    	 	//alert(document.testfrm[itm].value.charAt(i))
    		if(i==0){
    			newname=newname+document.forms[0][itm].value.charAt(i).toUpperCase()
    		}else{
    			newname=newname+document.forms[0][itm].value.charAt(i)
    		}
    	 }
    	 document.forms[0][itm].value=newname
    }
	
	function updateChatText(chtAns){
		if (chtAns=="yes") {						
			if (document.getElementById("Skype").value == "false"  || !skypeCheck())  {				
				document.getElementById("mesgText").innerHTML = "No, i can't. I don't have Skype. ";
				document.getElementById("Skypemsg").style.visibility = "visible";
				var ckbxObjects = document.getElementsByTagName("input");
				for(var i=0;i < ckbxObjects.length;i++){
					if (ckbxObjects[i].type=="radio"){
						if ((ckbxObjects[i].id=="chatAns") && (ckbxObjects[i].value=="n") ) {														
							ckbxObjects[i].checked=true;
						}//if checked
					}//if checkbox							
				}//for
				
			}
			else {			
				document.getElementById("mesgText").innerHTML = "Yes, please click on the &ldquo;Connect To Skype&rdquo; button below.";
			}
		}else		
		{			
			document.getElementById("mesgText").innerHTML = "No, not right now.  Thank you.";
		}
		
				
	
	}
	
	function updateSessionText(chtAns){
		if (chtAns=="yes") {			
			document.getElementById("mesgText").innerHTML = "Yes, I'm available.  Please click on the &ldquo;Purchase Tutor Session&rdquo; button below. ";
		}else		
		{			
			document.getElementById("mesgText").innerHTML = "No, I'm not available at this time.";
		}
		
				
	
	}
	
	function changeImage(id,url)
{
	 document.getElementById(id).src=url;
}
function showhidefield(id1,cid)
	 {	 				
	   
		var firtsStr = id1.split('_')[0];
		var subCat = 0;		
		if (firtsStr == "div") {
			subCat = id1.split('_')[1];
		}					
		if (document.forms[0][cid].checked) //if to check if main Cat is checked. 
	    {	      
		
		  document.getElementById(id1).style.display = "block"; //If checked show DIV
		  
	    }//end of show div if
	    else
	    {
	       document.getElementById(id1).style.display = "none"; // If not checked hide it 
		   if (subCat > 0 ){ //if to reset the value of the other category when the text box hides
		  	 var txbName = "oth_" + subCat;			
		  	 document.getElementById(txbName).value = "";			
		   }
		   if (id1.split('_')[1] == "Other"){//If to reset the text box for the main Other text box
		   	document.getElementById("Other").value = "";		 			
		  }		  
		 
		 }//End of not checked if 
  		}// End of function
		
function toggle_visibility(id) {
    var e = document.getElementById(id);
    if(e.style.display == 'block')
       e.style.display = 'none';
    else
       e.style.display = 'block';
 }
 
 function clearSubj()
{	
	document.getElementById("MsgSub").value="";	
}

 function OpenWin(theURL,winName,theWidth,theHeight,scrollable,menu,resize){
 			window.open(theURL, winName,'width='+theWidth+',height='+theHeight+',scrollbars='+scrollable+',menubar='+menu+',resizable='+resize+'');
             }
//-->

