  function mouseOverImage1(){
    window.document.getElementById("examplesImges").innerHTML = '<img src="/media/22805/newsletter%20cosmote%20romania%20trans.gif" alt="" width="150" height="180" style="padding-top: 7px;"/><div class="examples_text">Deliver good news using newsletters</div><p style="padding-bottom: 10px; margin: 0; text-align: right;"><a href="/{localLink:1200}" title="Examples"><em>more examples...</em></a></p>';
}
function mouseOverImage2(){
    window.document.getElementById("examplesImges").innerHTML = '<img src="/media/29854/greeting%20card%20+%20coupon%20s%20wear%20il.png" alt="" width="150" height="192"  /><div class="examples_text">Automated scheduled e-cards</div><p style="padding-bottom: 10px; margin: 0; text-align: right;"><a href="/{localLink:1200}" title="Examples"><em>more examples...</em></a></p>';
}
function mouseOverImage3(){
    window.document.getElementById("examplesImges").innerHTML = '<img src="/media/4909/campaign%20fashion%20romania%20trans.gif" alt="" width="150" height="173"  /><div class="examples_text">Digital campaigns are great for promoting your products</div><p style="padding-bottom: 10px; margin: 0; text-align: right;"><a href="/{localLink:1200}" title="Examples"><em>more examples...</em></a></p>';
}
function mouseOverImage4(){
    window.document.getElementById("examplesImges").innerHTML = '<img src="/media/29879/coupon%20s%20wear%20il.png" alt="" width="150" height=192" /><div class="examples_text">Email and mobile coupons</div><p style="padding-bottom: 10px; margin: 0; text-align: right;"><a href="/{localLink:1200}" title="Examples"><em>more examples...</em></a></p>';
}
  
var Lst;

function CngClass(obj){
if (Lst)
  Lst.className='';
  obj.className='examples_selected';
  Lst=obj;
}
var emailerror1="Please enter your email address.";
var emailerror2="Please enter a valid email address.";
var nameerror1="The name you've entered is too long. Please type a shorter name.";
function Validator(){
  if($('#slideshow').length>0){
    var email=document.getElementById('email').value;
    var name=document.getElementById('field1').value;
    if (email==''){
      document.getElementById('email').focus();
      alert(emailerror1);
      return false;
    }
    if (!email.match(/[\w\-]+@[\w\-]+\..+/)){
      document.getElementById('email').focus();
      alert(emailerror2);
      return false;
    }
    if (name.length>40){
      document.getElementById('field1').focus();
      alert(nameerror1);
      return false;
    }
    document.forms[1].submit();
    return (true);
  }
}
var dates =  new Array('1|31','2|28','3|31','4|30','5|31','6|30','7|31','8|31','9|30','10|31','11|30','12|31');
function setDays(dd,trg){
  var month=dd.options[dd.selectedIndex].value;
  if (dd.selectedIndex==0 || dd.selectedIndex==-1) return;
  var target=document.getElementById(trg);
  var lastS=target.selectedIndex;
  target.options.length=0;
  var i;
                   
  for( i = 0; i < dates.length; i++ ) {
    string = dates[i].split( '|' );
      if( parseInt(string[0]) == parseInt(month) ) {
      target.options[0]=new Option('--','--');
      for (var j=1;j<=parseInt(string[1]);j++){
      target.options[j] = new Option( j,j );
      }
    }
  }
  if (target.options.length>=lastS){
    target.selectedIndex=lastS;
  }else{
    target.selectedIndex=0;
  }
}

function chatWindow(){
window.open('http://www.inwise.co.uk/livehelp/livehelp.php?department=2&amp;serversession=1&amp;pingtimes=15','jav','width=590,height=475,resizable=yes');
}

