function clearText(thefield) {
  if (thefield.defaultValue==thefield.value) { thefield.value = "" }
} 
function replaceText(thefield) {
  if (thefield.value=="") { thefield.value = thefield.defaultValue }
}

function show_tab(tab,a) {
	document.getElementById(tab).style.display='block';
	document.getElementById(a).className='sel';
}

function hide_tab(tab,a) {
	document.getElementById(tab).style.display='none';
	document.getElementById(a).className='';
}

function preloader()
{
	document.write('<div style="display:none;"><img src="http://seo.vietiso.com/themes/pcms/images/root/h-tab-bpo-services.jpg" /><img src="http://seo.vietiso.com/themes/pcms/images/root/h-tab-consulting.jpg" /><img src="http://seo.vietiso.com/themes/pcms/images/root/h-tab-it-services.jpg" /><img src="http://seo.vietiso.com/themes/pcms/images/root/h-tab-outsourcing.jpg" /></div>');
}

function ourclient() {
document.write('<marquee class="scroll" scrollamount="2" id="marq">' +
			   '<img src="http://seo.vietiso.com/themes/pcms/images/root/vip.jpg" alt="" width="118" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/kenya.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/silver-africa-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/big.jpg" alt="" width="113" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/ring-surf-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/mahjong.jpg" alt="" width="125" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/hammond-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" />' +
			   '</marquee>');
}
function inourclient() {
document.write('<marquee class="scroll" scrollamount="2" id="marq">' +
			   '<img src="http://seo.vietiso.com/themes/pcms/images/root/vip.jpg" alt="" width="118" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/kenya.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/silver-africa-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/big.jpg" alt="" width="113" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/ring-surf-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/mahjong.jpg" alt="" width="125" height="50" hspace="3" vspace="2" border="0" /><img src="http://seo.vietiso.com/themes/pcms/images/root/hammond-l.jpg" alt="" height="50" hspace="3" vspace="2" border="0" />' +
			   '</marquee>');
}


function fp_show(tab,cls) 
{
	i=1;
	
	while (document.getElementById("tab_"+i))
	 {
	 document.getElementById("tab_"+i).style.display='none';
	 document.getElementById("a"+i).className='';
	 i++;
	 
	 }
	 document.getElementById(tab).style.display='block';
	 document.getElementById(cls).className='sel';
}



function seldesign(img) {
	document.getElementById('img').src=img;
	document.getElementById('timg').src=img;
	}
	
function  tab_sub(a,d)	
{
 i=1;
 while (document.getElementById('t'+i))
  {   
   document.getElementById('s'+i).style.display='none';
   document.getElementById('t'+i).className='';
   i++;
  }
   document.getElementById(d).style.display='block';
   document.getElementById(a).className='sel';
   
}

function news_tab(tab) {
	document.getElementById(tab).style.display='block';
}

function news_hide(tab) {
	document.getElementById(tab).style.display='none';
}

function checkcomment(theForm)
{
 if (theForm.name.value==""){
			alert("Input Name."); theForm.name.focus();
			return false;
			} 
if (theForm.email.value==""){
			alert("Input Name."); theForm.email.focus();
			return false;
			} 
if (theForm.comments.value==""){
			alert("Input Name."); theForm.comments.focus();
			return false;
			} 
if (theForm.txtnumber.value==""){
			alert("Input Name."); theForm.txtnumber.focus();
			return false;
			} 
}

function checkfeedback(theForm)
{
 if (theForm.name.value==""){
			alert("Input Name."); theForm.name.focus();
			return false;
			} 
if (theForm.email.value==""){
			alert("Input Name."); theForm.email.focus();
			return false;
			} 
if (theForm.comments.value==""){
			alert("Input Name."); theForm.comments.focus();
			return false;
			} 
if (theForm.txtnumber.value==""){
			alert("Input Name."); theForm.txtnumber.focus();
			return false;
			} 
}
