var is_safari_browser= (document.getElementById && !document.all)?(navigator.userAgent.indexOf("AppleWebKit")!=-1?true:false):false;
function hideDivCopyRight(divName){ 
	divToHide=document.getElementById(divName);
	if(divToHide){
		divToHide.style.display='none';
	}
}
function tellafriendValidation()
{
   var name=document.getElementById('yourname');
   var email=document.getElementById('youremail');
   var recepientemails=document.getElementById('recepientsemail');
   var subject=document.getElementById('subject');
   if(getLength(trim(name.value),true,true)==0)
	{
	 alert(iname);
	 name.focus();
	 return false;
	 
	}
   
   if(getLength(email.value,true,true)==0)
	{
	 alert(iemailid);
	 email.focus();
	 return false;
	}
   if(!checkEmail(email.value))
	{
	 alert(ivalidemail);
	 email.select();
	 return false;
	}
	if(getLength(recepientemails.value,true,true)==0)
	{
	 alert(irecepientemail);
	 recepientemails.focus();
	 return false;
	}
	
	if(recepientemails.value!='')
	{
	emailids=recepientemails.value;
	emailid=new Array();
	emailid=emailids.split(",");
	for(i=0;i<emailid.length;i++)
		{
          emailid[i]=trim(emailid[i]);
		if(!checkEmail(emailid[i]))
			{
			alert(ivalidrecepientemail);
			recepientemails.select();
			return false;
			}
		}

    
	}
   
if(getLength(trim(subject.value),true,true)==0)
	{
	 alert(isubject);
	 subject.focus();
	 return false;
	}
	var message= is_safari_browser?document.getElementById("message"):FCKeditorAPI.GetInstance('message') ;
    var mailcontentValue=is_safari_browser?message.value:message.EditorDocument.body.innerHTML;
        var mailcontentValue=stripHtmlContent(mailcontentValue);
        if(getLength(mailcontentValue,true,true)==0)
        {
           alert(imessage);
           return false;
        }
	
	return true;
}
function sendFeedbackValidation()
{

   var name1=document.getElementById('fbyourname');
   var email1=document.getElementById('fbyouremail');
   var subject1=document.getElementById('fbsubject');
   var message1=document.getElementById('fbmessage');
   if(getLength(trim(name1.value),true,true)==0)
	{
	 alert(iname);
	 name1.focus();
	 return false;
	 
	}
   
   if(getLength(email1.value,true,true)==0)
	{
	 alert(iemailid);
	 email1.focus();
	 return false;
	}
   if(!checkEmail(email1.value))
	{
	 alert(ivalidemail);
	 email1.select();
	 return false;
	}
	if(getLength(trim(subject1.value),true,true)==0)
	{
	 alert(isubject);
	 subject1.focus();
	 return false;
	}
	
	if(getLength(trim(message1.value),true,true)==0)
	{
	 alert(imessage);
	 message1.focus();
	 return false;
	}		
	
	return true;
}
