
function DivDisplaySettings(showdivid)
{   
        var mySplitResult = showdivid.split(","); 
      document.getElementById(mySplitResult[0]).style.display = 'block';
      document.getElementById(mySplitResult[1]).style.display = 'none';
      document.getElementById(mySplitResult[2]).style.display = 'none';   
}
function ResetValidation(allvalue)
{	
	 var mySplitResult = allvalue.split(","); 
	 document.getElementById(mySplitResult[0]).value = '';
     document.getElementById(mySplitResult[1]).value = '';
	 document.getElementById(mySplitResult[2]).value = '';
	 document.getElementById(mySplitResult[3]).value = '';
	 document.getElementById(mySplitResult[4]).value = '';
}
function SubmitValidation(allvalue)
{	
	 var mySplitResult = allvalue.split(","); 
	 var name= document.getElementById(mySplitResult[0]).value;
	 var email=document.getElementById(mySplitResult[1]).value;
	 var phno=document.getElementById(mySplitResult[2]).value;
	 var address=document.getElementById(mySplitResult[3]).value;
	 var comments=document.getElementById(mySplitResult[4]).value;	
	 if(name != '')
	 {
		 if(email != '')
		 {	
		    var emailPat =('^.+@[^\.].*\.[a-z]{2,}$');
            var matchArray = email.match(emailPat);
		    if(matchArray != null)
		     {
			   if(comments !='')
			   {		
			       alert('Thanks you for messaging. We will response as soon as possible.'); 
				   return true;
			   }
			   else
			   {
				 alert('Please enter your comments!'); 
				 return false;
			   }
			 }
			else
			{
			 alert('Please enter valied email address!');	
			 return false;
			}
		 }
		else
		{
		 alert('Please enter email address!');
		 return false;
		}
	}
	else
	{
	 alert('Please enter your name!');
	 return false;
	} 
}

  function poptasticPage(url)
  {	  
	  var newwindow;  
      newwindow=window.open(url,'name','height=480,width=630,top=50,left=50,toolbar=no,location=yes,directories=yes,status=yes,menubar=no,scrollbars=yes,copyhistory=yes,resizable=yes');
     if (window.focus) {newwindow.focus()}
   }
   
function DivDisplaySettingsForWorkPage(showdivid)
{   
      var mySplitResult = showdivid.split(","); 
      document.getElementById(mySplitResult[0]).style.display = 'block';
      document.getElementById(mySplitResult[1]).style.display = 'none';
      document.getElementById(mySplitResult[2]).style.display = 'none';
	  document.getElementById(mySplitResult[3]).style.display = 'none';
      document.getElementById(mySplitResult[4]).style.display = 'none'; 
	  document.getElementById(mySplitResult[5]).className='txt_color_98CCFC';
	  document.getElementById(mySplitResult[6]).className='txt_color_FFFFFF';
	  document.getElementById(mySplitResult[7]).className='txt_color_FFFFFF';
	  document.getElementById(mySplitResult[8]).className='txt_color_FFFFFF';
	  document.getElementById(mySplitResult[9]).className='txt_color_FFFFFF';
}
   
 
function open_new_window(imgurl) 
{	
    new_window = open("","hoverwindow","width=500,height=500,left=50,top=50");	
    new_window.document.open();
	new_window.document.write("<html><title>mark YOUR IDENTITY | Work Picture</title>");
	new_window.document.write("<link rel='SHORTCUT ICON' href='images/favicon.gif' />");
	new_window.document.write("<body bgcolor='#ffffff' style='margin:0px auto 0px auto;padding:10px;width:200px;'>");
	new_window.document.write("<table cellpadding='0' cellspacing='0'>");
	new_window.document.write("<tr><td align='center' style='vertical-align:middle;'>");
	new_window.document.write("<img src='"+imgurl+"' alt='' />");	
	new_window.document.write("</td></tr>");
	new_window.document.write("</table>");	
	new_window.document.write("<br>");
	new_window.document.write("</body></html>");
    new_window.document.close(); 	
 if (window.focus) {new_window.focus()}
}






