function sendMailTo(name,company,cn){
	this.name=name || 'sales';
	this.company=company || 'zongyi';
	this.cn=cn || 'cn';
	location.replace('mailto:'+this.name+'@'+this.company+'.'+this.cn);
}

function set_bg_fun(){
				var bodyObj=document.getElementsByTagName('body')[0];
				var imgObj=document.getElementById('imgList').getElementsByTagName('img');

				var num=Math.ceil(Math.random()*imgObj.length);
				bodyObj.style.background='url('+imgObj[num].src+')';
}
function set_bg_one_fun(){
				var bodyObj=document.getElementsByTagName('body')[0];
				var imgObj=document.getElementById('imgDetail').getElementsByTagName('img');
				var reg=new RegExp('(http://[A-Za-z0-9-]+\.[A-Za-z]+)');
				var str=imgObj[0].src.replace(reg,'');
				var strOne=str.split('.');

				bodyObj.style.background='url('+strOne[0]+'_small.'+strOne[1]+')';
}


function CheckPosts()
{
 if(document.form1.FKname.value=="")
 {
  alert("Please enter the  Name, thanks! ");
  document.form1.FKname.focus();
  return false;
  }
 if(document.form1.FKphone.value=="")
 {
  alert("Please enter the phone, thanks! ");
  document.form1.FKphone.focus();
  return false;
  }
   if(document.form1.FKemail.value=="")
 {
  alert("Please enter the email, thanks! ");
  document.form1.FKemail.focus();
  return false;
  }
   if(document.form1.FKtitle.value=="")
 {
  alert("Please enter the title, thanks! ");
  document.form1.FKtitle.focus();
  return false;
  }  

   if(document.form1.FKmessage.value=="")
 {
  alert("Please enter the message, thanks! ");
  document.form1.FKmessage.focus();
  return false;
  } 
  return true;
}